function printpage(){window.print()}function emailpage(){emailpage(location.href)}function emailpage(n){var t=document.title.replace("&","and"),i=escape(n),r="mailto:?subject="+t+"&body="+i;window.location.replace(r)}function submitClick(){if(Page_ClientValidate())return!0;Page_ClientValidate();var n=document.getElementById("errorList");n!=null&&(n.focus(),n.scrollIntoView(),n.focus(),n.scrollIntoView())}function toggleCheckBoxAll(n,t){$(t).off().on("click",function(){$(n).prop("checked",!$(t).is(":checked"));toggleEnableOptionBox($(n).is(":checked"))});$(n).off().on("click",function(){$(t).prop("checked",!$(this).is(":checked"));toggleEnableOptionBox($(this).is(":checked"))})}function toggleEnableOptionBox(n){n?($("#AllOptionsRadioButton").removeAttr("disabled"),$("#DgrOptionRadioButton").removeAttr("disabled"),$("#CharityOptionRadioButton").removeAttr("disabled")):($("#AllOptionsRadioButton").removeAttr("disabled"),$("#AllOptionsRadioButton").click(),$("#AllOptionsRadioButton").attr("disabled",!0),$("#DgrOptionRadioButton").attr("disabled",!0),$("#CharityOptionRadioButton").attr("disabled",!0))}var responsiveWidth,map;!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function dr(n,t,i){var r,e,u=(i=i||f).createElement("script");if(u.text=n,t)for(r in se)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function ut(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ri[br.call(n)]||"object":typeof n}function pi(n){var t=!!n&&"length"in n&&n.length,i=ut(n);return!u(n)&&!rt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function c(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function bi(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return-1<ii.call(t,n)!==r}):i.filter(t,n,r)}function eu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function et(n){return n}function fi(n){throw n;}function ou(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function oi(){f.removeEventListener("DOMContentLoaded",oi);n.removeEventListener("load",oi);i.ready()}function le(n,t){return t.toUpperCase()}function y(n){return n.replace(he,"ms-").replace(ce,le)}function bt(){this.expando=i.expando+bt.uid++}function hu(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(ve,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:ae.test(r)?JSON.parse(r):r)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function lu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&kt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function ht(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&dt(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=ki[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),ki[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&c(n,t)?i.merge([n],r):r}function di(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function pu(n,t,r,u,f){for(var e,o,p,a,w,v,c=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===ut(e))i.merge(y,e.nodeType?[e]:e);else if(yu.test(e)){for(o=o||c.appendChild(t.createElement("div")),p=(au.exec(e)||["",""])[1].toLowerCase(),a=h[p]||h._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=c.firstChild).textContent=""}else y.push(t.createTextNode(e));for(c.textContent="",l=0;e=y[l++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=st(e),o=s(c.appendChild(e),"script"),w&&di(o),r)for(v=0;e=o[v++];)vu.test(e.type||"")&&r.push(e);return c}function ct(){return!0}function lt(){return!1}function pe(n,t){return n===function(){try{return f.activeElement}catch(n){}}()==("focus"===t)}function nr(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)nr(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=lt;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=k.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e&&e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,ct)}function wu(n,t){return c(n,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function de(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function ge(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function bu(n,t){var u,s,f,h,c,e;if(1===t.nodeType){if(r.hasData(n)&&(e=r.get(n).events))for(f in r.remove(t,"handle events"),e)for(u=0,s=e[f].length;u<s;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(h=o.access(n),c=i.extend({},h),o.set(t,c))}}function at(n,t,f,o){t=wr(t);var a,b,l,v,h,y,c=0,p=n.length,d=p-1,w=t[0],k=u(w);if(k||1<p&&"string"==typeof w&&!e.checkClone&&be.test(w))return n.each(function(i){var r=n.eq(i);k&&(t[0]=w.call(this,i,r.html()));at(r,t,f,o)});if(p&&(b=(a=pu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=b),b||o)){for(v=(l=i.map(s(a,"script"),de)).length;c<p;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(y=l[l.length-1].ownerDocument,i.map(l,ge),c=0;c<v;c++)h=l[c],vu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(y,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},y):dr(h.textContent.replace(ke,""),h,y))}return n}function ku(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&st(u)&&di(s(u,"script")),u.parentNode.removeChild(u));return n}function ni(n,t,r){var o,s,h,u,c=ir.test(t),f=n.style;return(r=r||ci(n))&&(u=r.getPropertyValue(t)||r[t],c&&u&&(u=u.replace(to,"$1")||void 0),""!==u||st(n)||(u=i.style(n,t)),!e.pixelBoxStyles()&&tr.test(u)&&no.test(t)&&(o=f.width,s=f.minWidth,h=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=o,f.minWidth=s,f.maxWidth=h)),void 0!==u?u+"":u}function nf(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function rr(n){var t=i.cssProps[n]||uf[n];return t||(n in rf?n:uf[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=tf.length;t--;)if((n=tf[t]+i)in rf)return n}(n)||n)}function ef(n,t,i){var r=kt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function ur(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+b[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+b[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+b[o]+"Width",!0,f))):(s+=i.css(n,"padding"+b[o],!0,f),"padding"!==r?s+=i.css(n,"border"+b[o]+"Width",!0,f):h+=i.css(n,"border"+b[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function of(n,t,r){var f=ci(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=ni(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(tr.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||!e.reliableTrDimensions()&&c(n,"tr")||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+ur(n,t,r||(o?"border":"content"),s,f,u)+"px"}function a(n,t,i,r,u){return new a.prototype.init(n,t,i,r,u)}function fr(){li&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(fr):n.setTimeout(fr,i.fx.interval),i.fx.tick())}function lf(){return n.setTimeout(function(){vt=void 0}),vt=Date.now()}function ai(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=b[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function af(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=vt||lf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:vt||lf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,af,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function tt(n){return(n.match(l)||[]).join(" ")}function it(n){return n.getAttribute&&n.getAttribute("class")||""}function er(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function cr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||uo.test(n)?u(n,i):cr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==ut(t))u(n,t);else for(f in t)cr(n+"["+f+"]",t[f],r,u)}function ne(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function te(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===lr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function vr(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var p=[],pr=Object.getPrototypeOf,k=p.slice,wr=p.flat?function(n){return p.flat.call(n)}:function(n){return p.concat.apply([],n)},yi=p.push,ii=p.indexOf,ri={},br=ri.toString,ui=ri.hasOwnProperty,kr=ui.toString,oe=kr.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType&&"function"!=typeof n.item},rt=function(n){return null!=n&&n===n.window},f=n.document,se={type:!0,src:!0,nonce:!0,noModule:!0},gr="3.6.3",i=function(n,t){return new i.fn.init(n,t)},d,wi,iu,ru,uu,fu,l,su,ei,ot,dt,ki,h,yu,gi,vt,li,yt,sf,hf,cf,vf,pt,yf,pf,wf,or,sr,ie,wt,re,yr,vi,ue,fe,ee;i.fn=i.prototype={jquery:gr,constructor:i,length:0,toArray:function(){return k.call(this)},get:function(n){return null==n?k.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(k.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(n,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(n,t){return t%2}))},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:yi,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(f in s)t=s[f],"__proto__"!==f&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(gr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==br.call(n))&&(!(t=pr(n))||"function"==typeof(i=ui.call(t,"constructor")&&t.constructor)&&kr.call(i)===oe)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},globalEval:function(n,t,i){dr(n,{nonce:t&&t.nonce},i)},each:function(n,t){var r,i=0;if(pi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},makeArray:function(n,t){var r=t||[];return null!=n&&(pi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):yi.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ii.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(pi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return wr(f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){ri["[object "+t+"]"]=t.toLowerCase()});d=function(n){function f(n,t,r,f){var s,y,c,l,p,w,d,v=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!f&&(b(t),t=t||i,h)){if(11!==a&&(p=ar.exec(n)))if(s=p[1]){if(9===a){if(!(c=t.getElementById(s)))return r;if(c.id===s)return r.push(c),r}else if(v&&(c=v.getElementById(s))&&et(t,c)&&c.id===s)return r.push(c),r}else{if(p[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=p[3])&&u.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(u.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(d=n,v=t,1===a&&(er.test(n)||yi.test(n))){for((v=ti.test(n)&&ri(t.parentNode)||t)===t&&u.scope||((l=t.getAttribute("id"))?l=l.replace(pi,wi):t.setAttribute("id",l=e)),y=(w=ft(n)).length;y--;)w[y]=(l?"#"+l:":scope")+" "+pt(w[y]);d=w.join(",")}try{if(u.cssSupportsSelector&&!CSS.supports("selector(:is("+d+"))"))throw new Error;return k.apply(r,v.querySelectorAll(d)),r}catch(t){lt(n,!0)}finally{l===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,f)}function yt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function a(n){return n[e]=!0,n}function c(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function ki(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function yr(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function di(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&vr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return a(function(t){return t=+t,a(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function gi(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&"parentNode"===f,s=nr++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(l=(a=t[e]||(t[e]={}))[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[f])&&c[0]===v&&c[1]===s)return y[2]=c[2];if((l[f]=y)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,u,o){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,o)),a(function(e,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=e||function(n,t,i){for(var r=0,u=t.length;r<u;r++)f(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!e&&t?d:bt(d,w,n,s,h),c=i?u||(e?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(e){if(u||n){if(u){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);u(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=u?nt(e,v):w[l])&&(e[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),u?u(null,o,c,h):k.apply(o,c)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=wt(function(n){return n===o},c,!0),a=wt(function(n){return-1<nt(o,n)},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[wt(ui(f),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(1<i&&ui(f),1<i&&pt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&pt(n))}f.push(u)}return ui(f)}var rt,u,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,l=n.document,v=0,nr=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},tr={}.hasOwnProperty,g=[],ir=g.pop,rr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",ur=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),fr=new RegExp("^"+r+"*,"+r+"*"),yi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),p=function(n,t){var i="0x"+n.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},pi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},bi=function(){b()},vr=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(l.childNodes),l.childNodes);g[l.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){rr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in u=f.support={},oi=f.isXML=function(n){var i=n&&n.namespaceURI,t=n&&(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")},b=f.setDocument=function(n){var v,f,a=n?n.ownerDocument||n:l;return a!=i&&9===a.nodeType&&a.documentElement&&(s=(i=a).documentElement,h=!oi(i),l!=i&&(f=i.defaultView)&&f.top!==f&&(f.addEventListener?f.addEventListener("unload",bi,!1):f.attachEvent&&f.attachEvent("onunload",bi)),u.scope=c(function(n){return s.appendChild(n).appendChild(i.createElement("div")),"undefined"!=typeof n.querySelectorAll&&!n.querySelectorAll(":scope fieldset div").length}),u.cssSupportsSelector=c(function(){return CSS.supports("selector(*)")&&i.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),u.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=c(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=ot.test(i.getElementsByClassName),u.getById=c(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),u.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=u.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):u.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(u.qsa=ot.test(i.querySelectorAll))&&(c(function(n){var t;s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+gt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");(t=i.createElement("input")).setAttribute("name","");n.appendChild(t);n.querySelectorAll("[name='']").length||o.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]");n.querySelectorAll("\\\f");o.push("[\\r\\n\\f]")}),c(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(u.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&c(function(n){u.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",ni)}),u.cssSupportsSelector||o.push(":has"),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType&&n.documentElement||n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!u.sortDetached&&t.compareDocumentPosition(n)===r?n==i||n.ownerDocument==l&&et(l,n)?-1:t==i||t.ownerDocument==l&&et(l,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n==i?-1:t==i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return ki(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?ki(f[u],e[u]):f[u]==l?-1:e[u]==l?1:0}),i},f.matches=function(n,t){return f(n,null,null,t)},f.matchesSelector=function(n,t){if(b(n),u.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){lt(t,!0)}return 0<f(t,i,null,[n]).length},f.contains=function(n,t){return(n.ownerDocument||n)!=i&&b(n),et(n,t)},f.attr=function(n,r){(n.ownerDocument||n)!=i&&b(n);var e=t.attrHandle[r.toLowerCase()],f=e&&tr.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==f?f:u.attributes||!h?n.getAttribute(r):(f=n.getAttributeNode(r))&&f.specified?f.value:null},f.escape=function(n){return(n+"").replace(pi,wi)},f.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},f.uniqueSort=function(n){var r,f=[],t=0,i=0;if(ut=!u.detectDuplicates,w=!u.sortStable&&n.slice(0),n.sort(dt),ut){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return w=null,n},st=f.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i},(t=f.selectors={cacheLength:50,createPseudo:a,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||f.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&f.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&or.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var u=f.attr(r,n);return null==u?"!="===t:!t||(u+="","="===t?u===i:"!="===t?u!==i:"^="===t?i&&0===u.indexOf(i):"*="===t?i&&-1<u.indexOf(i):"$="===t?i&&u.slice(-i.length)===i:"~="===t?-1<(" "+u.replace(ur," ")+" ").indexOf(i):"|="===t&&(u===i||u.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var u,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||f.error("unsupported pseudo: "+n);return r[e]?r(i):1<r.length?(u=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?a(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,u)}):r}},pseudos:{not:a(function(n){var t=[],r=[],i=kt(n.replace(at,"$1"));return i[e]?a(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:a(function(n){return function(t){return 0<f(n,t).length}}),contains:a(function(n){return n=n.replace(y,p),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:a(function(n){return sr.test(n||"")||f.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:di(!1),disabled:di(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:t<i?t:i;0<=--r;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return gi.prototype=t.filters=t.pseudos,t.setFilters=new gi,ft=f.tokenize=function(n,i){var e,u,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){for(o in e&&!(u=fr.exec(r))||(u&&(r=r.slice(u[0].length)||r),h.push(s=[])),e=!1,(u=yi.exec(r))&&(e=u.shift(),s.push({value:e,type:u[0].replace(at," ")}),r=r.slice(e.length)),t.filter)(u=vt[o].exec(r))&&(!c[o]||(u=c[o](u)))&&(e=u.shift(),s.push({value:e,type:o,matches:u}),r=r.slice(e.length));if(!e)break}return i?r.length:r?f.error(n):ci(n,h).slice(0)},kt=f.compile=function(n,r){var s,c,l,o,y,p,w=[],d=[],u=li[n+" "];if(!u){for(r||(r=ft(n)),s=r.length;s--;)(u=ei(r[s]))[e]?w.push(u):d.push(u);(u=li(n,(c=d,o=0<(l=w).length,y=0<c.length,p=function(n,r,u,e,s){var a,nt,d,g=0,p="0",tt=n&&[],w=[],it=ht,rt=n||y&&t.find.TAG("*",s),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ht=r==i||r||s);p!==ft&&null!=(a=rt[p]);p++){if(y&&a){for(nt=0,r||a.ownerDocument==i||(b(a),u=!h);d=c[nt++];)if(d(a,r||i,u)){e.push(a);break}s&&(v=ut)}o&&((a=!d&&a)&&g--,n&&tt.push(a))}if(g+=p,o&&p!==g){for(nt=0;d=l[nt++];)d(tt,w,r,u);if(n){if(0<g)while(p--)tt[p]||w[p]||(w[p]=ir.call(e));w=bt(w)}k.apply(e,w);s&&!n&&0<w.length&&1<g+l.length&&f.uniqueSort(e)}return s&&(v=ut,ht=it),tt},o?a(p):p))).selector=n}return u},si=f.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(2<(f=s[0]=s[0].slice(0)).length&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},u.sortStable=e.split("").sort(dt).join("")===e,u.detectDuplicates=!!ut,b(),u.sortDetached=c(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||ii(gt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),f}(n);i.find=d;i.expr=d.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=d.uniqueSort;i.text=d.getText;i.isXMLDoc=d.isXML;i.contains=d.contains;i.escapeSelector=d.escape;var ft=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},nu=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},tu=i.expr.match.needsContext;wi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(bi(this,n||[],!1))},not:function(n){return this.pushStack(bi(this,n||[],!0))},is:function(n){return!!bi(this,"string"==typeof n&&tu.test(n)?i(n):n||[],!1).length}});ru=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||iu,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:ru.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),wi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;iu=i(f);uu=/^(?:parents|prev(?:Until|All))/;fu={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!tu.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ii.call(i(n),this[0]):ii.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return ft(n,"parentNode")},parentsUntil:function(n,t,i){return ft(n,"parentNode",i)},next:function(n){return eu(n,"nextSibling")},prev:function(n){return eu(n,"previousSibling")},nextAll:function(n){return ft(n,"nextSibling")},prevAll:function(n){return ft(n,"previousSibling")},nextUntil:function(n,t,i){return ft(n,"nextSibling",i)},prevUntil:function(n,t,i){return ft(n,"previousSibling",i)},siblings:function(n){return nu((n.parentNode||{}).firstChild,n)},children:function(n){return nu(n.firstChild)},contents:function(n){return null!=n.contentDocument&&pr(n.contentDocument)?n.contentDocument:(c(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),1<this.length&&(fu[n]||i.uniqueSort(f),uu.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var a,h;n="string"==typeof n?(a=n,h={},i.each(a.match(l)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,f,t=[],s=[],e=-1,y=function(){for(f=f||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==ut(r)&&f(r)})}(arguments),r&&!o&&y()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||y()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,l=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,et,e),s(o,r,fi,e)):(o++,i.call(n,s(o,r,et,e),s(o,r,fi,e),s(o,r,et,r.notifyWith))):(f!==et&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(f!==fi&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:et,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:et));f[2][3].add(s(0,n,u(r)?r:fi))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=k.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=1<arguments.length?k.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(ou(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)ou(f[t],s(t),r.reject);return r.promise()}});su=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&su.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ei=i.Deferred();i.fn.ready=function(n){return ei.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ei.resolveWith(f,[i])}});i.ready.then=ei.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",oi),n.addEventListener("load",oi));var w=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===ut(r))for(h in e=!0,r)w(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},he=/^-ms-/,ce=/-([a-z])/g;ot=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};bt.uid=1;bt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},ot(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new bt,o=new bt,ae=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ve=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),hu(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):w(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=hu(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var cu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kt=new RegExp("^(?:([+-])=|)("+cu+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],g=f.documentElement,st=function(n){return i.contains(n.ownerDocument,n)},ye={composed:!0};g.getRootNode&&(st=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(ye)===n.ownerDocument});dt=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&st(n)&&"none"===i.css(n,"display")};ki={};i.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){dt(this)?i(this).show():i(this).hide()})}});var nt,si,gt=/^(?:checkbox|radio)$/i,au=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,vu=/^$|^module$|\/(?:java|ecma)script/i;nt=f.createDocumentFragment().appendChild(f.createElement("div"));(si=f.createElement("input")).setAttribute("type","radio");si.setAttribute("checked","checked");si.setAttribute("name","t");nt.appendChild(si);e.checkClone=nt.cloneNode(!0).cloneNode(!0).lastChild.checked;nt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!nt.cloneNode(!0).lastChild.defaultValue;nt.innerHTML="<option><\/option>";e.option=!!nt.lastChild;h={thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;e.option||(h.optgroup=h.option=[1,"<select multiple='multiple'>","<\/select>"]);yu=/<|&#?\w+;/;gi=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,a,k,v,w,h,s,c,o,b,d,y=r.get(n);if(ot(n))for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(g,e),u.guid||(u.guid=i.guid++),(v=y.events)||(v=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=gi.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=v[o])||((c=v[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,a)||n.addEventListener&&n.addEventListener(o,a)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=gi.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,s=new Array(arguments.length),t=i.event.fix(n),a=(r.get(this,"events")||Object.create(null))[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click",ct),!1},trigger:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click"),!0},_default:function(n){var t=n.target;return gt.test(t.type)&&t.click&&c(t,"input")&&r.get(t,"click")||c(t,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ct:lt,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:lt,isPropagationStopped:lt,isImmediatePropagationStopped:lt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ct;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return hi(this,n,pe),!1},trigger:function(){return hi(this,n),!0},_default:function(t){return r.get(t.target,n)},delegateType:t}});i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return nr(this,n,t,i,r)},one:function(n,t,i,r){return nr(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=lt),this.each(function(){i.event.remove(this,n,r,t)})}});var we=/<script|<style|<link/i,be=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^\s*<!\[CDATA\[|\]\]>\s*$/g;i.extend({htmlPrefilter:function(n){return n},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=st(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&gt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)bu(o[u],f[u]);else bu(n,h);return 0<(f=s(h,"script")).length&&di(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(ot(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return ku(this,n,!0)},remove:function(n){return ku(this,n)},text:function(n){return w(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return at(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||wu(this,n).appendChild(n)})},prepend:function(){return at(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=wu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return w(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!we.test(n)&&!h[(au.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return at(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),yi.apply(f,u.get());return this.pushStack(f)}});var tr=new RegExp("^("+cu+")(?!px)[a-z%]+$","i"),ir=/^--/,ci=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},du=function(n,t,i){var u,r,f={};for(r in t)f[r]=n.style[r],n.style[r]=t[r];for(r in u=i.call(n),t)n.style[r]=f[r];return u},no=new RegExp(b.join("|"),"i"),gu="[\\x20\\t\\r\\n\\f]",to=new RegExp("^"+gu+"+|((?:^|[^\\\\])(?:\\\\.)*)"+gu+"+$","g");!function(){function r(){if(t){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";g.appendChild(s).appendChild(t);var i=n.getComputedStyle(t);h="1%"!==i.top;v=12===u(i.marginLeft);t.style.right="60%";a=36===u(i.right);c=36===u(i.width);t.style.position="absolute";l=12===u(t.offsetWidth/3);g.removeChild(s);t=null}}function u(n){return Math.round(parseFloat(n))}var h,c,l,a,o,v,s=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),c},pixelBoxStyles:function(){return r(),a},pixelPosition:function(){return r(),h},reliableMarginLeft:function(){return r(),v},scrollboxSize:function(){return r(),l},reliableTrDimensions:function(){var i,t,r,u;return null==o&&(i=f.createElement("table"),t=f.createElement("tr"),r=f.createElement("div"),i.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",g.appendChild(i).appendChild(t).appendChild(r),u=n.getComputedStyle(t),o=parseInt(u.height,10)+parseInt(u.borderTopWidth,10)+parseInt(u.borderBottomWidth,10)===t.offsetHeight,g.removeChild(i)),o}}))}();var tf=["Webkit","Moz","ms"],rf=f.createElement("div").style,uf={};var io=/^(none|table(?!-c[ea]).+)/,ro={position:"absolute",visibility:"hidden",display:"block"},ff={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ni(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=ir.test(t),s=n.style;if(l||(t=rr(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=kt.exec(r))&&f[1]&&(r=lu(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return ir.test(t)||(t=rr(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ni(n,t,u)),"normal"===f&&t in ff&&(f=ff[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!io.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?of(n,t,u):du(n,ro,function(){return of(n,t,u)})},set:function(n,r,u){var s,f=ci(n),h=!e.scrollboxSize()&&"absolute"===f.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,f),o=u?ur(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-ur(n,t,"border",!1,f)-.5)),o&&(s=kt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),ef(0,r,o)}}});i.cssHooks.marginLeft=nf(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ni(n,"marginLeft"))||n.getBoundingClientRect().left-du(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=ef)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ci(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,1<arguments.length)}});((i.Tween=a).prototype={constructor:a,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=a.propHooks[this.prop];return n&&n.get?n.get(this):a.propHooks._default.get(this)},run:function(n){var t,r=a.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):a.propHooks._default.set(this),this}}).init.prototype=a.prototype;(a.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[rr(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=a.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=a.prototype.init;i.fx.step={};hf=/^(?:toggle|show|hide)$/;cf=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return lu(i.elem,n,kt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&dt(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],hf.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(ht([n],!0),o=n.style.display||o,l=i.css(n,"display"),ht([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ht([n],!0),v.done(function(){for(f in a||ht([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=af(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(dt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=v(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&cf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ai(t,!0),n,i,u)}});i.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(vt=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();vt=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){li||(li=!0,fr())};i.fx.stop=function(){li=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};yt=f.createElement("input");sf=f.createElement("select").appendChild(f.createElement("option"));yt.type="checkbox";e.checkOn=""!==yt.value;e.optSelected=sf.selected;(yt=f.createElement("input")).value="t";yt.type="radio";e.radioValue="t"===yt.value;pt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return w(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?vf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&c(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});vf={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=pt[t]||i.find.attr;pt[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=pt[u],pt[u]=f,f=null!=r(n,t,i)?u:null,pt[u]=e),f}});yf=/^(?:input|select|textarea|button)$/i;pf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(this,i.prop,n,t,1<arguments.length)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):yf.test(n.nodeName)||pf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var f,t,e,o,r,s;return u(n)?this.each(function(t){i(this).addClass(n.call(this,t,it(this)))}):(f=er(n)).length?this.each(function(){if(e=it(this),t=1===this.nodeType&&" "+tt(e)+" "){for(r=0;r<f.length;r++)o=f[r],t.indexOf(" "+o+" ")<0&&(t+=o+" ");s=tt(t);e!==s&&this.setAttribute("class",s)}}):this},removeClass:function(n){var f,t,e,o,r,s;return u(n)?this.each(function(t){i(this).removeClass(n.call(this,t,it(this)))}):arguments.length?(f=er(n)).length?this.each(function(){if(e=it(this),t=1===this.nodeType&&" "+tt(e)+" "){for(r=0;r<f.length;r++)for(o=f[r];-1<t.indexOf(" "+o+" ");)t=t.replace(" "+o+" "," ");s=tt(t);e!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(n,t){var s,f,e,o,h=typeof n,c="string"===h||Array.isArray(n);return u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,it(this),t),t)}):"boolean"==typeof t&&c?t?this.addClass(n):this.removeClass(n):(s=er(n),this.each(function(){if(c)for(o=i(this),e=0;e<s.length;e++)f=s[e],o.hasClass(f)?o.removeClass(f):o.addClass(f);else void 0!==n&&"boolean"!==h||((f=it(this))&&r.set(this,"__className__",f),this.setAttribute&&this.setAttribute("class",f||!1===n?"":r.get(this,"__className__")||""))}))},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+tt(it(t))+" ").indexOf(i))return!0;return!1}});wf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(wf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:tt(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!c(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;or=/^(?:focusinfocus|focusoutblur)$/;sr=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=ui.call(t,"type")?t.type:t,b=ui.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!or.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!rt(o)){for(d=a.delegateType||h,or.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||Object.create(null))[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&ot(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!ot(o)||v&&u(o[h])&&!rt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,sr),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,sr),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ti=n.location,bf={guid:Date.now()},hr=/\?/;i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return u=r&&r.getElementsByTagName("parsererror")[0],r&&!u||i.error("Invalid XML: "+(u?i.map(u.childNodes,function(n){return n.textContent}).join("\n"):t)),r};var uo=/\[\]$/,kf=/\r?\n/g,fo=/^(?:submit|button|image|reset|file)$/i,eo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)cr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&eo.test(this.nodeName)&&!fo.test(n)&&(this.checked||!gt.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(kf,"\r\n")}}):{name:t.name,value:r.replace(kf,"\r\n")}}).get()}});var oo=/%20/g,so=/#.*$/,ho=/([?&])_=[^&]*/,co=/^(.*?):[ \t]*([^\r\n]*)$/gm,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,df={},lr={},gf="*/".concat("*"),ar=f.createElement("a");return ar.href=ti.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ti.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":gf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?vr(vr(n,i.ajaxSettings),t):vr(i.ajaxSettings,n)},ajaxPrefilter:ne(df),ajaxTransport:ne(lr),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=0<t?4:0,v=200<=t&&t<300||304===t,f&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(u,e,f)),!v&&-1<i.inArray("script",u.dataTypes)&&i.inArray("json",u.dataTypes)<0&&(u.converters["text script"]=function(){}),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=co.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||ti.href)+"").replace(ao,ti.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=ar.protocol+"//"+ar.host!=c.protocol+"//"+c.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),te(df,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!lo.test(u.type),o=u.url.replace(so,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(oo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(hr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(ho,"$1"),p=(hr.test(o)?"&":"?")+"_="+bf.guid+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+gf+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=te(lr,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&0<u.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(n){var t;for(t in n.headers)"content-type"===t.toLowerCase()&&(n.contentType=n.headers[t]||"")}),i._evalUrl=function(n,t,r){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t,r)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},ie={0:200,1223:204},wt=i.ajaxSettings.xhr(),e.cors=!!wt&&"withCredentials"in wt,e.ajax=wt=!!wt,i.ajaxTransport(function(t){var i,r;if(e.cors||wt&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(ie[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(u){if(i)throw u;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),yr=[],vi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=yr.pop()||i.expando+"_"+bf.guid++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(vi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(vi,"$1"+e):!1!==t.jsonp&&(t.url+=(hr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,yr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((re=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===re.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=wi.exec(n))?[t.createElement(o[1])]:(o=pu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return-1<o&&(f=tt(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<e.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||g})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return w(this,function(n,i,u){var f;if(rt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=nf(e.pixelPosition,function(n,r){if(r)return r=ni(n,t),tr.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return w(this,function(t,r,f){var e;return rt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),ue=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g,i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=k.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(k.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=c,i.isFunction=u,i.isWindow=rt,i.camelCase=y,i.type=ut,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},i.trim=function(n){return null==n?"":(n+"").replace(ue,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),fe=n.jQuery,ee=n.$,i.noConflict=function(t){return n.$===i&&(n.$=ee),t&&n.jQuery===i&&(n.jQuery=fe),i},"undefined"==typeof t&&(n.jQuery=n.$=i),i});responsiveWidth=700;map=null,function(n){n(document).ready(function(){n("#mobile_menu").menufication({addHomeLink:!1,menuText:"Navigation",triggerWidth:responsiveWidth,theme:"dark"});var i=100,r=1200,u=500,t=n(".cd-top");n(window).scroll(function(){n(this).scrollTop()>1?(n(".container-navigation").addClass("container-navigation-fixed"),n(".main-navigation ul").css("padding-top","15px")):(n(".container-navigation").removeClass("container-navigation-fixed"),n(".main-navigation ul").css("padding-top",""));n(this).scrollTop()>i?t.addClass("cd-is-visible"):t.removeClass("cd-is-visible cd-fade-out");n(this).scrollTop()>r&&t.addClass("cd-fade-out")});t.on("click",function(t){t.preventDefault();n("body,html").animate({scrollTop:0},u)})})}(jQuery);$(document).ready(function(){$(window).resize(function(){windowsize=$(window).width();windowsize<=responsiveWidth?$(".container-navigation").addClass("not-displayed"):$(".container-navigation").removeClass("not-displayed")}).resize();$(".container-global-links").off().on("focus",function(){$(".container-global-links").removeClass("not-displayed")});$("caption .toggle").click(function(){var n=$(this),t=n.closest("table").find("thead");$tableTbody=n.closest("table").find("tbody");t.toggle();$tableTbody.toggle();$(this).closest("span.toggle").toggleClass("open close")});$(".main-navigation ul").each(function(){var n=$(this).parents("ul").length;n==1&&$(this).parent("li").children("a:first").addClass("nav-icon-down");n>1&&$(this).parent("li").children("a:first").addClass("nav-icon-right")})});$(document).ready(function(){function n(n){return n.replace(/[^a-zA-Z0-9]/g,"")}function t(n){var t=$(".nav-wrapper").first().height();return $("html,body").animate({scrollTop:n.offset().top-t},1e3),!1}function i(){var i,r;if(window.location.hash){if(i=n(window.location.hash.substring(1)),i==="")return;if(r=$("#"+i),r.length)return t(r)}}$("a[href*='#']:not([href='#'])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var i=$(this.hash);if(i=i.length?i:$("[name="+n(this.hash.substring(1))+"]"),i.length)return t(i)}});$(window).on("hashchange",function(){i()});i()}),function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.Chart=n()}}(function(){return function n(t,i,r){function f(u,o){var h,c,s;if(!i[u]){if(!t[u]){if(h=typeof require=="function"&&require,!o&&h)return h(u,!0);if(e)return e(u,!0);c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[u]={exports:{}};t[u][0].call(s.exports,function(n){var i=t[u][1][n];return f(i?i:n)},s,s.exports,n,t,i,r)}return i[u].exports}for(var e=typeof require=="function"&&require,u=0;u<r.length;u++)f(r[u]);return f}({1:[function(){},{}],2:[function(n,t){function u(n){var t;if(n){var f=[0,0,0],e=1,u=n.match(/^#([a-fA-F0-9]{3})$/);if(u)for(u=u[1],t=0;t<f.length;t++)f[t]=parseInt(u[t]+u[t],16);else if(u=n.match(/^#([a-fA-F0-9]{6})$/))for(u=u[1],t=0;t<f.length;t++)f[t]=parseInt(u.slice(t*2,t*2+2),16);else if(u=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(t=0;t<f.length;t++)f[t]=parseInt(u[t+1]);e=parseFloat(u[4])}else if(u=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(t=0;t<f.length;t++)f[t]=Math.round(parseFloat(u[t+1])*2.55);e=parseFloat(u[4])}else if(u=n.match(/(\w+)/)){if(u[1]=="transparent")return[0,0,0,0];if(f=r[u[1]],!f)return}for(t=0;t<f.length;t++)f[t]=i(f[t],0,255);return e=e||e==0?i(e,0,1):1,f[3]=e,f}}function f(n){var r,t;if(n&&(r=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(r),t)){var u=parseFloat(t[4]),f=i(parseInt(t[1]),0,360),e=i(parseFloat(t[2]),0,100),o=i(parseFloat(t[3]),0,100),s=i(isNaN(u)?1:u,0,1);return[f,e,o,s]}}function h(n){var r,t;if(n&&(r=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(r),t)){var u=parseFloat(t[4]),f=i(parseInt(t[1]),0,360),e=i(parseFloat(t[2]),0,100),o=i(parseFloat(t[3]),0,100),s=i(isNaN(u)?1:u,0,1);return[f,e,o,s]}}function v(n){var t=u(n);return t&&t.slice(0,3)}function y(n){var t=f(n);return t&&t.slice(0,3)}function p(n){var t=u(n);return t?t[3]:(t=f(n))||(t=h(n))?t[3]:void 0}function w(n){return"#"+e(n[0])+e(n[1])+e(n[2])}function b(n,t){return t<1||n[3]&&n[3]<1?c(n,t):"rgb("+n[0]+", "+n[1]+", "+n[2]+")"}function c(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+t+")"}function k(n,t){if(t<1||n[3]&&n[3]<1)return l(n,t);var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgb("+i+"%, "+r+"%, "+u+"%)"}function l(n,t){var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgba("+i+"%, "+r+"%, "+u+"%, "+(t||n[3]||1)+")"}function d(n,t){return t<1||n[3]&&n[3]<1?a(n,t):"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)"}function a(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+t+")"}function g(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"hwb("+n[0]+", "+n[1]+"%, "+n[2]+"%"+(t!==undefined&&t!==1?", "+t:"")+")"}function nt(n){return o[n.slice(0,3)]}function i(n,t,i){return Math.min(Math.max(t,n),i)}function e(n){var t=n.toString(16).toUpperCase();return t.length<2?"0"+t:t}var r=n(6),o,s;t.exports={getRgba:u,getHsla:f,getRgb:v,getHsl:y,getHwb:h,getAlpha:p,hexString:w,rgbString:b,rgbaString:c,percentString:k,percentaString:l,hslString:d,hslaString:a,hwbString:g,keyword:nt};o={};for(s in r)o[r[s]]=s},{"6":6}],3:[function(n,t){var u=n(5),r=n(2),i=function(n){if(n instanceof i)return n;if(!(this instanceof i))return new i(n);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};var t;if(typeof n=="string")if(t=r.getRgba(n),t)this.setValues("rgb",t);else if(t=r.getHsla(n))this.setValues("hsl",t);else if(t=r.getHwb(n))this.setValues("hwb",t);else throw new Error('Unable to parse color from string "'+n+'"');else if(typeof n=="object")if(t=n,t.r!==undefined||t.red!==undefined)this.setValues("rgb",t);else if(t.l!==undefined||t.lightness!==undefined)this.setValues("hsl",t);else if(t.v!==undefined||t.value!==undefined)this.setValues("hsv",t);else if(t.w!==undefined||t.whiteness!==undefined)this.setValues("hwb",t);else if(t.c!==undefined||t.cyan!==undefined)this.setValues("cmyk",t);else throw new Error("Unable to parse color from object "+JSON.stringify(n));};i.prototype={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 n=this.values;return n.alpha!==1?n.hwb.concat([n.alpha]):n.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var n=this.values;return n.rgb.concat([n.alpha])},hslaArray:function(){var n=this.values;return n.hsl.concat([n.alpha])},alpha:function(n){return n===undefined?this.values.alpha:(this.setValues("alpha",n),this)},red:function(n){return this.setChannel("rgb",0,n)},green:function(n){return this.setChannel("rgb",1,n)},blue:function(n){return this.setChannel("rgb",2,n)},hue:function(n){return n&&(n%=360,n=n<0?360+n:n),this.setChannel("hsl",0,n)},saturation:function(n){return this.setChannel("hsl",1,n)},lightness:function(n){return this.setChannel("hsl",2,n)},saturationv:function(n){return this.setChannel("hsv",1,n)},whiteness:function(n){return this.setChannel("hwb",1,n)},blackness:function(n){return this.setChannel("hwb",2,n)},value:function(n){return this.setChannel("hsv",2,n)},cyan:function(n){return this.setChannel("cmyk",0,n)},magenta:function(n){return this.setChannel("cmyk",1,n)},yellow:function(n){return this.setChannel("cmyk",2,n)},black:function(n){return this.setChannel("cmyk",3,n)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var n=this.values.rgb;return n[0]<<16|n[1]<<8|n[2]},luminosity:function(){for(var r=this.values.rgb,t=[],i,n=0;n<r.length;n++)i=r[n]/255,t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4);return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(n){var t=this.luminosity(),i=n.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level:function(n){var t=this.contrast(n);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var n=this.values.rgb,t=(n[0]*299+n[1]*587+n[2]*114)/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var t=[],n=0;n<3;n++)t[n]=255-this.values.rgb[n];return this.setValues("rgb",t),this},lighten:function(n){var t=this.values.hsl;return t[2]+=t[2]*n,this.setValues("hsl",t),this},darken:function(n){var t=this.values.hsl;return t[2]-=t[2]*n,this.setValues("hsl",t),this},saturate:function(n){var t=this.values.hsl;return t[1]+=t[1]*n,this.setValues("hsl",t),this},desaturate:function(n){var t=this.values.hsl;return t[1]-=t[1]*n,this.setValues("hsl",t),this},whiten:function(n){var t=this.values.hwb;return t[1]+=t[1]*n,this.setValues("hwb",t),this},blacken:function(n){var t=this.values.hwb;return t[2]+=t[2]*n,this.setValues("hwb",t),this},greyscale:function(){var n=this.values.rgb,t=n[0]*.3+n[1]*.59+n[2]*.11;return this.setValues("rgb",[t,t,t]),this},clearer:function(n){var t=this.values.alpha;return this.setValues("alpha",t-t*n),this},opaquer:function(n){var t=this.values.alpha;return this.setValues("alpha",t+t*n),this},rotate:function(n){var t=this.values.hsl,i=(t[0]+n)%360;return t[0]=i<0?360+i:i,this.setValues("hsl",t),this},mix:function(n,t){var i=this,r=n,e=t===undefined?.5:t,u=2*e-1,o=i.alpha()-r.alpha(),f=((u*o==-1?u:(u+o)/(1+u*o))+1)/2,s=1-f;return this.rgb(f*i.red()+s*r.red(),f*i.green()+s*r.green(),f*i.blue()+s*r.blue()).alpha(i.alpha()*e+r.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var f=new i,r=this.values,e=f.values,n,u,t;for(t in r)r.hasOwnProperty(t)&&(n=r[t],u={}.toString.call(n),u==="[object Array]"?e[t]=n.slice(0):u==="[object Number]"?e[t]=n:console.error("unexpected color value:",n));return f}};i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};i.prototype.getValues=function(n){for(var i=this.values,r={},t=0;t<n.length;t++)r[n.charAt(t)]=i[n][t];return i.alpha!==1&&(r.a=i.alpha),r};i.prototype.setValues=function(n,t){var r=this.values,o=this.spaces,c=this.maxes,f=1,i,s,h,e;if(n==="alpha")f=t;else if(t.length)r[n]=t.slice(0,n.length),f=t[n.length];else if(t[n.charAt(0)]!==undefined){for(i=0;i<n.length;i++)r[n][i]=t[n.charAt(i)];f=t.a}else if(t[o[n][0]]!==undefined){for(s=o[n],i=0;i<n.length;i++)r[n][i]=t[s[i]];f=t.alpha}if(r.alpha=Math.max(0,Math.min(1,f===undefined?r.alpha:f)),n==="alpha")return!1;for(i=0;i<n.length;i++)h=Math.max(0,Math.min(c[n][i],r[n][i])),r[n][i]=Math.round(h);for(e in o)e!==n&&(r[e]=u[n][e](r[n]));return!0};i.prototype.setSpace=function(n,t){var i=t[0];return i===undefined?this.getValues(n):(typeof i=="number"&&(i=Array.prototype.slice.call(t)),this.setValues(n,i),this)};i.prototype.setChannel=function(n,t,i){var r=this.values[n];return i===undefined?r[t]:i===r[t]?this:(r[t]=i,this.setValues(n,r),this)};typeof window!="undefined"&&(window.Color=i);t.exports=i},{"2":2,"5":5}],4:[function(n,t){function u(n){var u=n[0]/255,f=n[1]/255,e=n[2]/255,r=Math.min(u,f,e),t=Math.max(u,f,e),o=t-r,i,h,s;return t==r?i=0:u==t?i=(f-e)/o:f==t?i=2+(e-u)/o:e==t&&(i=4+(u-f)/o),i=Math.min(i*60,360),i<0&&(i+=360),s=(r+t)/2,h=t==r?0:s<=.5?o/(t+r):o/(2-t-r),[i,h*100,s*100]}function c(n){var r=n[0],u=n[1],f=n[2],o=Math.min(r,u,f),i=Math.max(r,u,f),e=i-o,t,s,h;return s=i==0?0:e/i*100,i==o?t=0:r==i?t=(u-f)/e:u==i?t=2+(f-r)/e:f==i&&(t=4+(r-u)/e),t=Math.min(t*60,360),t<0&&(t+=360),h=i/255*100,[t,s,h]}function f(n){var i=n[0],r=n[1],t=n[2],f=u(n)[0],e=1/255*Math.min(i,Math.min(r,t)),t=1-1/255*Math.max(i,Math.max(r,t));return[f,e*100,t*100]}function e(n){var i=n[0]/255,r=n[1]/255,u=n[2]/255,f,e,o,t;return t=Math.min(1-i,1-r,1-u),f=(1-i-t)/(1-t)||0,e=(1-r-t)/(1-t)||0,o=(1-u-t)/(1-t)||0,[f*100,e*100,o*100,t*100]}function o(n){return nt[JSON.stringify(n)]}function y(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var u=t*.4124+i*.3576+r*.1805,f=t*.2126+i*.7152+r*.0722,e=t*.0193+i*.1192+r*.9505;return[u*100,f*100,e*100]}function p(n){var u=y(n),i=u[0],t=u[1],r=u[2],f,e,o;return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,f=116*t-16,e=500*(i-t),o=200*(t-r),[f,e,o]}function ft(n){return k(p(n))}function l(n){var h=n[0]/360,o=n[1]/100,i=n[2]/100,r,f,t,s,u,e;if(o==0)return u=i*255,[u,u,u];for(f=i<.5?i*(1+o):i+o-i*o,r=2*i-f,s=[0,0,0],e=0;e<3;e++)t=h+1/3*-(e-1),t<0&&t++,t>1&&t--,u=6*t<1?r+(f-r)*6*t:2*t<1?f:3*t<2?r+(f-r)*(2/3-t)*6:r,s[e]=u*255;return s}function et(n){var f=n[0],i=n[1]/100,t=n[2]/100,r,u;return t===0?[0,0,0]:(t*=2,i*=t<=1?t:2-t,u=(t+i)/2,r=2*i/(t+i),[f,r*100,u*100])}function ot(n){return f(l(n))}function st(n){return e(l(n))}function ht(n){return o(l(n))}function a(n){var r=n[0]/60,u=n[1]/100,t=n[2]/100,s=Math.floor(r)%6,o=r-Math.floor(r),i=255*t*(1-u),f=255*t*(1-u*o),e=255*t*(1-u*(1-o)),t=255*t;switch(s){case 0:return[t,e,i];case 1:return[f,t,i];case 2:return[i,t,e];case 3:return[i,f,t];case 4:return[e,i,t];case 5:return[t,i,f]}}function ct(n){var f=n[0],r=n[1]/100,u=n[2]/100,i,t;return t=(2-r)*u,i=r*u,i/=t<=1?t:2-t,i=i||0,t/=2,[f,i*100,t*100]}function lt(n){return f(a(n))}function at(n){return e(a(n))}function vt(n){return o(a(n))}function s(n){var h=n[0]/360,t=n[1]/100,o=n[2]/100,s=t+o,f,i,e,u;s>1&&(t/=s,o/=s);f=Math.floor(6*h);i=1-o;e=6*h-f;(f&1)!=0&&(e=1-e);u=t+e*(i-t);switch(f){default:case 6:case 0:r=i;g=u;b=t;break;case 1:r=u;g=i;b=t;break;case 2:r=t;g=i;b=u;break;case 3:r=t;g=u;b=i;break;case 4:r=u;g=t;b=i;break;case 5:r=i;g=t;b=u}return[r*255,g*255,b*255]}function yt(n){return u(s(n))}function pt(n){return c(s(n))}function wt(n){return e(s(n))}function bt(n){return o(s(n))}function h(n){var f=n[0]/100,e=n[1]/100,o=n[2]/100,t=n[3]/100,i,r,u;return i=1-Math.min(1,f*(1-t)+t),r=1-Math.min(1,e*(1-t)+t),u=1-Math.min(1,o*(1-t)+t),[i*255,r*255,u*255]}function kt(n){return u(h(n))}function dt(n){return c(h(n))}function gt(n){return f(h(n))}function ni(n){return o(h(n))}function it(n){var u=n[0]/100,f=n[1]/100,e=n[2]/100,t,i,r;return t=u*3.2406+f*-1.5372+e*-.4986,i=u*-.9689+f*1.8758+e*.0415,r=u*.0557+f*-.204+e*1.057,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t=t*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=i*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,t=Math.min(Math.max(0,t),1),i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),[t*255,i*255,r*255]}function rt(n){var i=n[0],t=n[1],r=n[2],u,f,e;return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,u=116*t-16,f=500*(i-t),e=200*(t-r),[u,f,e]}function ti(n){return k(rt(n))}function w(n){var f=n[0],e=n[1],o=n[2],r,i,u,t;return f<=8?(i=f*100/903.3,t=7.787*(i/100)+16/116):(i=100*Math.pow((f+16)/116,3),t=Math.pow(i/100,1/3)),r=r/95.047<=.008856?r=95.047*(e/500+t-16/116)/7.787:95.047*Math.pow(e/500+t,3),u=u/108.883<=.008859?u=108.883*(t-o/200-16/116)/7.787:108.883*Math.pow(t-o/200,3),[r,i,u]}function k(n){var e=n[0],i=n[1],r=n[2],u,t,f;return u=Math.atan2(r,i),t=u*180/Math.PI,t<0&&(t+=360),f=Math.sqrt(i*i+r*r),[e,f,t]}function ut(n){return it(w(n))}function d(n){var f=n[0],i=n[1],e=n[2],r,u,t;return t=e/180*Math.PI,r=i*Math.cos(t),u=i*Math.sin(t),[f,r,u]}function ii(n){return w(d(n))}function ri(n){return ut(d(n))}function i(n){return v[n]}function ui(n){return u(i(n))}function fi(n){return c(i(n))}function ei(n){return f(i(n))}function oi(n){return e(i(n))}function si(n){return p(i(n))}function hi(n){return y(i(n))}var v,nt,tt;t.exports={rgb2hsl:u,rgb2hsv:c,rgb2hwb:f,rgb2cmyk:e,rgb2keyword:o,rgb2xyz:y,rgb2lab:p,rgb2lch:ft,hsl2rgb:l,hsl2hsv:et,hsl2hwb:ot,hsl2cmyk:st,hsl2keyword:ht,hsv2rgb:a,hsv2hsl:ct,hsv2hwb:lt,hsv2cmyk:at,hsv2keyword:vt,hwb2rgb:s,hwb2hsl:yt,hwb2hsv:pt,hwb2cmyk:wt,hwb2keyword:bt,cmyk2rgb:h,cmyk2hsl:kt,cmyk2hsv:dt,cmyk2hwb:gt,cmyk2keyword:ni,keyword2rgb:i,keyword2hsl:ui,keyword2hsv:fi,keyword2hwb:ei,keyword2cmyk:oi,keyword2lab:si,keyword2xyz:hi,xyz2rgb:it,xyz2lab:rt,xyz2lch:ti,lab2xyz:w,lab2rgb:ut,lab2lch:k,lch2lab:d,lch2xyz:ii,lch2rgb:ri};v={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]};nt={};for(tt in v)nt[JSON.stringify(v[tt])]=tt},{}],5:[function(n,t){var f=n(4),i=function(){return new u},r,u;for(r in f){i[r+"Raw"]=function(n){return function(t){return typeof t=="number"&&(t=Array.prototype.slice.call(arguments)),f[n](t)}}(r);var o=/(\w+)2(\w+)/.exec(r),e=o[1],s=o[2];i[e]=i[e]||{};i[e][s]=i[r]=function(n){return function(t){var i,r;if(typeof t=="number"&&(t=Array.prototype.slice.call(arguments)),i=f[n](t),typeof i=="string"||i===undefined)return i;for(r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(r)}u=function(){this.convs={}};u.prototype.routeSpace=function(n,t){var i=t[0];return i===undefined?this.getValues(n):(typeof i=="number"&&(i=Array.prototype.slice.call(t)),this.setValues(n,i))};u.prototype.setValues=function(n,t){return this.space=n,this.convs={},this.convs[n]=t,this};u.prototype.getValues=function(n){var t=this.convs[n],r,u;return t||(r=this.space,u=this.convs[r],t=i[r][n](u),this.convs[n]=t),t};["rgb","hsl","hsv","cmyk","keyword"].forEach(function(n){u.prototype[n]=function(){return this.routeSpace(n,arguments)}});t.exports=i},{"4":4}],6:[function(n,t){t.exports={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]}},{}],7:[function(n,t){var i=n(27)();n(26)(i);n(22)(i);n(25)(i);n(21)(i);n(23)(i);n(24)(i);n(28)(i);n(32)(i);n(30)(i);n(31)(i);n(33)(i);n(29)(i);n(34)(i);n(35)(i);n(36)(i);n(37)(i);n(38)(i);n(41)(i);n(39)(i);n(40)(i);n(42)(i);n(43)(i);n(44)(i);n(15)(i);n(16)(i);n(17)(i);n(18)(i);n(19)(i);n(20)(i);n(8)(i);n(9)(i);n(10)(i);n(11)(i);n(12)(i);n(13)(i);n(14)(i);window.Chart=t.exports=i},{"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"23":23,"24":24,"25":25,"26":26,"27":27,"28":28,"29":29,"30":30,"31":31,"32":32,"33":33,"34":34,"35":35,"36":36,"37":37,"38":38,"39":39,"40":40,"41":41,"42":42,"43":43,"44":44,"8":8,"9":9}],8:[function(n,t){"use strict";t.exports=function(n){n.Bar=function(t,i){return i.type="bar",new n(t,i)}}},{}],9:[function(n,t){"use strict";t.exports=function(n){n.Bubble=function(t,i){return i.type="bubble",new n(t,i)}}},{}],10:[function(n,t){"use strict";t.exports=function(n){n.Doughnut=function(t,i){return i.type="doughnut",new n(t,i)}}},{}],11:[function(n,t){"use strict";t.exports=function(n){n.Line=function(t,i){return i.type="line",new n(t,i)}}},{}],12:[function(n,t){"use strict";t.exports=function(n){n.PolarArea=function(t,i){return i.type="polarArea",new n(t,i)}}},{}],13:[function(n,t){"use strict";t.exports=function(n){n.Radar=function(t,i){return i.options=n.helpers.configMerge({aspectRatio:1},i.options),i.type="radar",new n(t,i)}}},{}],14:[function(n,t){"use strict";t.exports=function(n){var t={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(n){return"("+n.xLabel+", "+n.yLabel+")"}}}};n.defaults.scatter=t;n.controllers.scatter=n.controllers.line;n.Scatter=function(t,i){return i.type="scatter",new n(t,i)}}},{}],15:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}};n.controllers.bar=n.DatasetController.extend({dataElementType:n.elements.Rectangle,initialize:function(t,i){n.DatasetController.prototype.initialize.call(this,t,i);this.getMeta().bar=!0},getBarCount:function(){var n=this,i=0;return t.each(n.chart.data.datasets,function(t,r){var u=n.chart.getDatasetMeta(r);u.bar&&n.chart.isDatasetVisible(r)&&++i},n),i},update:function(n){var i=this;t.each(i.getMeta().data,function(t,r){i.updateElement(t,r,n)},i)},updateElement:function(n,i,r){var u=this,s=u.getMeta(),l=u.getScaleForId(s.xAxisID),h=u.getScaleForId(s.yAxisID),c=h.getBasePixel(),e=u.chart.options.elements.rectangle,f=n.custom||{},o=u.getDataset();t.extend(n,{_xScale:l,_yScale:h,_datasetIndex:u.index,_index:i,_model:{x:u.calculateBarX(i,u.index),y:r?c:u.calculateBarY(i,u.index),label:u.chart.data.labels[i],datasetLabel:o.label,base:r?c:u.calculateBarBase(u.index,i),width:u.calculateBarWidth(i),backgroundColor:f.backgroundColor?f.backgroundColor:t.getValueAtIndexOrDefault(o.backgroundColor,i,e.backgroundColor),borderSkipped:f.borderSkipped?f.borderSkipped:e.borderSkipped,borderColor:f.borderColor?f.borderColor:t.getValueAtIndexOrDefault(o.borderColor,i,e.borderColor),borderWidth:f.borderWidth?f.borderWidth:t.getValueAtIndexOrDefault(o.borderWidth,i,e.borderWidth)}});n.pivot()},calculateBarBase:function(n,t){var u=this,l=u.getMeta(),r=u.getScaleForId(l.yAxisID),s=0,i,c,e,o;if(r.options.stacked){var f=u.chart,h=f.data.datasets,a=Number(h[n].data[t]);for(i=0;i<n;i++)c=h[i],e=f.getDatasetMeta(i),e.bar&&e.yAxisID===r.id&&f.isDatasetVisible(i)&&(o=Number(c.data[t]),s+=a<0?Math.min(o,0):Math.max(o,0));return r.getPixelForValue(s)}return r.getBasePixel()},getRuler:function(n){var r=this,c=r.getMeta(),t=r.getScaleForId(c.xAxisID),f=r.getBarCount(),u,o,s,h;u=t.options.type==="category"?t.getPixelForTick(n+1)-t.getPixelForTick(n):t.width/t.ticks.length;var e=u*t.options.categoryPercentage,l=(u-u*t.options.categoryPercentage)/2,i=e/f;return t.ticks.length!==r.chart.data.labels.length&&(o=t.ticks.length/r.chart.data.labels.length,i=i*o),s=i*t.options.barPercentage,h=i-i*t.options.barPercentage,{datasetCount:f,tickWidth:u,categoryWidth:e,categorySpacing:l,fullBarWidth:i,barWidth:s,barSpacing:h}},calculateBarWidth:function(n){var t=this.getScaleForId(this.getMeta().xAxisID),i;return t.options.barThickness?t.options.barThickness:(i=this.getRuler(n),t.options.stacked?i.categoryWidth:i.barWidth)},getBarIndex:function(n){for(var i=0,r,t=0;t<n;++t)r=this.chart.getDatasetMeta(t),r.bar&&this.chart.isDatasetVisible(t)&&++i;return i},calculateBarX:function(n,t){var r=this,o=r.getMeta(),f=r.getScaleForId(o.xAxisID),e=r.getBarIndex(t),i=r.getRuler(n),u=f.getPixelForValue(null,n,t,r.chart.isCombo);return(u-=r.chart.isCombo?i.tickWidth/2:0,f.options.stacked)?u+i.categoryWidth/2+i.categorySpacing:u+i.barWidth/2+i.categorySpacing+i.barWidth*e+i.barSpacing/2+i.barSpacing*e},calculateBarY:function(n,t){var i=this,l=i.getMeta(),u=i.getScaleForId(l.yAxisID),f=Number(i.getDataset().data[n]),o,s,r,c,h,e;if(u.options.stacked){for(o=0,s=0,r=0;r<t;r++)c=i.chart.data.datasets[r],h=i.chart.getDatasetMeta(r),h.bar&&h.yAxisID===u.id&&i.chart.isDatasetVisible(r)&&(e=Number(c.data[n]),e<0?s+=e||0:o+=e||0);return f<0?u.getPixelForValue(s+f):u.getPixelForValue(o+f)}return u.getPixelForValue(f)},draw:function(n){var i=this,r=n||1;t.each(i.getMeta().data,function(n,t){var u=i.getDataset().data[t];u===null||u===undefined||isNaN(u)||n.transition(r).draw()},i)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.hoverBackgroundColor,f,t.getHoverColor(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.hoverBorderColor,f,t.getHoverColor(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.hoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,i=n.custom||{},f=n._model,e=this.chart.options.elements.rectangle;f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.backgroundColor,u,e.backgroundColor);f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.borderColor,u,e.borderColor);f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.borderWidth,u,e.borderWidth)}});n.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(n,t){var i="";return n.length>0&&(n[0].yLabel?i=n[0].yLabel:t.labels.length>0&&n[0].index<t.labels.length&&(i=t.labels[n[0].index])),i},label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i+": "+n.xLabel}}}};n.controllers.horizontalBar=n.controllers.bar.extend({updateElement:function(n,i,r){var u=this,s=u.getMeta(),h=u.getScaleForId(s.xAxisID),l=u.getScaleForId(s.yAxisID),c=h.getBasePixel(),f=n.custom||{},e=u.getDataset(),o=u.chart.options.elements.rectangle;t.extend(n,{_xScale:h,_yScale:l,_datasetIndex:u.index,_index:i,_model:{x:r?c:u.calculateBarX(i,u.index),y:u.calculateBarY(i,u.index),label:u.chart.data.labels[i],datasetLabel:e.label,base:r?c:u.calculateBarBase(u.index,i),height:u.calculateBarHeight(i),backgroundColor:f.backgroundColor?f.backgroundColor:t.getValueAtIndexOrDefault(e.backgroundColor,i,o.backgroundColor),borderSkipped:f.borderSkipped?f.borderSkipped:o.borderSkipped,borderColor:f.borderColor?f.borderColor:t.getValueAtIndexOrDefault(e.borderColor,i,o.borderColor),borderWidth:f.borderWidth?f.borderWidth:t.getValueAtIndexOrDefault(e.borderWidth,i,o.borderWidth)},draw:function(){function h(n){return c[(o+n)%4]}var t=this._chart.ctx,n=this._view,s=n.height/2,r=n.y-s,u=n.y+s,f=n.base-(n.base-n.x),e=n.borderWidth/2,i;n.borderWidth&&(r+=e,u-=e,f+=e);t.beginPath();t.fillStyle=n.backgroundColor;t.strokeStyle=n.borderColor;t.lineWidth=n.borderWidth;var c=[[n.base,u],[n.base,r],[f,r],[f,u]],o=["bottom","left","top","right"].indexOf(n.borderSkipped,0);for(o===-1&&(o=0),t.moveTo.apply(t,h(0)),i=1;i<4;i++)t.lineTo.apply(t,h(i));t.fill();n.borderWidth&&t.stroke()},inRange:function(n,t){var i=this._view,r=!1;return i&&(r=i.x<i.base?t>=i.y-i.height/2&&t<=i.y+i.height/2&&n>=i.x&&n<=i.base:t>=i.y-i.height/2&&t<=i.y+i.height/2&&n>=i.base&&n<=i.x),r}});n.pivot()},calculateBarBase:function(n,t){var u=this,l=u.getMeta(),r=u.getScaleForId(l.xAxisID),s=0,i,c,e,o;if(r.options.stacked){var f=u.chart,h=f.data.datasets,a=Number(h[n].data[t]);for(i=0;i<n;i++)c=h[i],e=f.getDatasetMeta(i),e.bar&&e.xAxisID===r.id&&f.isDatasetVisible(i)&&(o=Number(c.data[t]),s+=a<0?Math.min(o,0):Math.max(o,0));return r.getPixelForValue(s)}return r.getBasePixel()},getRuler:function(n){var r=this,c=r.getMeta(),t=r.getScaleForId(c.yAxisID),f=r.getBarCount(),u,o,s,h;u=t.options.type==="category"?t.getPixelForTick(n+1)-t.getPixelForTick(n):t.width/t.ticks.length;var e=u*t.options.categoryPercentage,l=(u-u*t.options.categoryPercentage)/2,i=e/f;return t.ticks.length!==r.chart.data.labels.length&&(o=t.ticks.length/r.chart.data.labels.length,i=i*o),s=i*t.options.barPercentage,h=i-i*t.options.barPercentage,{datasetCount:f,tickHeight:u,categoryHeight:e,categorySpacing:l,fullBarHeight:i,barHeight:s,barSpacing:h}},calculateBarHeight:function(n){var t=this,i=t.getScaleForId(t.getMeta().yAxisID),r;return i.options.barThickness?i.options.barThickness:(r=t.getRuler(n),i.options.stacked?r.categoryHeight:r.barHeight)},calculateBarX:function(n,t){var i=this,l=i.getMeta(),u=i.getScaleForId(l.xAxisID),f=Number(i.getDataset().data[n]),o,s,r,c,h,e;if(u.options.stacked){for(o=0,s=0,r=0;r<t;r++)c=i.chart.data.datasets[r],h=i.chart.getDatasetMeta(r),h.bar&&h.xAxisID===u.id&&i.chart.isDatasetVisible(r)&&(e=Number(c.data[n]),e<0?s+=e||0:o+=e||0);return f<0?u.getPixelForValue(s+f):u.getPixelForValue(o+f)}return u.getPixelForValue(f)},calculateBarY:function(n,t){var r=this,o=r.getMeta(),f=r.getScaleForId(o.yAxisID),e=r.getBarIndex(t),i=r.getRuler(n),u=f.getPixelForValue(null,n,t,r.chart.isCombo);return(u-=r.chart.isCombo?i.tickHeight/2:0,f.options.stacked)?u+i.categoryHeight/2+i.categorySpacing:u+i.barHeight/2+i.categorySpacing+i.barHeight*e+i.barSpacing/2+i.barSpacing*e}})}},{}],16:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.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(n,t){var r=t.datasets[n.datasetIndex].label||"",i=t.datasets[n.datasetIndex].data[n.index];return r+": ("+i.x+", "+i.y+", "+i.r+")"}}}};n.controllers.bubble=n.DatasetController.extend({dataElementType:n.elements.Point,update:function(n){var i=this,r=i.getMeta(),u=r.data;t.each(u,function(t,r){i.updateElement(t,r,n)})},updateElement:function(i,r,u){var f=this,a=f.getMeta(),h=f.getScaleForId(a.xAxisID),c=f.getScaleForId(a.yAxisID),e=i.custom||{},v=f.getDataset(),o=v.data[r],y=f.chart.options.elements.point,l=f.index,s;t.extend(i,{_xScale:h,_yScale:c,_datasetIndex:l,_index:r,_model:{x:u?h.getPixelForDecimal(.5):h.getPixelForValue(typeof o=="object"?o:NaN,r,l,f.chart.isCombo),y:u?c.getBasePixel():c.getPixelForValue(o,r,l),radius:u?0:e.radius?e.radius:f.getRadius(o),hitRadius:e.hitRadius?e.hitRadius:t.getValueAtIndexOrDefault(v.hitRadius,r,y.hitRadius)}});n.DatasetController.prototype.removeHoverStyle.call(f,i,y);s=i._model;s.skip=e.skip?e.skip:isNaN(s.x)||isNaN(s.y);i.pivot()},getRadius:function(n){return n.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var r=this;n.DatasetController.prototype.setHoverStyle.call(r,i);var u=r.chart.data.datasets[i._datasetIndex],f=i._index,e=i.custom||{},o=i._model;o.radius=e.hoverRadius?e.hoverRadius:t.getValueAtIndexOrDefault(u.hoverRadius,f,r.chart.options.elements.point.hoverRadius)+r.getRadius(u.data[f])},removeHoverStyle:function(t){var i=this;n.DatasetController.prototype.removeHoverStyle.call(i,t,i.chart.options.elements.point);var u=i.chart.data.datasets[t._datasetIndex].data[t._index],r=t.custom||{},f=t._model;f.radius=r.radius?r.radius:i.getRadius(u)}})}},{}],17:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c&&c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc,l=f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),a=f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),v=f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth);return{text:r,fillStyle:l,strokeStyle:a,lineWidth:v,hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var u=t.index,f=this.chart,r,i=0,e=(f.data.datasets||[]).length;i<e;++i)r=f.getDatasetMeta(i),r.data[u]&&(r.data[u].hidden=!r.data[u].hidden);f.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:Math.PI*2,tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+t.datasets[n.datasetIndex].data[n.index]}}}};i.pie=t.clone(i.doughnut);t.extend(i.pie,{cutoutPercentage:0});n.controllers.doughnut=n.controllers.pie=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,getRingIndex:function(n){for(var i=0,t=0;t<n;++t)this.chart.isDatasetVisible(t)&&++i;return i},update:function(n){var u=this,i=u.chart,h=i.chartArea,c=i.options,w=c.elements.arc,b=h.right-h.left-w.borderWidth,k=h.bottom-h.top-w.borderWidth,d=Math.min(b,k),v={x:0,y:0},y=u.getMeta(),p=c.cutoutPercentage,g=c.circumference,r;if(g<Math.PI*2){r=c.rotation%(Math.PI*2)+Math.PI*2*(r>=Math.PI?-1:r<-Math.PI?1:0);var f=r+g,e={x:Math.cos(r),y:Math.sin(r)},o={x:Math.cos(f),y:Math.sin(f)},tt=r<=0&&0<=f||r<=Math.PI*2&&Math.PI*2<=f,it=r<=Math.PI*.5&&Math.PI*.5<=f||r<=Math.PI*2.5&&Math.PI*2.5<=f,rt=r<=-Math.PI&&-Math.PI<=f||r<=Math.PI&&Math.PI<=f,ut=r<=-Math.PI*.5&&-Math.PI*.5<=f||r<=Math.PI*1.5&&Math.PI*1.5<=f,s=p/100,l={x:rt?-1:Math.min(e.x*(e.x<0?1:s),o.x*(o.x<0?1:s)),y:ut?-1:Math.min(e.y*(e.y<0?1:s),o.y*(o.y<0?1:s))},a={x:tt?1:Math.max(e.x*(e.x>0?1:s),o.x*(o.x>0?1:s)),y:it?1:Math.max(e.y*(e.y>0?1:s),o.y*(o.y>0?1:s))},nt={width:(a.x-l.x)*.5,height:(a.y-l.y)*.5};d=Math.min(b/nt.width,k/nt.height);v={x:(a.x+l.x)*-.5,y:(a.y+l.y)*-.5}}i.borderWidth=u.getMaxBorderWidth(y.data);i.outerRadius=Math.max((d-i.borderWidth)/2,0);i.innerRadius=Math.max(p?i.outerRadius/100*p:1,0);i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount();i.offsetX=v.x*i.outerRadius;i.offsetY=v.y*i.outerRadius;y.total=u.calculateTotal();u.outerRadius=i.outerRadius-i.radiusLength*u.getRingIndex(u.index);u.innerRadius=u.outerRadius-i.radiusLength;t.each(y.data,function(t,i){u.updateElement(t,i,n)})},updateElement:function(n,i,r){var u=this,f=u.chart,s=f.chartArea,e=f.options,h=e.animation,l=(s.left+s.right)/2,a=(s.top+s.bottom)/2,v=e.rotation,y=e.rotation,c=u.getDataset(),p=r&&h.animateRotate?0:n.hidden?0:u.calculateCircumference(c.data[i])*(e.circumference/(2*Math.PI)),w=r&&h.animateScale?0:u.innerRadius,b=r&&h.animateScale?0:u.outerRadius,k=t.getValueAtIndexOrDefault,o;t.extend(n,{_datasetIndex:u.index,_index:i,_model:{x:l+f.offsetX,y:a+f.offsetY,startAngle:v,endAngle:y,circumference:p,outerRadius:b,innerRadius:w,label:k(c.label,i,f.data.labels[i])}});o=n._model;this.removeHoverStyle(n);r&&h.animateRotate||(o.startAngle=i===0?e.rotation:u.getMeta().data[i-1]._model.endAngle,o.endAngle=o.startAngle+o.circumference);n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var r=this.getDataset(),u=this.getMeta(),i=0,n;return t.each(u.data,function(t,u){n=r.data[u];isNaN(n)||t.hidden||(i+=Math.abs(n))}),i},calculateCircumference:function(n){var t=this.getMeta().total;return t>0&&!isNaN(n)?Math.PI*2*(n/t):0},getMaxBorderWidth:function(n){for(var t=0,f=this.index,e=n.length,r,u,i=0;i<e;i++)r=n[i]._model?n[i]._model.borderWidth:0,u=n[i]._chart?n[i]._chart.config.data.datasets[f].hoverBorderWidth:0,t=r>t?r:t,t=u>t?u:t;return t}})}},{}],18:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return t.getValueOrDefault(n.showLine,i.showLines)}var t=n.helpers;n.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}};n.controllers.line=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,addElementAndReset:function(t){var r=this,u=r.chart.options,f=r.getMeta();n.DatasetController.prototype.addElementAndReset.call(r,t);i(r.getDataset(),u)&&f.dataset._model.tension!==0&&r.updateBezierControlPoints()},update:function(n){var o=this,a=o.getMeta(),s=a.dataset,h=a.data||[],v=o.chart.options,f=v.elements.line,c=o.getScaleForId(a.yAxisID),e,l,r,u=o.getDataset(),y=i(u,v);for(y&&(r=s.custom||{},u.tension!==undefined&&u.lineTension===undefined&&(u.lineTension=u.tension),s._scale=c,s._datasetIndex=o.index,s._children=h,s._model={spanGaps:u.spanGaps?u.spanGaps:v.spanGaps,tension:r.tension?r.tension:t.getValueOrDefault(u.lineTension,f.tension),backgroundColor:r.backgroundColor?r.backgroundColor:u.backgroundColor||f.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:u.borderWidth||f.borderWidth,borderColor:r.borderColor?r.borderColor:u.borderColor||f.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:u.borderCapStyle||f.borderCapStyle,borderDash:r.borderDash?r.borderDash:u.borderDash||f.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:u.borderDashOffset||f.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:u.borderJoinStyle||f.borderJoinStyle,fill:r.fill?r.fill:u.fill!==undefined?u.fill:f.fill,steppedLine:r.steppedLine?r.steppedLine:t.getValueOrDefault(u.steppedLine,f.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:t.getValueOrDefault(u.cubicInterpolationMode,f.cubicInterpolationMode),scaleTop:c.top,scaleBottom:c.bottom,scaleZero:c.getBasePixel()},s.pivot()),e=0,l=h.length;e<l;++e)o.updateElement(h[e],e,n);for(y&&s._model.tension!==0&&o.updateBezierControlPoints(),e=0,l=h.length;e<l;++e)h[e].pivot()},getPointBackgroundColor:function(n,i){var r=this.chart.options.elements.point.backgroundColor,u=this.getDataset(),f=n.custom||{};return f.backgroundColor?r=f.backgroundColor:u.pointBackgroundColor?r=t.getValueAtIndexOrDefault(u.pointBackgroundColor,i,r):u.backgroundColor&&(r=u.backgroundColor),r},getPointBorderColor:function(n,i){var r=this.chart.options.elements.point.borderColor,u=this.getDataset(),f=n.custom||{};return f.borderColor?r=f.borderColor:u.pointBorderColor?r=t.getValueAtIndexOrDefault(u.pointBorderColor,i,r):u.borderColor&&(r=u.borderColor),r},getPointBorderWidth:function(n,i){var r=this.chart.options.elements.point.borderWidth,u=this.getDataset(),f=n.custom||{};return f.borderWidth?r=f.borderWidth:u.pointBorderWidth?r=t.getValueAtIndexOrDefault(u.pointBorderWidth,i,r):u.borderWidth&&(r=u.borderWidth),r},updateElement:function(n,i,r){var f=this,e=f.getMeta(),o=n.custom||{},u=f.getDataset(),s=f.index,h=u.data[i],v=f.getScaleForId(e.yAxisID),y=f.getScaleForId(e.xAxisID),c=f.chart.options.elements.point,l,a,p=f.chart.data.labels||[],w=p.length===1||u.data.length===1||f.chart.isCombo;u.radius!==undefined&&u.pointRadius===undefined&&(u.pointRadius=u.radius);u.hitRadius!==undefined&&u.pointHitRadius===undefined&&(u.pointHitRadius=u.hitRadius);l=y.getPixelForValue(typeof h=="object"?h:NaN,i,s,w);a=r?v.getBasePixel():f.calculatePointY(h,i,s);n._xScale=y;n._yScale=v;n._datasetIndex=s;n._index=i;n._model={x:l,y:a,skip:o.skip||isNaN(l)||isNaN(a),radius:o.radius||t.getValueAtIndexOrDefault(u.pointRadius,i,c.radius),pointStyle:o.pointStyle||t.getValueAtIndexOrDefault(u.pointStyle,i,c.pointStyle),backgroundColor:f.getPointBackgroundColor(n,i),borderColor:f.getPointBorderColor(n,i),borderWidth:f.getPointBorderWidth(n,i),tension:e.dataset._model?e.dataset._model.tension:0,steppedLine:e.dataset._model?e.dataset._model.steppedLine:!1,hitRadius:o.hitRadius||t.getValueAtIndexOrDefault(u.pointHitRadius,i,c.hitRadius)}},calculatePointY:function(n,t,i){var o=this,s=o.chart,v=o.getMeta(),r=o.getScaleForId(v.yAxisID),c=0,l=0,u,a,h,f,e;if(r.options.stacked){for(u=0;u<i;u++)a=s.data.datasets[u],h=s.getDatasetMeta(u),h.type==="line"&&h.yAxisID===r.id&&s.isDatasetVisible(u)&&(f=Number(r.getRightValue(a.data[t])),f<0?l+=f||0:c+=f||0);return(e=Number(r.getRightValue(n)),e<0)?r.getPixelForValue(l+e):r.getPixelForValue(c+e)}return r.getPixelForValue(n)},updateBezierControlPoints:function(){function s(n,t,i){return Math.max(Math.min(n,i),t)}var h=this,e=h.getMeta(),u=h.chart.chartArea,r=e.data||[],i,o,c,n,f;if(e.dataset._model.spanGaps&&(r=r.filter(function(n){return!n._model.skip})),e.dataset._model.cubicInterpolationMode==="monotone")t.splineCurveMonotone(r);else for(i=0,o=r.length;i<o;++i)c=r[i],n=c._model,f=t.splineCurve(t.previousItem(r,i)._model,n,t.nextItem(r,i)._model,e.dataset._model.tension),n.controlPointPreviousX=f.previous.x,n.controlPointPreviousY=f.previous.y,n.controlPointNextX=f.next.x,n.controlPointNextY=f.next.y;if(h.chart.options.elements.line.capBezierPoints)for(i=0,o=r.length;i<o;++i)n=r[i]._model,n.controlPointPreviousX=s(n.controlPointPreviousX,u.left,u.right),n.controlPointPreviousY=s(n.controlPointPreviousY,u.top,u.bottom),n.controlPointNextX=s(n.controlPointNextX,u.left,u.right),n.controlPointNextY=s(n.controlPointNextY,u.top,u.bottom)},draw:function(n){for(var f=this,e=f.getMeta(),r=e.data||[],o=n||1,t=0,u=r.length;t<u;++t)r[t].transition(o);for(i(f.getDataset(),f.chart.options)&&e.dataset.transition(o).draw(),t=0,u=r.length;t<u;++t)r[t].draw()},setHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,f=n.custom||{},i=n._model;i.radius=f.hoverRadius||t.getValueAtIndexOrDefault(r.pointHoverRadius,u,this.chart.options.elements.point.hoverRadius);i.backgroundColor=f.hoverBackgroundColor||t.getValueAtIndexOrDefault(r.pointHoverBackgroundColor,u,t.getHoverColor(i.backgroundColor));i.borderColor=f.hoverBorderColor||t.getValueAtIndexOrDefault(r.pointHoverBorderColor,u,t.getHoverColor(i.borderColor));i.borderWidth=f.hoverBorderWidth||t.getValueAtIndexOrDefault(r.pointHoverBorderWidth,u,i.borderWidth)},removeHoverStyle:function(n){var i=this,r=i.chart.data.datasets[n._datasetIndex],u=n._index,e=n.custom||{},f=n._model;r.radius!==undefined&&r.pointRadius===undefined&&(r.pointRadius=r.radius);f.radius=e.radius||t.getValueAtIndexOrDefault(r.pointRadius,u,i.chart.options.elements.point.radius);f.backgroundColor=i.getPointBackgroundColor(n,u);f.borderColor=i.getPointBorderColor(n,u);f.borderWidth=i.getPointBorderWidth(n,u)}})}},{}],19:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'">'),f[i]&&t.push(f[i]),t.push("<\/span><\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc,l=f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),a=f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),v=f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth);return{text:r,fillStyle:l,strokeStyle:a,lineWidth:v,hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var f=t.index,r=this.chart,u,i=0,e=(r.data.datasets||[]).length;i<e;++i)u=r.getDatasetMeta(i),u.data[f].hidden=!u.data[f].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+n.yLabel}}}};n.controllers.polarArea=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,update:function(n){var r=this,i=r.chart,u=i.chartArea,e=r.getMeta(),f=i.options,o=f.elements.arc,s=Math.min(u.right-u.left,u.bottom-u.top);i.outerRadius=Math.max((s-o.borderWidth/2)/2,0);i.innerRadius=Math.max(f.cutoutPercentage?i.outerRadius/100*f.cutoutPercentage:1,0);i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount();r.outerRadius=i.outerRadius-i.radiusLength*r.index;r.innerRadius=r.outerRadius-i.radiusLength;e.count=r.countVisibleElements();t.each(e.data,function(t,i){r.updateElement(t,i,n)})},updateElement:function(n,i,r){for(var u=this,s=u.chart,o=u.getDataset(),l=s.options,h=l.animation,f=s.scale,w=t.getValueAtIndexOrDefault,a=s.data.labels,v=u.calculateCircumference(o.data[i]),b=f.xCenter,k=f.yCenter,y=0,d=u.getMeta(),e=0;e<i;++e)isNaN(o.data[e])||d.data[e].hidden||++y;var c=l.startAngle,g=n.hidden?0:f.getDistanceFromCenterForValue(o.data[i]),p=c+v*y,nt=p+(n.hidden?0:v),tt=h.animateScale?0:f.getDistanceFromCenterForValue(o.data[i]);t.extend(n,{_datasetIndex:u.index,_index:i,_scale:f,_model:{x:b,y:k,innerRadius:0,outerRadius:r?tt:g,startAngle:r&&h.animateRotate?c:p,endAngle:r&&h.animateRotate?c:nt,label:w(a,i,a[i])}});u.removeHoverStyle(n);n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var i=this.getDataset(),r=this.getMeta(),n=0;return t.each(r.data,function(t,r){isNaN(i.data[r])||t.hidden||n++}),n},calculateCircumference:function(n){var t=this.getMeta().count;return t>0&&!isNaN(n)?2*Math.PI/t:0}})}},{}],20:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.radar={scale:{type:"radialLinear"},elements:{line:{tension:0}}};n.controllers.radar=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,linkScales:t.noop,addElementAndReset:function(t){n.DatasetController.prototype.addElementAndReset.call(this,t);this.updateBezierControlPoints()},update:function(n){var f=this,e=f.getMeta(),h=e.dataset,s=e.data,i=h.custom||{},r=f.getDataset(),u=f.chart.options.elements.line,o=f.chart.scale;r.tension!==undefined&&r.lineTension===undefined&&(r.lineTension=r.tension);t.extend(e.dataset,{_datasetIndex:f.index,_children:s,_loop:!0,_model:{tension:i.tension?i.tension:t.getValueOrDefault(r.lineTension,u.tension),backgroundColor:i.backgroundColor?i.backgroundColor:r.backgroundColor||u.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:r.borderWidth||u.borderWidth,borderColor:i.borderColor?i.borderColor:r.borderColor||u.borderColor,fill:i.fill?i.fill:r.fill!==undefined?r.fill:u.fill,borderCapStyle:i.borderCapStyle?i.borderCapStyle:r.borderCapStyle||u.borderCapStyle,borderDash:i.borderDash?i.borderDash:r.borderDash||u.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:r.borderDashOffset||u.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:r.borderJoinStyle||u.borderJoinStyle,scaleTop:o.top,scaleBottom:o.bottom,scaleZero:o.getBasePosition()}});e.dataset.pivot();t.each(s,function(t,i){f.updateElement(t,i,n)},f);f.updateBezierControlPoints()},updateElement:function(n,i,r){var o=this,u=n.custom||{},f=o.getDataset(),s=o.chart.scale,e=o.chart.options.elements.point,h=s.getPointPositionForValue(i,f.data[i]);t.extend(n,{_datasetIndex:o.index,_index:i,_scale:s,_model:{x:r?s.xCenter:h.x,y:r?s.yCenter:h.y,tension:u.tension?u.tension:t.getValueOrDefault(f.tension,o.chart.options.elements.line.tension),radius:u.radius?u.radius:t.getValueAtIndexOrDefault(f.pointRadius,i,e.radius),backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(f.pointBackgroundColor,i,e.backgroundColor),borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(f.pointBorderColor,i,e.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(f.pointBorderWidth,i,e.borderWidth),pointStyle:u.pointStyle?u.pointStyle:t.getValueAtIndexOrDefault(f.pointStyle,i,e.pointStyle),hitRadius:u.hitRadius?u.hitRadius:t.getValueAtIndexOrDefault(f.hitRadius,i,e.hitRadius)}});n._model.skip=u.skip?u.skip:isNaN(n._model.x)||isNaN(n._model.y)},updateBezierControlPoints:function(){var n=this.chart.chartArea,i=this.getMeta();t.each(i.data,function(r,u){var f=r._model,e=t.splineCurve(t.previousItem(i.data,u,!0)._model,f,t.nextItem(i.data,u,!0)._model,f.tension);f.controlPointPreviousX=Math.max(Math.min(e.previous.x,n.right),n.left);f.controlPointPreviousY=Math.max(Math.min(e.previous.y,n.bottom),n.top);f.controlPointNextX=Math.max(Math.min(e.next.x,n.right),n.left);f.controlPointNextY=Math.max(Math.min(e.next.y,n.bottom),n.top);r.pivot()})},draw:function(n){var i=this.getMeta(),r=n||1;t.each(i.data,function(n){n.transition(r)});i.dataset.transition(r).draw();t.each(i.data,function(n){n.draw()})},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},f=n._index,r=n._model;r.radius=i.hoverRadius?i.hoverRadius:t.getValueAtIndexOrDefault(u.pointHoverRadius,f,this.chart.options.elements.point.hoverRadius);r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.pointHoverBackgroundColor,f,t.getHoverColor(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.pointHoverBorderColor,f,t.getHoverColor(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.pointHoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},u=n._index,f=n._model,e=this.chart.options.elements.point;f.radius=i.radius?i.radius:t.getValueAtIndexOrDefault(r.radius,u,e.radius);f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.pointBackgroundColor,u,e.backgroundColor);f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.pointBorderColor,u,e.borderColor);f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.pointBorderWidth,u,e.borderWidth)}})}},{}],21:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:t.noop,onComplete:t.noop};n.Animation=n.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});n.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(n,t,i,r){var u=this,f;for(r||(n.animating=!0),f=0;f<u.animations.length;++f)if(u.animations[f].chartInstance===n){u.animations[f].animationObject=t;return}u.animations.push({chartInstance:n,animationObject:t});u.animations.length===1&&u.requestAnimationFrame()},cancelAnimation:function(n){var i=t.findIndex(this.animations,function(t){return t.chartInstance===n});i!==-1&&(this.animations.splice(i,1),n.animating=!1)},requestAnimationFrame:function(){var n=this;n.request===null&&(n.request=t.requestAnimFrame.call(window,function(){n.request=null;n.startDigest()}))},startDigest:function(){var n=this,f=Date.now(),i=0,t,r,u;for(n.dropFrames>1&&(i=Math.floor(n.dropFrames),n.dropFrames=n.dropFrames%1),t=0;t<n.animations.length;)n.animations[t].animationObject.currentStep===null&&(n.animations[t].animationObject.currentStep=0),n.animations[t].animationObject.currentStep+=1+i,n.animations[t].animationObject.currentStep>n.animations[t].animationObject.numSteps&&(n.animations[t].animationObject.currentStep=n.animations[t].animationObject.numSteps),n.animations[t].animationObject.render(n.animations[t].chartInstance,n.animations[t].animationObject),n.animations[t].animationObject.onAnimationProgress&&n.animations[t].animationObject.onAnimationProgress.call&&n.animations[t].animationObject.onAnimationProgress.call(n.animations[t].chartInstance,n.animations[t]),n.animations[t].animationObject.currentStep===n.animations[t].animationObject.numSteps?(n.animations[t].animationObject.onAnimationComplete&&n.animations[t].animationObject.onAnimationComplete.call&&n.animations[t].animationObject.onAnimationComplete.call(n.animations[t].chartInstance,n.animations[t]),n.animations[t].chartInstance.animating=!1,n.animations.splice(t,1)):++t;r=Date.now();u=(r-f)/n.frameDuration;n.dropFrames+=u;n.animations.length>0&&n.requestAnimationFrame()}}}},{}],22:[function(n,t){"use strict";t.exports=function(n){var t=n.canvasHelpers={};t.drawPoint=function(n,t,i,r,u){var c,s,e,o,h,f;if(typeof t=="object"&&(c=t.toString(),c==="[object HTMLImageElement]"||c==="[object HTMLCanvasElement]")){n.drawImage(t,r-t.width/2,u-t.height/2);return}if(!isNaN(i)&&!(i<=0)){switch(t){default:n.beginPath();n.arc(r,u,i,0,Math.PI*2);n.closePath();n.fill();break;case"triangle":n.beginPath();s=3*i/Math.sqrt(3);h=s*Math.sqrt(3)/2;n.moveTo(r-s/2,u+h/3);n.lineTo(r+s/2,u+h/3);n.lineTo(r,u-2*h/3);n.closePath();n.fill();break;case"rect":f=1/Math.SQRT2*i;n.beginPath();n.fillRect(r-f,u-f,2*f,2*f);n.strokeRect(r-f,u-f,2*f,2*f);break;case"rectRot":f=1/Math.SQRT2*i;n.beginPath();n.moveTo(r-f,u);n.lineTo(r,u+f);n.lineTo(r+f,u);n.lineTo(r,u-f);n.closePath();n.fill();break;case"cross":n.beginPath();n.moveTo(r,u+i);n.lineTo(r,u-i);n.moveTo(r-i,u);n.lineTo(r+i,u);n.closePath();break;case"crossRot":n.beginPath();e=Math.cos(Math.PI/4)*i;o=Math.sin(Math.PI/4)*i;n.moveTo(r-e,u-o);n.lineTo(r+e,u+o);n.moveTo(r-e,u+o);n.lineTo(r+e,u-o);n.closePath();break;case"star":n.beginPath();n.moveTo(r,u+i);n.lineTo(r,u-i);n.moveTo(r-i,u);n.lineTo(r+i,u);e=Math.cos(Math.PI/4)*i;o=Math.sin(Math.PI/4)*i;n.moveTo(r-e,u-o);n.lineTo(r+e,u+o);n.moveTo(r-e,u+o);n.lineTo(r+e,u-o);n.closePath();break;case"line":n.beginPath();n.moveTo(r-i,u);n.lineTo(r+i,u);n.closePath();break;case"dash":n.beginPath();n.moveTo(r,u);n.lineTo(r+i,u);n.closePath()}n.stroke()}}}},{}],23:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.types={};n.instances={};n.controllers={};n.Controller=function(i){return this.chart=i,this.config=i.config,this.options=this.config.options=t.configMerge(n.defaults.global,n.defaults[this.config.type],this.config.options||{}),this.id=t.uid(),Object.defineProperty(this,"data",{get:function(){return this.config.data}}),n.instances[this.id]=this,this.options.responsive&&this.resize(!0),this.initialize(),this};t.extend(n.Controller.prototype,{initialize:function(){var t=this;return n.plugins.notify("beforeInit",[t]),t.bindEvents(),t.ensureScalesHaveIDs(),t.buildOrUpdateControllers(),t.buildScales(),t.updateLayout(),t.resetElements(),t.initToolTip(),t.update(),n.plugins.notify("afterInit",[t]),t},clear:function(){return t.clear(this.chart),this},stop:function(){return n.animationService.cancelAnimation(this),this},resize:function(i){var r=this,u=r.chart,f=u.canvas,e=t.getMaximumWidth(f),o=u.aspectRatio,s=r.options.maintainAspectRatio&&isNaN(o)===!1&&isFinite(o)&&o!==0?e/o:t.getMaximumHeight(f),c=u.width!==e||u.height!==s,h;if(!c)return r;if(f.width=u.width=e,f.height=u.height=s,t.retinaScale(u),h={width:e,height:s},n.plugins.notify("resize",[r,h]),r.options.onResize)r.options.onResize(r,h);return i||(r.stop(),r.update(r.options.responsiveAnimationDuration)),r},ensureScalesHaveIDs:function(){var i=this.options,r=i.scales||{},n=i.scale;t.each(r.xAxes,function(n,t){n.id=n.id||"x-axis-"+t});t.each(r.yAxes,function(n,t){n.id=n.id||"y-axis-"+t});n&&(n.id=n.id||"scale")},buildScales:function(){var i=this,r=i.options,f=i.scales={},u=[];r.scales&&(u=u.concat((r.scales.xAxes||[]).map(function(n){return{options:n,dtype:"category"}}),(r.scales.yAxes||[]).map(function(n){return{options:n,dtype:"linear"}})));r.scale&&u.push({options:r.scale,dtype:"radialLinear",isDefault:!0});t.each(u,function(r){var e=r.options,s=t.getValueOrDefault(e.type,r.dtype),o=n.scaleService.getScaleConstructor(s),u;o&&(u=new o({id:e.id,options:e,ctx:i.chart.ctx,chart:i}),f[u.id]=u,r.isDefault&&(i.scale=u))});n.scaleService.addScalesToLayout(this)},updateLayout:function(){n.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var i=this,r=[],f=[],u;if(t.each(i.data.datasets,function(t,u){var e=i.getDatasetMeta(u);e.type||(e.type=t.type||i.config.type);r.push(e.type);e.controller?e.controller.updateIndex(u):(e.controller=new n.controllers[e.type](i,u),f.push(e.controller))},i),r.length>1)for(u=1;u<r.length;u++)if(r[u]!==r[u-1]){i.isCombo=!0;break}return f},resetElements:function(){var n=this;t.each(n.data.datasets,function(t,i){n.getDatasetMeta(i).controller.reset()},n)},update:function(i,r){var u=this,f;n.plugins.notify("beforeUpdate",[u]);u.tooltip._data=u.data;f=u.buildOrUpdateControllers();t.each(u.data.datasets,function(n,t){u.getDatasetMeta(t).controller.buildOrUpdateElements()},u);n.layoutService.update(u,u.chart.width,u.chart.height);n.plugins.notify("afterScaleUpdate",[u]);t.each(f,function(n){n.reset()});u.updateDatasets();n.plugins.notify("afterUpdate",[u]);u.render(i,r)},updateDatasets:function(){var t=this,i,r;if(n.plugins.notify("beforeDatasetsUpdate",[t])){for(i=0,r=t.data.datasets.length;i<r;++i)t.getDatasetMeta(i).controller.update();n.plugins.notify("afterDatasetsUpdate",[t])}},render:function(i,r){var e=this,u,f;return n.plugins.notify("beforeRender",[e]),u=e.options.animation,u&&(typeof i!="undefined"&&i!==0||typeof i=="undefined"&&u.duration!==0)?(f=new n.Animation,f.numSteps=(i||u.duration)/16.66,f.easing=u.easing,f.render=function(n,i){var u=t.easingEffects[i.easing],r=i.currentStep/i.numSteps,f=u(r);n.draw(f,r,i.currentStep)},f.onAnimationProgress=u.onProgress,f.onAnimationComplete=u.onComplete,n.animationService.addAnimation(e,f,i,r)):(e.draw(),u&&u.onComplete&&u.onComplete.call&&u.onComplete.call(e)),e},draw:function(i){var r=this,u=i||1;r.clear();n.plugins.notify("beforeDraw",[r,u]);t.each(r.boxes,function(n){n.draw(r.chartArea)},r);r.scale&&r.scale.draw();n.plugins.notify("beforeDatasetsDraw",[r,u]);t.each(r.data.datasets,function(n,t){r.isDatasetVisible(t)&&r.getDatasetMeta(t).controller.draw(i)},r,!0);n.plugins.notify("afterDatasetsDraw",[r,u]);r.tooltip.transition(u).draw();n.plugins.notify("afterDraw",[r,u])},getElementAtEvent:function(n){var i=this,u=t.getRelativePosition(n,i.chart),r=[];return t.each(i.data.datasets,function(n,f){if(i.isDatasetVisible(f)){var e=i.getDatasetMeta(f);t.each(e.data,function(n){if(n.inRange(u.x,u.y))return r.push(n),r})}}),r.slice(0,1)},getElementsAtEvent:function(n){var i=this,u=t.getRelativePosition(n,i.chart),r=[],f=function(){var n,r,t;if(i.data.datasets)for(n=0;n<i.data.datasets.length;n++)if(r=i.getDatasetMeta(n),i.isDatasetVisible(n))for(t=0;t<r.data.length;t++)if(r.data[t].inRange(u.x,u.y))return r.data[t]}.call(i);return f?(t.each(i.data.datasets,function(n,t){if(i.isDatasetVisible(t)){var e=i.getDatasetMeta(t),u=e.data[f._index];u&&!u._view.skip&&r.push(u)}},i),r):r},getElementsAtXAxis:function(n){var i=this,u=t.getRelativePosition(n,i.chart),r=[],f=function(){var n,r,t;if(i.data.datasets)for(n=0;n<i.data.datasets.length;n++)if(r=i.getDatasetMeta(n),i.isDatasetVisible(n))for(t=0;t<r.data.length;t++)if(r.data[t].inLabelRange(u.x,u.y))return r.data[t]}.call(i);return f?(t.each(i.data.datasets,function(n,u){if(i.isDatasetVisible(u)){var e=i.getDatasetMeta(u),o=t.findIndex(e.data,function(n){return f._model.x===n._model.x});o===-1||e.data[o]._view.skip||r.push(e.data[o])}},i),r):r},getElementsAtEventForMode:function(n,t){var i=this;switch(t){case"single":return i.getElementAtEvent(n);case"label":return i.getElementsAtEvent(n);case"dataset":return i.getDatasetAtEvent(n);case"x-axis":return i.getElementsAtXAxis(n);default:return n}},getDatasetAtEvent:function(n){var t=this.getElementAtEvent(n);return t.length>0&&(t=this.getDatasetMeta(t[0]._datasetIndex).data),t},getDatasetMeta:function(n){var r=this,t=r.data.datasets[n],i;return t._meta||(t._meta={}),i=t._meta[r.id],i||(i=t._meta[r.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,n=0,i=this.data.datasets.length;n<i;++n)this.isDatasetVisible(n)&&t++;return t},isDatasetVisible:function(n){var t=this.getDatasetMeta(n);return typeof t.hidden=="boolean"?!t.hidden:!this.data.datasets[n].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var i=this,r;i.stop();i.clear();t.unbindEvents(i,i.events);t.removeResizeListener(i.chart.canvas.parentNode);r=i.chart.canvas;r.width=i.chart.width;r.height=i.chart.height;i.chart.originalDevicePixelRatio!==undefined&&i.chart.ctx.scale(1/i.chart.originalDevicePixelRatio,1/i.chart.originalDevicePixelRatio);r.style.width=i.chart.originalCanvasStyleWidth;r.style.height=i.chart.originalCanvasStyleHeight;n.plugins.notify("destroy",[i]);delete n.instances[i.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new n.Tooltip({_chart:t.chart,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var n=this;t.bindEvents(n,n.options.events,function(t){n.eventHandler(t)})},updateHoverStyle:function(n,t,i){var e=i?"setHoverStyle":"removeHoverStyle",r,u,f;switch(t){case"single":n=[n[0]];break;case"label":case"dataset":case"x-axis":break;default:return}for(u=0,f=n.length;u<f;++u)r=n[u],r&&this.getDatasetMeta(r._datasetIndex).controller[e](r)},eventHandler:function(n){var i=this,u=i.tooltip,e=i.options||{},r=e.hover,f=e.tooltips;return i.lastActive=i.lastActive||[],i.lastTooltipActive=i.lastTooltipActive||[],n.type==="mouseout"?(i.active=[],i.tooltipActive=[]):(i.active=i.getElementsAtEventForMode(n,r.mode),i.tooltipActive=i.getElementsAtEventForMode(n,f.mode)),r.onHover&&r.onHover.call(i,i.active),i.legend&&i.legend.handleEvent&&i.legend.handleEvent(n),(n.type==="mouseup"||n.type==="click")&&e.onClick&&e.onClick.call(i,n,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,r.mode,!1),i.active.length&&r.mode&&i.updateHoverStyle(i.active,r.mode,!0),(f.enabled||f.custom)&&(u.initialize(),u._active=i.tooltipActive,u.update(!0)),u.pivot(),i.animating||t.arrayEquals(i.active,i.lastActive)&&t.arrayEquals(i.tooltipActive,i.lastTooltipActive)||(i.stop(),(f.enabled||f.custom)&&u.update(!0),i.render(r.animationDuration,!0)),i.lastActive=i.active,i.lastTooltipActive=i.tooltipActive,i}})}},{}],24:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.DatasetController=function(n,t){this.initialize(n,t)};t.extend(n.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(n,t){var i=this;i.chart=n;i.index=t;i.linkScales();i.addElements()},updateIndex:function(n){this.index=n},linkScales:function(){var n=this,t=n.getMeta(),i=n.getDataset();t.xAxisID===null&&(t.xAxisID=i.xAxisID||n.chart.options.scales.xAxes[0].id);t.yAxisID===null&&(t.yAxisID=i.yAxisID||n.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(n){return this.chart.scales[n]},reset:function(){this.update(!0)},createMetaDataset:function(){var n=this,t=n.datasetElementType;return t&&new t({_chart:n.chart.chart,_datasetIndex:n.index})},createMetaData:function(n){var t=this,i=t.dataElementType;return i&&new i({_chart:t.chart.chart,_datasetIndex:t.index,_index:n})},addElements:function(){for(var t=this,i=t.getMeta(),f=t.getDataset().data||[],r=i.data,n=0,u=f.length;n<u;++n)r[n]=r[n]||t.createMetaData(i,n);i.dataset=i.dataset||t.createMetaDataset()},addElementAndReset:function(n){var t=this,i=t.createMetaData(n);t.getMeta().data.splice(n,0,i);t.updateElement(i,n,!0)},buildOrUpdateElements:function(){var u=this.getMeta(),r=u.data,n=this.getDataset().data.length,t=r.length,i;if(n<t)r.splice(n,t-n);else if(n>t)for(i=t;i<n;++i)this.addElementAndReset(i)},update:i,draw:function(n){var i=n||1;t.each(this.getMeta().data,function(n){n.transition(i).draw()})},removeHoverStyle:function(n,i){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,r=n.custom||{},e=t.getValueAtIndexOrDefault,o=n._model;o.backgroundColor=r.backgroundColor?r.backgroundColor:e(u.backgroundColor,f,i.backgroundColor);o.borderColor=r.borderColor?r.borderColor:e(u.borderColor,f,i.borderColor);o.borderWidth=r.borderWidth?r.borderWidth:e(u.borderWidth,f,i.borderWidth)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},e=t.getValueAtIndexOrDefault,o=t.getHoverColor,r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e(u.hoverBackgroundColor,f,o(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:e(u.hoverBorderColor,f,o(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e(u.hoverBorderWidth,f,r.borderWidth)}});n.DatasetController.extend=t.inherits}},{}],25:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.elements={};n.Element=function(n){t.extend(this,n);this.initialize.apply(this,arguments)};t.extend(n.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var n=this;return n._view||(n._view=t.clone(n._model)),n._start=t.clone(n._view),n},transition:function(n){var i=this;return(i._view||(i._view=t.clone(i._model)),n===1)?(i._view=i._model,i._start=null,i):(i._start||i.pivot(),t.each(i._model,function(r,u){var e,f;if(u[0]!=="_")if(i._view.hasOwnProperty(u)){if(r!==i._view[u])if(typeof r=="string")try{e=t.color(i._model[u]).mix(t.color(i._start[u]),n);i._view[u]=e.rgbString()}catch(o){i._view[u]=r}else typeof r=="number"?(f=i._start[u]!==undefined&&isNaN(i._start[u])===!1?i._start[u]:0,i._view[u]=(i._model[u]-f)*n+f):i._view[u]=r}else i._view[u]=typeof r!="number"||isNaN(i._view[u])?r:r*n},i),i)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return t.isNumber(this._model.x)&&t.isNumber(this._model.y)}});n.Element.extend=t.inherits}},{}],26:[function(n,t){"use strict";var i=n(3);t.exports=function(n){function u(n,t,i){var r;return typeof n=="string"?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*t.parentNode[i])):r=n,r}function f(n){return n!==undefined&&n!==null&&n!=="none"}function e(n,t,i){var r=document.defaultView,e=n.parentNode,o=r.getComputedStyle(n)[t],s=r.getComputedStyle(e)[t],h=f(o),c=f(s),l=Number.POSITIVE_INFINITY;return h||c?Math.min(h?u(o,n,i):l,c?u(s,e,i):l):"none"}var t=n.helpers={},r;t.each=function(n,i,r,u){var f,e,o;if(t.isArray(n))if(e=n.length,u)for(f=e-1;f>=0;f--)i.call(r,n[f],f);else for(f=0;f<e;f++)i.call(r,n[f],f);else if(typeof n=="object")for(o=Object.keys(n),e=o.length,f=0;f<e;f++)i.call(r,n[o[f]],o[f])};t.clone=function(n){var i={};return t.each(n,function(n,r){i[r]=t.isArray(n)?n.slice(0):typeof n=="object"&&n!==null?t.clone(n):n}),i};t.extend=function(n){for(var u=function(t,i){n[i]=t},i=1,r=arguments.length;i<r;i++)t.each(arguments[i],u);return n};t.configMerge=function(i){var r=t.clone(i);return t.each(Array.prototype.slice.call(arguments,1),function(i){t.each(i,function(i,u){if(u==="scales")r[u]=t.scaleMerge(r.hasOwnProperty(u)?r[u]:{},i);else if(u==="scale")r[u]=t.configMerge(r.hasOwnProperty(u)?r[u]:{},n.scaleService.getScaleDefaults(i.type),i);else if(r.hasOwnProperty(u)&&t.isArray(r[u])&&t.isArray(i)){var f=r[u];t.each(i,function(n,i){i<f.length?f[i]=typeof f[i]=="object"&&f[i]!==null&&typeof n=="object"&&n!==null?t.configMerge(f[i],n):n:f.push(n)})}else r[u]=r.hasOwnProperty(u)&&typeof r[u]=="object"&&r[u]!==null&&typeof i=="object"?t.configMerge(r[u],i):i})}),r};t.scaleMerge=function(i,r){var u=t.clone(i);return t.each(r,function(i,r){r==="xAxes"||r==="yAxes"?u.hasOwnProperty(r)?t.each(i,function(i,f){var o=t.getValueOrDefault(i.type,r==="xAxes"?"category":"linear"),e=n.scaleService.getScaleDefaults(o);f>=u[r].length||!u[r][f].type?u[r].push(t.configMerge(e,i)):u[r][f]=i.type&&i.type!==u[r][f].type?t.configMerge(u[r][f],e,i):t.configMerge(u[r][f],i)}):(u[r]=[],t.each(i,function(i){var f=t.getValueOrDefault(i.type,r==="xAxes"?"category":"linear");u[r].push(t.configMerge(n.scaleService.getScaleDefaults(f),i))})):u[r]=u.hasOwnProperty(r)&&typeof u[r]=="object"&&u[r]!==null&&typeof i=="object"?t.configMerge(u[r],i):i}),u};t.getValueAtIndexOrDefault=function(n,i,r){return n===undefined||n===null?r:t.isArray(n)?i<n.length?n[i]:r:n};t.getValueOrDefault=function(n,t){return n===undefined?t:n};t.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;i<r;++i)if(n[i]===t)return i;return-1};t.where=function(n,i){if(t.isArray(n)&&Array.prototype.filter)return n.filter(i);var r=[];return t.each(n,function(n){i(n)&&r.push(n)}),r};t.findIndex=Array.prototype.findIndex?function(n,t,i){return n.findIndex(t,i)}:function(n,t,i){i=i===undefined?n:i;for(var r=0,u=n.length;r<u;++r)if(t.call(i,n[r],r,n))return r;return-1};t.findNextWhere=function(n,t,i){var r,u;for((i===undefined||i===null)&&(i=-1),r=i+1;r<n.length;r++)if(u=n[r],t(u))return u};t.findPreviousWhere=function(n,t,i){var r,u;for((i===undefined||i===null)&&(i=n.length),r=i-1;r>=0;r--)if(u=n[r],t(u))return u};t.inherits=function(n){var r=this,i=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return r.apply(this,arguments)},u=function(){this.constructor=i};return u.prototype=r.prototype,i.prototype=new u,i.extend=t.inherits,n&&t.extend(i.prototype,n),i.__super__=r.prototype,i};t.noop=function(){};t.uid=function(){var n=0;return function(){return n++}}();t.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};t.almostEquals=function(n,t,i){return Math.abs(n-t)<i};t.max=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.max(n,t)},Number.NEGATIVE_INFINITY)};t.min=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.min(n,t)},Number.POSITIVE_INFINITY)};t.sign=Math.sign?function(n){return Math.sign(n)}:function(n){return(n=+n,n===0||isNaN(n))?n:n>0?1:-1};t.log10=Math.log10?function(n){return Math.log10(n)}:function(n){return Math.log(n)/Math.LN10};t.toRadians=function(n){return n*(Math.PI/180)};t.toDegrees=function(n){return n*(180/Math.PI)};t.getAngleFromPoint=function(n,t){var i=t.x-n.x,r=t.y-n.y,f=Math.sqrt(i*i+r*r),u=Math.atan2(r,i);return u<-.5*Math.PI&&(u+=2*Math.PI),{angle:u,distance:f}};t.aliasPixel=function(n){return n%2==0?0:.5};t.splineCurve=function(n,t,i,r){var f=n.skip?t:n,u=t,e=i.skip?t:i,h=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2)),c=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),o=h/(h+c),s=c/(h+c),l,a;return o=isNaN(o)?0:o,s=isNaN(s)?0:s,l=r*o,a=r*s,{previous:{x:u.x-l*(e.x-f.x),y:u.y-l*(e.y-f.y)},next:{x:u.x+a*(e.x-f.x),y:u.y+a*(e.y-f.y)}}};t.EPSILON=Number.EPSILON||1e-14;t.splineCurveMonotone=function(n){for(var e=(n||[]).map(function(n){return{model:n._model,deltaK:0,mK:0}}),s=e.length,f,i,u,h,c,l,a,o,r=0;r<s;++r)(i=e[r],i.model.skip)||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,u&&!u.model.skip&&(i.deltaK=(u.model.y-i.model.y)/(u.model.x-i.model.x)),i.mK=!f||f.model.skip?i.deltaK:!u||u.model.skip?f.deltaK:this.sign(f.deltaK)!==this.sign(i.deltaK)?0:(f.deltaK+i.deltaK)/2);for(r=0;r<s-1;++r)if(i=e[r],u=e[r+1],!i.model.skip&&!u.model.skip){if(t.almostEquals(i.deltaK,0,this.EPSILON)){i.mK=u.mK=0;continue}(h=i.mK/i.deltaK,c=u.mK/i.deltaK,a=Math.pow(h,2)+Math.pow(c,2),a<=9)||(l=3/Math.sqrt(a),i.mK=h*l*i.deltaK,u.mK=c*l*i.deltaK)}for(r=0;r<s;++r)(i=e[r],i.model.skip)||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,f&&!f.model.skip&&(o=(i.model.x-f.model.x)/3,i.model.controlPointPreviousX=i.model.x-o,i.model.controlPointPreviousY=i.model.y-o*i.mK),u&&!u.model.skip&&(o=(u.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+o,i.model.controlPointNextY=i.model.y+o*i.mK))};t.nextItem=function(n,t,i){return i?t>=n.length-1?n[0]:n[t+1]:t>=n.length-1?n[n.length-1]:n[t+1]};t.previousItem=function(n,t,i){return i?t<=0?n[n.length-1]:n[t-1]:t<=0?n[0]:n[t-1]};t.niceNum=function(n,i){var u=Math.floor(t.log10(n)),r=n/Math.pow(10,u),f;return f=i?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,f*Math.pow(10,u)};r=t.easingEffects={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return-1*n*(n-2)},easeInOutQuad:function(n){return(n/=1/2)<1?1/2*n*n:-1/2*(--n*(n-2)-1)},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1*((n=n/1-1)*n*n+1)},easeInOutCubic:function(n){return(n/=1/2)<1?1/2*n*n*n:1/2*((n-=2)*n*n+2)},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return-1*((n=n/1-1)*n*n*n-1)},easeInOutQuart:function(n){return(n/=1/2)<1?1/2*n*n*n*n:-1/2*((n-=2)*n*n*n-2)},easeInQuint:function(n){return 1*(n/=1)*n*n*n*n},easeOutQuint:function(n){return 1*((n=n/1-1)*n*n*n*n+1)},easeInOutQuint:function(n){return(n/=1/2)<1?1/2*n*n*n*n*n:1/2*((n-=2)*n*n*n*n+2)},easeInSine:function(n){return-1*Math.cos(n/1*(Math.PI/2))+1},easeOutSine:function(n){return 1*Math.sin(n/1*(Math.PI/2))},easeInOutSine:function(n){return-1/2*(Math.cos(Math.PI*n/1)-1)},easeInExpo:function(n){return n===0?1:1*Math.pow(2,10*(n/1-1))},easeOutExpo:function(n){return n===1?1:1*(-Math.pow(2,-10*n)+1)},easeInOutExpo:function(n){return n===0?0:n===1?1:(n/=1/2)<1?1/2*Math.pow(2,10*(n-1)):1/2*(-Math.pow(2,-10*--n)+2)},easeInCirc:function(n){return n>=1?n:-1*(Math.sqrt(1-(n/=1)*n)-1)},easeOutCirc:function(n){return 1*Math.sqrt(1-(n=n/1-1)*n)},easeInOutCirc:function(n){return(n/=1/2)<1?-1/2*(Math.sqrt(1-n*n)-1):1/2*(Math.sqrt(1-(n-=2)*n)+1)},easeInElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1)==1?1:(t||(t=1*.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*(n-=1))*Math.sin((n*1-r)*2*Math.PI/t)))},easeOutElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1)==1?1:(t||(t=1*.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*n)*Math.sin((n*1-r)*2*Math.PI/t)+1)},easeInOutElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1/2)==2?1:(t||(t=1*.3*1.5),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),n<1)?-.5*i*Math.pow(2,10*(n-=1))*Math.sin((n*1-r)*2*Math.PI/t):i*Math.pow(2,-10*(n-=1))*Math.sin((n*1-r)*2*Math.PI/t)*.5+1},easeInBack:function(n){var t=1.70158;return 1*(n/=1)*n*((t+1)*n-t)},easeOutBack:function(n){var t=1.70158;return 1*((n=n/1-1)*n*((t+1)*n+t)+1)},easeInOutBack:function(n){var t=1.70158;return(n/=1/2)<1?1/2*n*n*(((t*=1.525)+1)*n-t):1/2*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:function(n){return 1-r.easeOutBounce(1-n)},easeOutBounce:function(n){return(n/=1)<1/2.75?1*7.5625*n*n:n<2/2.75?1*(7.5625*(n-=1.5/2.75)*n+.75):n<2.5/2.75?1*(7.5625*(n-=2.25/2.75)*n+.9375):1*(7.5625*(n-=2.625/2.75)*n+.984375)},easeInOutBounce:function(n){return n<1/2?r.easeInBounce(n*2)*.5:r.easeOutBounce(n*2-1)*.5+1*.5}};t.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)}}();t.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(n){return window.clearTimeout(n,1e3/60)}}();t.getRelativePosition=function(n,i){var f,e,s=n.originalEvent||n,r=n.currentTarget||n.srcElement,u=r.getBoundingClientRect(),o=s.touches;o&&o.length>0?(f=o[0].clientX,e=o[0].clientY):(f=s.clientX,e=s.clientY);var h=parseFloat(t.getStyle(r,"padding-left")),c=parseFloat(t.getStyle(r,"padding-top")),l=parseFloat(t.getStyle(r,"padding-right")),a=parseFloat(t.getStyle(r,"padding-bottom")),v=u.right-u.left-h-l,y=u.bottom-u.top-c-a;return f=Math.round((f-u.left-h)/v*r.width/i.currentDevicePixelRatio),e=Math.round((e-u.top-c)/y*r.height/i.currentDevicePixelRatio),{x:f,y:e}};t.addEvent=function(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i};t.removeEvent=function(n,i,r){n.removeEventListener?n.removeEventListener(i,r,!1):n.detachEvent?n.detachEvent("on"+i,r):n["on"+i]=t.noop};t.bindEvents=function(n,i,r){var u=n.events=n.events||{};t.each(i,function(i){u[i]=function(){r.apply(n,arguments)};t.addEvent(n.chart.canvas,i,u[i])})};t.unbindEvents=function(n,i){var r=n.chart.canvas;t.each(i,function(n,i){t.removeEvent(r,i,n)})};t.getConstraintWidth=function(n){return e(n,"max-width","clientWidth")};t.getConstraintHeight=function(n){return e(n,"max-height","clientHeight")};t.getMaximumWidth=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-left"),10),e=parseInt(t.getStyle(i,"padding-right"),10),r=i.clientWidth-f-e,u=t.getConstraintWidth(n);return isNaN(u)?r:Math.min(r,u)};t.getMaximumHeight=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-top"),10),e=parseInt(t.getStyle(i,"padding-bottom"),10),r=i.clientHeight-f-e,u=t.getConstraintHeight(n);return isNaN(u)?r:Math.min(r,u)};t.getStyle=function(n,t){return n.currentStyle?n.currentStyle[t]:document.defaultView.getComputedStyle(n,null).getPropertyValue(t)};t.retinaScale=function(n){var f=n.ctx,t=n.canvas,r=t.width,u=t.height,i=n.currentDevicePixelRatio=window.devicePixelRatio||1;i!==1&&(t.height=u*i,t.width=r*i,f.scale(i,i),n.originalDevicePixelRatio=n.originalDevicePixelRatio||i);t.style.width=r+"px";t.style.height=u+"px"};t.clear=function(n){n.ctx.clearRect(0,0,n.width,n.height)};t.fontString=function(n,t,i){return t+" "+n+"px "+i};t.longestText=function(n,i,r,u){var o,f,e,s,h;if(u=u||{},o=u.data=u.data||{},f=u.garbageCollect=u.garbageCollect||[],u.font!==i&&(o=u.data={},f=u.garbageCollect=[],u.font=i),n.font=i,e=0,t.each(r,function(i){i!==undefined&&i!==null&&t.isArray(i)!==!0?e=t.measureText(n,o,f,e,i):t.isArray(i)&&t.each(i,function(i){i===undefined||i===null||t.isArray(i)||(e=t.measureText(n,o,f,e,i))})}),s=f.length/2,s>r.length){for(h=0;h<s;h++)delete o[f[h]];f.splice(0,s)}return e};t.measureText=function(n,t,i,r,u){var f=t[u];return f||(f=t[u]=n.measureText(u).width,i.push(u)),f>r&&(r=f),r};t.numberOfLabelLines=function(n){var i=1;return t.each(n,function(n){t.isArray(n)&&n.length>i&&(i=n.length)}),i};t.drawRoundedRectangle=function(n,t,i,r,u,f){n.beginPath();n.moveTo(t+f,i);n.lineTo(t+r-f,i);n.quadraticCurveTo(t+r,i,t+r,i+f);n.lineTo(t+r,i+u-f);n.quadraticCurveTo(t+r,i+u,t+r-f,i+u);n.lineTo(t+f,i+u);n.quadraticCurveTo(t,i+u,t,i+u-f);n.lineTo(t,i+f);n.quadraticCurveTo(t,i,t+f,i);n.closePath()};t.color=function(t){return i?t instanceof CanvasGradient?i(n.defaults.global.defaultColor):i(t):(console.error("Color.js not found!"),t)};t.addResizeListener=function(n,t){var r=document.createElement("iframe"),u="chartjs-hidden-iframe",i;r.classlist?r.classlist.add(u):r.setAttribute("class",u);r.tabIndex=-1;i=r.style;i.width="100%";i.display="block";i.border=0;i.height=0;i.margin=0;i.position="absolute";i.left=0;i.right=0;i.top=0;i.bottom=0;n.insertBefore(r,n.firstChild);(r.contentWindow||r).onresize=function(){if(t)return t()}};t.removeResizeListener=function(n){var t=n.querySelector(".chartjs-hidden-iframe");t&&t.parentNode.removeChild(t)};t.isArray=Array.isArray?function(n){return Array.isArray(n)}:function(n){return Object.prototype.toString.call(n)==="[object Array]"};t.arrayEquals=function(n,i){var r,e,u,f;if(!n||!i||n.length!==i.length)return!1;for(r=0,e=n.length;r<e;++r)if(u=n[r],f=i[r],u instanceof Array&&f instanceof Array){if(!t.arrayEquals(u,f))return!1}else if(u!==f)return!1;return!0};t.callCallback=function(n,t,i){n&&typeof n.call=="function"&&n.apply(i,t)};t.getHoverColor=function(n){return n instanceof CanvasPattern?n:t.color(n).saturate(.5).darken(.1).rgbString()}}},{"3":3}],27:[function(n,t){"use strict";t.exports=function(){var n=function(t,i){var r=this,u=n.helpers;return r.config=i||{data:{datasets:[]}},t.length&&t[0].getContext&&(t=t[0]),t.getContext&&(t=t.getContext("2d")),r.ctx=t,r.canvas=t.canvas,t.canvas.style.display=t.canvas.style.display||"block",r.width=t.canvas.width||parseInt(u.getStyle(t.canvas,"width"),10)||u.getMaximumWidth(t.canvas),r.height=t.canvas.height||parseInt(u.getStyle(t.canvas,"height"),10)||u.getMaximumHeight(t.canvas),r.aspectRatio=r.width/r.height,(isNaN(r.aspectRatio)||isFinite(r.aspectRatio)===!1)&&(r.aspectRatio=i.aspectRatio!==undefined?i.aspectRatio:2),r.originalCanvasStyleWidth=t.canvas.style.width,r.originalCanvasStyleHeight=t.canvas.style.height,u.retinaScale(r),r.controller=new n.Controller(r),u.addResizeListener(t.canvas.parentNode,function(){r.controller&&r.controller.config.options.responsive&&r.controller.resize()}),r.controller?r.controller:r};return n.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(n){var t=[],i;for(t.push('<ul class="'+n.id+'-legend">'),i=0;i<n.data.datasets.length;i++)t.push('<li><span style="background-color:'+n.data.datasets[i].backgroundColor+'"><\/span>'),n.data.datasets[i].label&&t.push(n.data.datasets[i].label),t.push("<\/li>");return t.push("<\/ul>"),t.join("")}}},n.Chart=n,n}},{}],28:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.layoutService={defaults:{},addBox:function(n,t){n.boxes||(n.boxes=[]);n.boxes.push(t)},removeBox:function(n,t){n.boxes&&n.boxes.splice(n.boxes.indexOf(t),1)},update:function(n,i,r){function ht(n){var t,i=n.isHorizontal();i?(t=n.update(n.options.fullWidth?g:u,st),f-=t.height):(t=n.update(ot,rt),u-=t.width);tt.push({horizontal:i,minSize:t,box:n})}function ut(n){var i=t.findNextWhere(tt,function(t){return t.box===n}),r;i&&(n.isHorizontal()?(r={left:e,right:y,top:0,bottom:0},n.update(n.options.fullWidth?g:u,nt/2,r)):n.update(i.minSize.width,f))}function ct(n){var i=t.findNextWhere(tt,function(t){return t.box===n}),r={left:0,right:0,top:o,bottom:p};i&&n.update(i.minSize.width,f,r)}function it(n){n.isHorizontal()?(n.left=n.options.fullWidth?s:e,n.right=n.options.fullWidth?i-s:e+u,n.top=d,n.bottom=d+n.height,d=n.bottom):(n.left=k,n.right=k+n.width,n.top=o,n.bottom=o+f,k=n.right)}var w,b,k,d;if(n){var s=0,v=0,h=t.where(n.boxes,function(n){return n.options.position==="left"}),c=t.where(n.boxes,function(n){return n.options.position==="right"}),l=t.where(n.boxes,function(n){return n.options.position==="top"}),a=t.where(n.boxes,function(n){return n.options.position==="bottom"}),ft=t.where(n.boxes,function(n){return n.options.position==="chartArea"});l.sort(function(n,t){return(t.options.fullWidth?1:0)-(n.options.fullWidth?1:0)});a.sort(function(n,t){return(n.options.fullWidth?1:0)-(t.options.fullWidth?1:0)});var g=i-2*s,nt=r-2*v,et=g/2,rt=nt/2,ot=(i-et)/(h.length+c.length),st=(r-rt)/(l.length+a.length),u=g,f=nt,tt=[];t.each(h.concat(c,l,a),ht);var e=s,y=s,o=v,p=v;t.each(h.concat(c),ut);t.each(h,function(n){e+=n.width});t.each(c,function(n){y+=n.width});t.each(l.concat(a),ut);t.each(l,function(n){o+=n.height});t.each(a,function(n){p+=n.height});t.each(h.concat(c),ct);e=s;y=s;o=v;p=v;t.each(h,function(n){e+=n.width});t.each(c,function(n){y+=n.width});t.each(l,function(n){o+=n.height});t.each(a,function(n){p+=n.height});w=r-o-p;b=i-e-y;(b!==u||w!==f)&&(t.each(h,function(n){n.height=w}),t.each(c,function(n){n.height=w}),t.each(l,function(n){n.options.fullWidth||(n.width=b)}),t.each(a,function(n){n.options.fullWidth||(n.width=b)}),f=w,u=b);k=s;d=v;t.each(h.concat(l),it);k+=u;d+=f;t.each(c,it);t.each(a,it);n.chartArea={left:e,top:o,right:e+u,bottom:o+f};t.each(ft,function(t){t.left=n.chartArea.left;t.top=n.chartArea.top;t.right=n.chartArea.right;t.bottom=n.chartArea.bottom;t.update(u,f)})}}}}},{}],29:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(n,t){var r=t.datasetIndex,i=this.chart,u=i.getDatasetMeta(r);u.hidden=u.hidden===null?!i.data.datasets[r].hidden:null;i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data;return t.isArray(i.datasets)?i.datasets.map(function(i,r){return{text:i.label,fillStyle:t.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!n.isDatasetVisible(r),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:r}},this):[]}}};n.Legend=n.Element.extend({initialize:function(n){t.extend(this,n);this.legendHitBoxes=[];this.doughnutMode=!1},beforeUpdate:i,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var n=this;n.legendItems=n.options.labels.generateLabels.call(n,n.chart);n.options.reverse&&n.legendItems.reverse()},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,p=i.options,r=p.labels,h=p.display,s=i.ctx,c=n.defaults.global,l=t.getValueOrDefault,u=l(r.fontSize,c.defaultFontSize),g=l(r.fontStyle,c.defaultFontStyle),nt=l(r.fontFamily,c.defaultFontFamily),tt=t.fontString(u,g,nt),w=i.legendHitBoxes=[],f=i.minSize,b=i.isHorizontal(),e,a;if(b?(f.width=i.maxWidth,f.height=h?10:0):(f.width=h?10:0,f.height=i.maxHeight),h)if(s.font=tt,b)e=i.lineWidths=[0],a=i.legendItems.length?u+r.padding:0,s.textAlign="left",s.textBaseline="top",t.each(i.legendItems,function(n,t){var o=r.usePointStyle?u*Math.sqrt(2):r.boxWidth,f=o+u/2+s.measureText(n.text).width;e[e.length-1]+f+r.padding>=i.width&&(a+=u+r.padding,e[e.length]=i.left);w[t]={left:0,top:0,width:f,height:u};e[e.length-1]+=f+r.padding}),f.height+=a;else{var it=r.padding,k=i.columnWidths=[],v=r.padding,o=0,y=0,d=u+it;t.each(i.legendItems,function(n,t){var e=r.usePointStyle?2*r.boxWidth:r.boxWidth,i=e+u/2+s.measureText(n.text).width;y+d>f.height&&(v+=o+r.padding,k.push(o),o=0,y=0);o=Math.max(o,i);y+=d;w[t]={left:0,top:0,width:i,height:u}});v+=o;k.push(o);f.width+=v}i.width=f.width;i.height=f.height},afterFit:i,isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},draw:function(){var r=this,l=r.options,e=l.labels,h=n.defaults.global,c=h.elements.line,v=r.width,p=r.lineWidths,a;if(l.display){var i=r.ctx,u,o=t.getValueOrDefault,w=o(e.fontColor,h.defaultFontColor),f=o(e.fontSize,h.defaultFontSize),k=o(e.fontStyle,h.defaultFontStyle),d=o(e.fontFamily,h.defaultFontFamily),g=t.fontString(f,k,d);i.textAlign="left";i.textBaseline="top";i.lineWidth=.5;i.strokeStyle=w;i.fillStyle=w;i.font=g;var s=e.boxWidth,b=r.legendHitBoxes,nt=function(t,r,u){var e;if(!isNaN(s)&&!(s<=0)){if(i.save(),i.fillStyle=o(u.fillStyle,h.defaultColor),i.lineCap=o(u.lineCap,c.borderCapStyle),i.lineDashOffset=o(u.lineDashOffset,c.borderDashOffset),i.lineJoin=o(u.lineJoin,c.borderJoinStyle),i.lineWidth=o(u.lineWidth,c.borderWidth),i.strokeStyle=o(u.strokeStyle,h.defaultColor),e=o(u.lineWidth,c.borderWidth)===0,i.setLineDash&&i.setLineDash(o(u.lineDash,c.borderDash)),l.labels&&l.labels.usePointStyle){var a=f*Math.SQRT2/2,v=a/Math.SQRT2,y=t+v,p=r+v;n.canvasHelpers.drawPoint(i,u.pointStyle,a,y,p)}else e||i.strokeRect(t,r,s,f),i.fillRect(t,r,s,f);i.restore()}},tt=function(n,t,r,u){i.fillText(r.text,s+f/2+n,t);r.hidden&&(i.beginPath(),i.lineWidth=2,i.moveTo(s+f/2+n,t+f/2),i.lineTo(s+f/2+n+u,t+f/2),i.stroke())},y=r.isHorizontal();u=y?{x:r.left+(v-p[0])/2,y:r.top+e.padding,line:0}:{x:r.left+e.padding,y:r.top+e.padding,line:0};a=f+e.padding;t.each(r.legendItems,function(n,t){var c=i.measureText(n.text).width,l=e.usePointStyle?f+f/2+c:s+f/2+c,o=u.x,h=u.y;y?o+l>=v&&(h=u.y+=a,u.line++,o=u.x=r.left+(v-p[u.line])/2):h+a>r.bottom&&(o=u.x=o+r.columnWidths[u.line]+e.padding,h=u.y=r.top,u.line++);nt(o,h,n);b[t].left=o;b[t].top=h;tt(o,h,n,c);y?u.x+=l+e.padding:u.y+=a})}},handleEvent:function(n){var i=this,f=i.options,e=n.type==="mouseup"?"click":n.type,h,u,r;if(e==="mousemove"){if(!f.onHover)return}else if(e==="click"){if(!f.onClick)return}else return;var c=t.getRelativePosition(n,i.chart.chart),o=c.x,s=c.y;if(o>=i.left&&o<=i.right&&s>=i.top&&s<=i.bottom)for(h=i.legendHitBoxes,u=0;u<h.length;++u)if(r=h[u],o>=r.left&&o<=r.left+r.width&&s>=r.top&&s<=r.top+r.height)if(e==="click"){f.onClick.call(i,n,i.legendItems[u]);break}else if(e==="mousemove"){f.onHover.call(i,n,i.legendItems[u]);break}}});n.plugins.register({beforeInit:function(t){var r=t.options,i=r.legend;i&&(t.legend=new n.Legend({ctx:t.chart.ctx,options:i,chart:t}),n.layoutService.addBox(t,t.legend))}})}},{}],30:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers.noop;n.plugins={_plugins:[],register:function(n){var t=this._plugins;[].concat(n).forEach(function(n){t.indexOf(n)===-1&&t.push(n)})},unregister:function(n){var t=this._plugins;[].concat(n).forEach(function(n){var i=t.indexOf(n);i!==-1&&t.splice(i,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(n,t){for(var u=this._plugins,f=u.length,r,i=0;i<f;++i)if(r=u[i],typeof r[n]=="function"&&r[n].apply(r,t||[])===!1)return!1;return!0}};n.PluginBase=n.Element.extend({beforeInit:t,afterInit:t,beforeUpdate:t,afterUpdate:t,beforeDraw:t,afterDraw:t,destroy:t});n.pluginService=n.plugins}},{}],31:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.scale={display:!0,position:"left",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)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(n){return t.isArray(n)?n:""+n}}};n.Scale=n.Element.extend({beforeUpdate:function(){t.callCallback(this.options.beforeUpdate,[this])},update:function(n,i,r){var u=this;return u.beforeUpdate(),u.maxWidth=n,u.maxHeight=i,u.margins=t.extend({left:0,right:0,top:0,bottom:0},r),u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),u.buildTicks(),u.afterBuildTicks(),u.beforeTickToLabelConversion(),u.convertTicksToLabels(),u.afterTickToLabelConversion(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){t.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){t.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0},afterSetDimensions:function(){t.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){t.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:t.noop,afterDataLimits:function(){t.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){t.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:t.noop,afterBuildTicks:function(){t.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){t.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var n=this;n.ticks=n.ticks.map(function(t,i,r){return n.options.ticks.userCallback?n.options.ticks.userCallback(t,i,r):n.options.ticks.callback(t,i,r)},n)},afterTickToLabelConversion:function(){t.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){t.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,u=i.ctx,e=n.defaults.global,r=i.options.ticks,f=t.getValueOrDefault(r.fontSize,e.defaultFontSize),p=t.getValueOrDefault(r.fontStyle,e.defaultFontStyle),w=t.getValueOrDefault(r.fontFamily,e.defaultFontFamily),l=t.fontString(f,p,w),o,a,s;if(u.font=l,o=u.measureText(i.ticks[0]).width,a=u.measureText(i.ticks[i.ticks.length-1]).width,i.labelRotation=r.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=a/2+3;i.paddingLeft=o/2+3;i.longestTextCache||(i.longestTextCache={});for(var h=t.longestText(u,l,i.ticks,i.longestTextCache),v=h,c,y,b=i.getPixelForTick(1)-i.getPixelForTick(0)-6;v>b&&i.labelRotation<r.maxRotation;){if(c=Math.cos(t.toRadians(i.labelRotation)),y=Math.sin(t.toRadians(i.labelRotation)),s=c*o,s+f/2>i.yLabelWidth&&(i.paddingLeft=s+f/2),i.paddingRight=f/2,y*h>i.maxHeight){i.labelRotation--;break}i.labelRotation++;v=c*h}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){t.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){t.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,r=i.minSize={width:0,height:0},f=i.options,s=n.defaults.global,e=f.ticks,l=f.scaleLabel,a=f.gridLines,h=f.display,c=i.isHorizontal(),u=t.getValueOrDefault(e.fontSize,s.defaultFontSize),nt=t.getValueOrDefault(e.fontStyle,s.defaultFontStyle),tt=t.getValueOrDefault(e.fontFamily,s.defaultFontFamily),v=t.fontString(u,nt,tt),y=t.getValueOrDefault(l.fontSize,s.defaultFontSize),p=f.gridLines.tickMarkLength,b,d,g;if(r.width=c?i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:h&&a.drawTicks?p:0,r.height=c?h&&a.drawTicks?p:0:i.maxHeight,l.display&&h&&(c?r.height+=y*1.5:r.width+=y*1.5),e.display&&h){i.longestTextCache||(i.longestTextCache={});var o=t.longestText(i.ctx,v,i.ticks,i.longestTextCache),w=t.numberOfLabelLines(i.ticks),it=u*.5;if(c){i.longestLabelWidth=o;b=Math.sin(t.toRadians(i.labelRotation))*i.longestLabelWidth+u*w+it*w;r.height=Math.min(i.maxHeight,r.height+b);i.ctx.font=v;var k=i.ctx.measureText(i.ticks[0]).width,rt=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,ut=Math.cos(t.toRadians(i.labelRotation)),ft=Math.sin(t.toRadians(i.labelRotation));i.paddingLeft=i.labelRotation!==0?ut*k+3:k/2+3;i.paddingRight=i.labelRotation!==0?ft*(u/2)+3:rt/2+3}else d=i.maxWidth-r.width,g=e.mirror,g?o=0:o+=i.options.ticks.padding,o<d?r.width+=o:r.width=i.maxWidth,i.paddingTop=u/2,i.paddingBottom=u/2}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0));i.width=r.width;i.height=r.height},afterFit:function(){t.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(n){return n===null||typeof n=="undefined"?NaN:typeof n=="number"&&isNaN(n)?NaN:typeof n=="object"?n instanceof Date||n.isValid?n:this.getRightValue(this.isHorizontal()?n.x:n.y):n},getLabelForIndex:t.noop,getPixelForValue:t.noop,getValueForPixel:t.noop,getPixelForTick:function(n,t){var i=this,f,e;if(i.isHorizontal()){var o=i.width-(i.paddingLeft+i.paddingRight),r=o/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),u=r*n+i.paddingLeft;return t&&(u+=r/2),f=i.left+Math.round(u),f+(i.isFullWidth()?i.margins.left:0)}return e=i.height-(i.paddingTop+i.paddingBottom),i.top+n*(e/(i.ticks.length-1))},getPixelForDecimal:function(n){var t=this;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i*n+t.paddingLeft,u=t.left+Math.round(r);return u+(t.isFullWidth()?t.margins.left:0)}return t.top+n*t.height},getBasePixel:function(){var n=this,t=n.min,i=n.max;return n.getPixelForValue(n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0)},draw:function(i){var r=this,e=r.options,d,g,nt,tt,it;if(e.display){var u=r.ctx,h=n.defaults.global,f=e.ticks,o=e.gridLines,c=e.scaleLabel,v=r.labelRotation!==0,s,st=f.autoSkip,y=r.isHorizontal(),p;f.maxTicksLimit&&(p=f.maxTicksLimit);var ht=t.getValueOrDefault(f.fontColor,h.defaultFontColor),b=t.getValueOrDefault(f.fontSize,h.defaultFontSize),ct=t.getValueOrDefault(f.fontStyle,h.defaultFontStyle),lt=t.getValueOrDefault(f.fontFamily,h.defaultFontFamily),at=t.fontString(b,ct,lt),l=o.tickMarkLength,vt=t.getValueOrDefault(o.borderDash,h.borderDash),yt=t.getValueOrDefault(o.borderDashOffset,h.borderDashOffset),pt=t.getValueOrDefault(c.fontColor,h.defaultFontColor),a=t.getValueOrDefault(c.fontSize,h.defaultFontSize),wt=t.getValueOrDefault(c.fontStyle,h.defaultFontStyle),bt=t.getValueOrDefault(c.fontFamily,h.defaultFontFamily),kt=t.fontString(a,wt,bt),ot=t.toRadians(r.labelRotation),dt=Math.cos(ot),k=r.longestLabelWidth*dt;if(u.fillStyle=ht,d=[],y){if(s=!1,v&&(k/=2),(k+f.autoSkipPadding)*r.ticks.length>r.width-(r.paddingLeft+r.paddingRight)&&(s=1+Math.floor((k+f.autoSkipPadding)*r.ticks.length/(r.width-(r.paddingLeft+r.paddingRight)))),p&&r.ticks.length>p)while(!s||r.ticks.length/(s||1)>p)s||(s=1),s+=1;st||(s=!1)}var gt=e.position==="right"?r.left:r.right-l,ni=e.position==="right"?r.left+l:r.right,ti=e.position==="bottom"?r.top:r.bottom-l,ii=e.position==="bottom"?r.top+l:r.bottom;if(t.each(r.ticks,function(n,u){var st,ht,a,p,w,b,k,g,nt,tt,it,rt,c,ut,h,ft,ct,et;n!==undefined&&n!==null&&(st=r.ticks.length===u+1,ht=s>1&&u%s>0||u%s==0&&u+s>=r.ticks.length,(!ht||st)&&n!==undefined&&n!==null)&&(u===(typeof r.zeroLineIndex!="undefined"?r.zeroLineIndex:0)?(a=o.zeroLineWidth,p=o.zeroLineColor):(a=t.getValueAtIndexOrDefault(o.lineWidth,u),p=t.getValueAtIndexOrDefault(o.color,u)),h="middle",ft="middle",y?(v||(ft=e.position==="top"?"bottom":"top"),h=v?"right":"center",ct=r.getPixelForTick(u)+t.aliasPixel(a),c=r.getPixelForTick(u,o.offsetGridLines)+f.labelOffset,ut=v?r.top+12:e.position==="top"?r.bottom-l:r.top+l,w=k=nt=it=ct,b=ti,g=ii,tt=i.top,rt=i.bottom):(e.position==="left"?f.mirror?(c=r.right+f.padding,h="left"):(c=r.right-f.padding,h="right"):f.mirror?(c=r.left-f.padding,h="right"):(c=r.left+f.padding,h="left"),et=r.getPixelForTick(u),et+=t.aliasPixel(a),ut=r.getPixelForTick(u,o.offsetGridLines),w=gt,k=ni,nt=i.left,it=i.right,b=g=tt=rt=et),d.push({tx1:w,ty1:b,tx2:k,ty2:g,x1:nt,y1:tt,x2:it,y2:rt,labelX:c,labelY:ut,glWidth:a,glColor:p,glBorderDash:vt,glBorderDashOffset:yt,rotation:-1*ot,label:n,textBaseline:ft,textAlign:h}))}),t.each(d,function(n){var i,r,e;if(o.display&&(u.save(),u.lineWidth=n.glWidth,u.strokeStyle=n.glColor,u.setLineDash&&(u.setLineDash(n.glBorderDash),u.lineDashOffset=n.glBorderDashOffset),u.beginPath(),o.drawTicks&&(u.moveTo(n.tx1,n.ty1),u.lineTo(n.tx2,n.ty2)),o.drawOnChartArea&&(u.moveTo(n.x1,n.y1),u.lineTo(n.x2,n.y2)),u.stroke(),u.restore()),f.display){if(u.save(),u.translate(n.labelX,n.labelY),u.rotate(n.rotation),u.font=at,u.textBaseline=n.textBaseline,u.textAlign=n.textAlign,i=n.label,t.isArray(i))for(r=0,e=-(i.length-1)*b*.75;r<i.length;++r)u.fillText(""+i[r],0,e),e+=b*1.5;else u.fillText(i,0,0);u.restore()}}),c.display&&(tt=0,y?(g=r.left+(r.right-r.left)/2,nt=e.position==="bottom"?r.bottom-a/2:r.top+a/2):(it=e.position==="left",g=it?r.left+a/2:r.right-a/2,nt=r.top+(r.bottom-r.top)/2,tt=it?-.5*Math.PI:.5*Math.PI),u.save(),u.translate(g,nt),u.rotate(tt),u.textAlign="center",u.textBaseline="middle",u.fillStyle=pt,u.font=kt,u.fillText(c.labelString,0,0),u.restore()),o.drawBorder){u.lineWidth=t.getValueAtIndexOrDefault(o.lineWidth,0);u.strokeStyle=t.getValueAtIndexOrDefault(o.color,0);var rt=r.left,ut=r.right,ft=r.top,et=r.bottom,w=t.aliasPixel(u.lineWidth);y?(ft=et=e.position==="top"?r.bottom:r.top,ft+=w,et+=w):(rt=ut=e.position==="left"?r.right:r.left,rt+=w,ut+=w);u.beginPath();u.moveTo(rt,ft);u.lineTo(ut,et);u.stroke()}}}})}},{}],32:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.scaleService={constructors:{},defaults:{},registerScaleType:function(n,i,r){this.constructors[n]=i;this.defaults[n]=t.clone(r)},getScaleConstructor:function(n){return this.constructors.hasOwnProperty(n)?this.constructors[n]:undefined},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?t.scaleMerge(n.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(n,i){var r=this.defaults;r.hasOwnProperty(n)&&(r[n]=t.extend(r[n],i))},addScalesToLayout:function(i){t.each(i.scales,function(t){n.layoutService.addBox(i,t)})}}}},{}],33:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t;n.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};t=i.noop;n.Title=n.Element.extend({initialize:function(t){var r=this;i.extend(r,t);r.options=i.configMerge(n.defaults.global.title,t.options);r.legendHitBoxes=[]},beforeUpdate:function(){var t=this.chart.options;t&&t.title&&(this.options=i.configMerge(n.defaults.global.title,t.title))},update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=this,o=i.getValueOrDefault,u=t.options,s=n.defaults.global,f=u.display,e=o(u.fontSize,s.defaultFontSize),r=t.minSize;t.isHorizontal()?(r.width=t.maxWidth,r.height=f?e+u.padding*2:0):(r.width=f?e+u.padding*2:0,r.height=t.maxHeight);t.width=r.width;t.height=r.height},afterFit:t,isHorizontal:function(){var n=this.options.position;return n==="top"||n==="bottom"},draw:function(){var u=this,t=u.ctx,f=i.getValueOrDefault,r=u.options,e=n.defaults.global;if(r.display){var s=f(r.fontSize,e.defaultFontSize),p=f(r.fontStyle,e.defaultFontStyle),w=f(r.fontFamily,e.defaultFontFamily),b=i.fontString(s,p,w),a=0,h,c,o=u.top,l=u.left,v=u.bottom,y=u.right;t.fillStyle=f(r.fontColor,e.defaultFontColor);t.font=b;u.isHorizontal()?(h=l+(y-l)/2,c=o+(v-o)/2):(h=r.position==="left"?l+s/2:y-s/2,c=o+(v-o)/2,a=Math.PI*(r.position==="left"?-.5:.5));t.save();t.translate(h,c);t.rotate(a);t.textAlign="center";t.textBaseline="middle";t.fillText(r.text,0,0);t.restore()}}});n.plugins.register({beforeInit:function(t){var r=t.options,i=r.title;i&&(t.titleBlock=new n.Title({ctx:t.chart.ctx,options:i,chart:t}),n.layoutService.addBox(t,t.titleBlock))}})}},{}],34:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return i&&(t.isArray(i)?Array.prototype.push.apply(n,i):n.push(i)),n}function r(n){var t,s,i,u,r,f,e,o;if(!n.length)return!1;for(i=[],u=[],t=0,s=n.length;t<s;++t)r=n[t],r&&r.hasValue()&&(f=r.tooltipPosition(),i.push(f.x),u.push(f.y));for(e=0,o=0,t=0;t<i.length;++t)i[t]&&(e+=i[t],o+=u[t]);return{x:Math.round(e/i.length),y:Math.round(o/i.length)}}function u(n){var r=n._xScale,u=n._yScale||n._scale,t=n._index,i=n._datasetIndex;return{xLabel:r?r.getLabelForIndex(t,i):"",yLabel:u?u.getLabelForIndex(t,i):"",index:t,datasetIndex:i}}var t=n.helpers;n.defaults.global.tooltips={enabled:!0,custom:null,mode:"single",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,yAlign:"center",xAlign:"center",caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",callbacks:{beforeTitle:t.noop,title:function(n,t){var r="",u=t.labels,f=u?u.length:0,i;return n.length>0&&(i=n[0],i.xLabel?r=i.xLabel:f>0&&i.index<f&&(r=u[i.index])),r},afterTitle:t.noop,beforeBody:t.noop,beforeLabel:t.noop,label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i+": "+n.yLabel},labelColor:function(n,t){var r=t.getDatasetMeta(n.datasetIndex),u=r.data[n.index],i=u._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},afterLabel:t.noop,afterBody:t.noop,beforeFooter:t.noop,footer:t.noop,afterFooter:t.noop}};n.Tooltip=n.Element.extend({initialize:function(){var f=this,r=n.defaults.global,i=f._options,u=t.getValueOrDefault;t.extend(f,{_model:{xPadding:i.xPadding,yPadding:i.yPadding,xAlign:i.xAlign,yAlign:i.yAlign,bodyFontColor:i.bodyFontColor,_bodyFontFamily:u(i.bodyFontFamily,r.defaultFontFamily),_bodyFontStyle:u(i.bodyFontStyle,r.defaultFontStyle),_bodyAlign:i.bodyAlign,bodyFontSize:u(i.bodyFontSize,r.defaultFontSize),bodySpacing:i.bodySpacing,titleFontColor:i.titleFontColor,_titleFontFamily:u(i.titleFontFamily,r.defaultFontFamily),_titleFontStyle:u(i.titleFontStyle,r.defaultFontStyle),titleFontSize:u(i.titleFontSize,r.defaultFontSize),_titleAlign:i.titleAlign,titleSpacing:i.titleSpacing,titleMarginBottom:i.titleMarginBottom,footerFontColor:i.footerFontColor,_footerFontFamily:u(i.footerFontFamily,r.defaultFontFamily),_footerFontStyle:u(i.footerFontStyle,r.defaultFontStyle),footerFontSize:u(i.footerFontSize,r.defaultFontSize),_footerAlign:i.footerAlign,footerSpacing:i.footerSpacing,footerMarginTop:i.footerMarginTop,caretSize:i.caretSize,cornerRadius:i.cornerRadius,backgroundColor:i.backgroundColor,opacity:0,legendColorBackground:i.multiKeyBackground}})},getTitle:function(){var t=this,u=t._options,r=u.callbacks,f=r.beforeTitle.apply(t,arguments),e=r.title.apply(t,arguments),o=r.afterTitle.apply(t,arguments),n=[];return n=i(n,f),n=i(n,e),i(n,o)},getBeforeBody:function(){var n=this._options.callbacks.beforeBody.apply(this,arguments);return t.isArray(n)?n:n!==undefined?[n]:[]},getBody:function(n,r){var u=this,f=u._options.callbacks,e=[];return t.each(n,function(n){var t={before:[],lines:[],after:[]};i(t.before,f.beforeLabel.call(u,n,r));i(t.lines,f.label.call(u,n,r));i(t.after,f.afterLabel.call(u,n,r));e.push(t)}),e},getAfterBody:function(){var n=this._options.callbacks.afterBody.apply(this,arguments);return t.isArray(n)?n:n!==undefined?[n]:[]},getFooter:function(){var t=this,r=t._options.callbacks,u=r.beforeFooter.apply(t,arguments),f=r.footer.apply(t,arguments),e=r.afterFooter.apply(t,arguments),n=[];return n=i(n,u),n=i(n,f),i(n,e)},update:function(n){var i=this,s=i._options,e=i._model,h=i._active,o=i._data,p=i._chartInstance,c,v,a;if(h.length){e.opacity=1;var y=[],l=r(h),f=[];for(c=0,v=h.length;c<v;++c)f.push(u(h[c]));s.itemSort&&(f=f.sort(function(n,t){return s.itemSort(n,t,o)}));h.length>1&&t.each(f,function(n){y.push(s.callbacks.labelColor.call(i,n,p))});t.extend(e,{title:i.getTitle(f,o),beforeBody:i.getBeforeBody(f,o),body:i.getBody(f,o),afterBody:i.getAfterBody(f,o),footer:i.getFooter(f,o),x:Math.round(l.x),y:Math.round(l.y),caretPadding:t.getValueOrDefault(l.padding,2),labelColors:y});a=i.getTooltipSize(e);i.determineAlignment(a);t.extend(e,i.getBackgroundPoint(e,a))}else i._model.opacity=0;return n&&s.custom&&s.custom.call(i,e),i},getTooltipSize:function(n){var u=this._chart.ctx,i={height:n.yPadding*2,width:0},s=n.body,f=s.reduce(function(n,t){return n+t.before.length+t.lines.length+t.after.length},0),o,r;f+=n.beforeBody.length+n.afterBody.length;var h=n.title.length,e=n.footer.length,l=n.titleFontSize,c=n.bodyFontSize,a=n.footerFontSize;return i.height+=h*l,i.height+=(h-1)*n.titleSpacing,i.height+=h?n.titleMarginBottom:0,i.height+=f*c,i.height+=f?(f-1)*n.bodySpacing:0,i.height+=e?n.footerMarginTop:0,i.height+=e*a,i.height+=e?(e-1)*n.footerSpacing:0,o=0,r=function(n){i.width=Math.max(i.width,u.measureText(n).width+o)},u.font=t.fontString(l,n._titleFontStyle,n._titleFontFamily),t.each(n.title,r),u.font=t.fontString(c,n._bodyFontStyle,n._bodyFontFamily),t.each(n.beforeBody.concat(n.afterBody),r),o=s.length>1?c+2:0,t.each(s,function(n){t.each(n.before,r);t.each(n.lines,r);t.each(n.after,r)}),o=0,u.font=t.fontString(a,n._footerFontStyle,n._footerFontFamily),t.each(n.footer,r),i.width+=2*n.xPadding,i},determineAlignment:function(n){var r=this,t=r._model,u=r._chart,i=r._chartInstance.chartArea,f,e,h,c,o,s,l;t.y<n.height?t.yAlign="top":t.y>u.height-n.height&&(t.yAlign="bottom");s=(i.left+i.right)/2;l=(i.top+i.bottom)/2;t.yAlign==="center"?(f=function(n){return n<=s},e=function(n){return n>s}):(f=function(t){return t<=n.width/2},e=function(t){return t>=u.width-n.width/2});h=function(t){return t+n.width>u.width};c=function(t){return t-n.width<0};o=function(n){return n<=l?"top":"bottom"};f(t.x)?(t.xAlign="left",h(t.x)&&(t.xAlign="center",t.yAlign=o(t.y))):e(t.x)&&(t.xAlign="right",c(t.x)&&(t.xAlign="center",t.yAlign=o(t.y)))},getBackgroundPoint:function(n,t){var i={x:n.x,y:n.y},s=n.caretSize,e=n.caretPadding,h=n.cornerRadius,r=n.xAlign,f=n.yAlign,u=s+e,o=h+e;return r==="right"?i.x-=t.width:r==="center"&&(i.x-=t.width/2),f==="top"?i.y+=u:i.y-=f==="bottom"?t.height+u:t.height/2,f==="center"?r==="left"?i.x+=u:r==="right"&&(i.x-=u):r==="left"?i.x-=o:r==="right"&&(i.x+=o),i},drawCaret:function(n,i,r){var l=this._view,s=this._chart.ctx,u,e,h,o,c,v,f=l.caretSize,k=l.cornerRadius,y=l.xAlign,d=l.yAlign,a=n.x,p=n.y,w=i.width,g=i.height,b;d==="center"?(y==="left"?(u=a,e=u-f,h=u):(u=a+w,e=u+f,h=u),c=p+g/2,o=c-f,v=c+f):(y==="left"?(u=a+k,e=u+f,h=e+f):y==="right"?(u=a+w-k,e=u-f,h=e-f):(e=a+w/2,u=e-f,h=e+f),d==="top"?(o=p,c=o-f,v=o):(o=p+g,c=o+f,v=o));b=t.color(l.backgroundColor);s.fillStyle=b.alpha(r*b.alpha()).rgbString();s.beginPath();s.moveTo(u,o);s.lineTo(e,c);s.lineTo(h,v);s.closePath();s.fill()},drawTitle:function(n,i,r,u){var e=i.title,f,c;if(e.length){r.textAlign=i._titleAlign;r.textBaseline="top";var o=i.titleFontSize,s=i.titleSpacing,h=t.color(i.titleFontColor);for(r.fillStyle=h.alpha(u*h.alpha()).rgbString(),r.font=t.fontString(o,i._titleFontStyle,i._titleFontFamily),f=0,c=e.length;f<c;++f)r.fillText(e[f],n.x,n.y),n.y+=o+s,f+1===e.length&&(n.y+=i.titleMarginBottom-s)}},drawBody:function(n,i,r,u){var f=i.bodyFontSize,l=i.bodySpacing,a=i.body,s,h,o,e,c;r.textAlign=i._bodyAlign;r.textBaseline="top";s=t.color(i.bodyFontColor);h=s.alpha(u*s.alpha()).rgbString();r.fillStyle=h;r.font=t.fontString(f,i._bodyFontStyle,i._bodyFontFamily);o=0;e=function(t){r.fillText(t,n.x+o,n.y);n.y+=f+l};t.each(i.beforeBody,e);c=a.length>1;o=c?f+2:0;t.each(a,function(o,s){t.each(o.before,e);t.each(o.lines,function(o){c&&(r.fillStyle=t.color(i.legendColorBackground).alpha(u).rgbaString(),r.fillRect(n.x,n.y,f,f),r.strokeStyle=t.color(i.labelColors[s].borderColor).alpha(u).rgbaString(),r.strokeRect(n.x,n.y,f,f),r.fillStyle=t.color(i.labelColors[s].backgroundColor).alpha(u).rgbaString(),r.fillRect(n.x+1,n.y+1,f-2,f-2),r.fillStyle=h);e(o)});t.each(o.after,e)});o=0;t.each(i.afterBody,e);n.y-=l},drawFooter:function(n,i,r,u){var e=i.footer,f;e.length&&(n.y+=i.footerMarginTop,r.textAlign=i._footerAlign,r.textBaseline="top",f=t.color(i.footerFontColor),r.fillStyle=f.alpha(u*f.alpha()).rgbString(),r.font=t.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),t.each(e,function(t){r.fillText(t,n.x,n.y);n.y+=i.footerFontSize+i.footerSpacing}))},draw:function(){var r=this._chart.ctx,n=this._view,e;if(n.opacity!==0){var f=this.getTooltipSize(n),i={x:n.x,y:n.y},u=Math.abs(n.opacity<.001)?0:n.opacity;this._options.enabled&&(e=t.color(n.backgroundColor),r.fillStyle=e.alpha(u*e.alpha()).rgbString(),t.drawRoundedRectangle(r,i.x,i.y,f.width,f.height,n.cornerRadius),r.fill(),this.drawCaret(i,f,u),i.x+=n.xPadding,i.y+=n.yPadding,this.drawTitle(i,n,r,u),this.drawBody(i,n,r,u),this.drawFooter(i,n,r,u))}}})}},{}],35:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;t.elements.arc={backgroundColor:t.defaultColor,borderColor:"#fff",borderWidth:2};n.elements.Arc=n.Element.extend({inLabelRange:function(n){var t=this._view;return t?Math.pow(n-t.x,2)<Math.pow(t.radius+t.hoverRadius,2):!1},inRange:function(n,t){var r=this._view,h,c;if(r){for(var o=i.getAngleFromPoint(r,{x:n,y:t}),u=o.angle,s=o.distance,e=r.startAngle,f=r.endAngle;f<e;)f+=2*Math.PI;while(u>f)u-=2*Math.PI;while(u<e)u+=2*Math.PI;return h=u>=e&&u<=f,c=s>=r.innerRadius&&s<=r.outerRadius,h&&c}return!1},tooltipPosition:function(){var n=this._view,t=n.startAngle+(n.endAngle-n.startAngle)/2,i=(n.outerRadius-n.innerRadius)/2+n.innerRadius;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},draw:function(){var t=this._chart.ctx,n=this._view,i=n.startAngle,r=n.endAngle;t.beginPath();t.arc(n.x,n.y,n.outerRadius,i,r);t.arc(n.x,n.y,n.innerRadius,r,i,!0);t.closePath();t.strokeStyle=n.borderColor;t.lineWidth=n.borderWidth;t.fillStyle=n.backgroundColor;t.fill();t.lineJoin="bevel";n.borderWidth&&t.stroke()}})}},{}],36:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;n.defaults.global.elements.line={tension:.4,backgroundColor:t.defaultColor,borderWidth:3,borderColor:t.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0};n.elements.Line=n.Element.extend({draw:function(){function p(t,i){var r=i._view;i._view.steppedLine===!0?(n.lineTo(r.x,t._view.y),n.lineTo(r.x,r.y)):i._view.tension===0?n.lineTo(r.x,r.y):n.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,r.controlPointPreviousX,r.controlPointPreviousY,r.x,r.y)}var v=this,o=v._view,y=o.spanGaps,h=o.scaleZero,a=v._loop,n=v._chart.ctx,e,f,r,c,s,u,l;if(n.save(),e=v._children.slice(),f=-1,a&&e.length&&e.push(e[0]),e.length&&o.fill){for(n.beginPath(),r=0;r<e.length;++r)c=e[r],s=i.previousItem(e,r),u=c._view,r===0?(a?n.moveTo(h.x,h.y):n.moveTo(u.x,h),u.skip||(f=r,n.lineTo(u.x,u.y))):(s=f===-1?s:e[f],u.skip?y||f!==r-1||(a?n.lineTo(h.x,h.y):n.lineTo(s._view.x,h)):(f!==r-1?y&&f!==-1?p(s,c):a?n.lineTo(u.x,u.y):(n.lineTo(u.x,h),n.lineTo(u.x,u.y)):p(s,c),f=r));a||f===-1||n.lineTo(e[f]._view.x,h);n.fillStyle=o.backgroundColor||t.defaultColor;n.closePath();n.fill()}for(l=t.elements.line,n.lineCap=o.borderCapStyle||l.borderCapStyle,n.setLineDash&&n.setLineDash(o.borderDash||l.borderDash),n.lineDashOffset=o.borderDashOffset||l.borderDashOffset,n.lineJoin=o.borderJoinStyle||l.borderJoinStyle,n.lineWidth=o.borderWidth||l.borderWidth,n.strokeStyle=o.borderColor||t.defaultColor,n.beginPath(),f=-1,r=0;r<e.length;++r)c=e[r],s=i.previousItem(e,r),u=c._view,r===0?u.skip||(n.moveTo(u.x,u.y),f=r):(s=f===-1?s:e[f],u.skip||((f===r-1||y)&&f!==-1?p(s,c):n.moveTo(u.x,u.y),f=r));n.stroke();n.restore()}})}},{}],37:[function(n,t){"use strict";t.exports=function(n){var r=n.helpers,i=n.defaults.global,t=i.defaultColor;i.elements.point={radius:3,pointStyle:"circle",backgroundColor:t,borderWidth:1,borderColor:t,hitRadius:1,hoverRadius:4,hoverBorderWidth:1};n.elements.Point=n.Element.extend({inRange:function(n,t){var i=this._view;return i?Math.pow(n-i.x,2)+Math.pow(t-i.y,2)<Math.pow(i.hitRadius+i.radius,2):!1},inLabelRange:function(n){var t=this._view;return t?Math.pow(n-t.x,2)<Math.pow(t.radius+t.hitRadius,2):!1},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y,padding:n.radius+n.borderWidth}},draw:function(){var u=this._view,f=this._chart.ctx,e=u.pointStyle,o=u.radius,s=u.x,h=u.y;u.skip||(f.strokeStyle=u.borderColor||t,f.lineWidth=r.getValueOrDefault(u.borderWidth,i.elements.point.borderWidth),f.fillStyle=u.backgroundColor||t,n.canvasHelpers.drawPoint(f,e,o,s,h))}})}},{}],38:[function(n,t){"use strict";t.exports=function(n){var t=n.defaults.global;t.elements.rectangle={backgroundColor:t.defaultColor,borderWidth:0,borderColor:t.defaultColor,borderSkipped:"bottom"};n.elements.Rectangle=n.Element.extend({draw:function(){function h(n){return c[(o+n)%4]}var t=this._chart.ctx,n=this._view,s=n.width/2,r=n.x-s,u=n.x+s,f=n.base-(n.base-n.y),e=n.borderWidth/2,i;n.borderWidth&&(r+=e,u-=e,f+=e);t.beginPath();t.fillStyle=n.backgroundColor;t.strokeStyle=n.borderColor;t.lineWidth=n.borderWidth;var c=[[r,n.base],[r,f],[u,f],[u,n.base]],o=["bottom","left","top","right"].indexOf(n.borderSkipped,0);for(o===-1&&(o=0),t.moveTo.apply(t,h(0)),i=1;i<4;i++)t.lineTo.apply(t,h(i));t.fill();n.borderWidth&&t.stroke()},height:function(){var n=this._view;return n.base-n.y},inRange:function(n,t){var i=this._view;return i?i.y<i.base?n>=i.x-i.width/2&&n<=i.x+i.width/2&&t>=i.y&&t<=i.base:n>=i.x-i.width/2&&n<=i.x+i.width/2&&t>=i.base&&t<=i.y:!1},inLabelRange:function(n){var t=this._view;return t?n>=t.x-t.width/2&&n<=t.x+t.width/2:!1},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y}}})}},{}],39:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.Scale.extend({getLabels:function(){var n=this.chart.data;return(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels},determineDataLimits:function(){var n=this,r=n.getLabels(),i;n.minIndex=0;n.maxIndex=r.length-1;n.options.ticks.min!==undefined&&(i=t.indexOf(r,n.options.ticks.min),n.minIndex=i!==-1?i:n.minIndex);n.options.ticks.max!==undefined&&(i=t.indexOf(r,n.options.ticks.max),n.maxIndex=i!==-1?i:n.maxIndex);n.min=r[n.minIndex];n.max=r[n.maxIndex]},buildTicks:function(){var n=this,t=n.getLabels();n.ticks=n.minIndex===0&&n.maxIndex===t.length-1?t:t.slice(n.minIndex,n.maxIndex+1)},getLabelForIndex:function(n,t){var i=this,r=i.chart.data,u=i.isHorizontal();return r.xLabels&&u||r.yLabels&&!u?i.getRightValue(r.datasets[t].data[n]):i.ticks[n]},getPixelForValue:function(n,t,i,r){var u=this,e=Math.max(u.maxIndex+1-u.minIndex-(u.options.gridLines.offsetGridLines?0:1),1),o,f;if(n!==undefined&&isNaN(t)&&(o=u.getLabels(),f=o.indexOf(n),t=f!==-1?f:t),u.isHorizontal()){var a=u.width-(u.paddingLeft+u.paddingRight),s=a/e,h=s*(t-u.minIndex)+u.paddingLeft;return(u.options.gridLines.offsetGridLines&&r||u.maxIndex===u.minIndex&&r)&&(h+=s/2),u.left+Math.round(h)}var v=u.height-(u.paddingTop+u.paddingBottom),c=v/e,l=c*(t-u.minIndex)+u.paddingTop;return u.options.gridLines.offsetGridLines&&r&&(l+=c/2),u.top+Math.round(l)},getPixelForTick:function(n,t){return this.getPixelForValue(this.ticks[n],n+this.minIndex,null,t)},getValueForPixel:function(n){var t=this,u=Math.max(t.ticks.length-(t.options.gridLines.offsetGridLines?0:1),1),i=t.isHorizontal(),f=i?t.width-(t.paddingLeft+t.paddingRight):t.height-(t.paddingTop+t.paddingBottom),r=f/u;return n-=i?t.left:t.top,t.options.gridLines.offsetGridLines&&(n-=r/2),n-=i?t.paddingLeft:t.paddingTop,n<=0?0:Math.round(n/r)},getBasePixel:function(){return this.bottom}});n.scaleService.registerScaleType("category",i,{position:"bottom"})}},{}],40:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:function(n,i,r){var e=r.length>3?r[2]-r[1]:r[1]-r[0],o,u,f;return Math.abs(e)>1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),o=t.log10(Math.abs(e)),u="",n!==0?(f=-1*Math.floor(o),f=Math.max(Math.min(f,20),0),u=n.toFixed(f)):u="0",u}}},r=n.LinearScaleBase.extend({determineDataLimits:function(){function e(t){return s?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,u=n.options,r=n.chart,o=r.data,f=o.datasets,s=n.isHorizontal(),i;n.min=null;n.max=null;u.stacked?(i={},t.each(f,function(f,o){var s=r.getDatasetMeta(o),h,c;i[s.type]===undefined&&(i[s.type]={positiveValues:[],negativeValues:[]});h=i[s.type].positiveValues;c=i[s.type].negativeValues;r.isDatasetVisible(o)&&e(s)&&t.each(f.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||s.data[i].hidden||(h[i]=h[i]||0,c[i]=c[i]||0,u.relativePoints?h[i]=100:r<0?c[i]+=r:h[i]+=r)})}),t.each(i,function(i){var r=i.positiveValues.concat(i.negativeValues),u=t.min(r),f=t.max(r);n.min=n.min===null?u:Math.min(n.min,u);n.max=n.max===null?f:Math.max(n.max,f)})):t.each(f,function(i,u){var f=r.getDatasetMeta(u);r.isDatasetVisible(u)&&e(f)&&t.each(i.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(n.min===null?n.min=r:r<n.min&&(n.min=r),n.max===null?n.max=r:r>n.max&&(n.max=r))})});this.handleTickRangeOptions()},getTickLimit:function(){var u,r=this,i=r.options.ticks,f;return r.isHorizontal()?u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.width/50)):(f=t.getValueOrDefault(i.fontSize,n.defaults.global.defaultFontSize),u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.height/(2*f)))),u},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForValue:function(n){var t=this,f=t.paddingLeft,e=t.paddingBottom,u=t.start,o=+t.getRightValue(n),i,r,s=t.end-u;return t.isHorizontal()?(r=t.width-(f+t.paddingRight),i=t.left+r/s*(o-u),Math.round(i+f)):(r=t.height-(t.paddingTop+e),i=t.bottom-e-r/s*(o-u),Math.round(i))},getValueForPixel:function(n){var t=this,i=t.isHorizontal(),r=t.paddingLeft,u=t.paddingBottom,f=i?t.width-(r+t.paddingRight):t.height-(t.paddingTop+u),e=(i?n-t.left-r:t.bottom-u-n)/f;return t.start+(t.end-t.start)*e},getPixelForTick:function(n){return this.getPixelForValue(this.ticksAsNumbers[n])}});n.scaleService.registerScaleType("linear",r,i)}},{}],41:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.LinearScaleBase=n.Scale.extend({handleTickRangeOptions:function(){var n=this,f=n.options,i=f.ticks,r,u;i.beginAtZero&&(r=t.sign(n.min),u=t.sign(n.max),r<0&&u<0?n.max=0:r>0&&u>0&&(n.min=0));i.min!==undefined?n.min=i.min:i.suggestedMin!==undefined&&(n.min=Math.min(n.min,i.suggestedMin));i.max!==undefined?n.max=i.max:i.suggestedMax!==undefined&&(n.max=Math.max(n.max,i.suggestedMax));n.min===n.max&&(n.max++,i.beginAtZero||n.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var n=this,a=n.options,u=n.ticks=[],i=a.ticks,v=t.getValueOrDefault,o=n.getTickLimit(),r,h,c,e;o=Math.max(2,o);h=i.fixedStepSize&&i.fixedStepSize>0||i.stepSize&&i.stepSize>0;h?r=v(i.fixedStepSize,i.stepSize):(c=t.niceNum(n.max-n.min,!1),r=t.niceNum(c/(o-1),!0));var s=Math.floor(n.min/r)*r,l=Math.ceil(n.max/r)*r,f=(l-s)/r;for(f=t.almostEquals(f,Math.round(f),r/1e3)?Math.round(f):Math.ceil(f),u.push(i.min!==undefined?i.min:s),e=1;e<f;++e)u.push(s+e*r);u.push(i.max!==undefined?i.max:l);n.handleDirectionalChanges();n.max=t.max(u);n.min=t.min(u);i.reverse?(u.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice();t.zeroLineIndex=t.ticks.indexOf(0);n.Scale.prototype.convertTicksToLabels.call(t)}})}},{}],42:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:function(n,i,r){var u=n/Math.pow(10,Math.floor(t.log10(n)));return n===0?"0":u===1||u===2||u===5||i===0||i===r.length-1?n.toExponential():""}}},r=n.Scale.extend({determineDataLimits:function(){function s(t){return c?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,u=n.options,f=u.ticks,i=n.chart,h=i.data,e=h.datasets,o=t.getValueOrDefault,c=n.isHorizontal(),r;n.min=null;n.max=null;n.minNotZero=null;u.stacked?(r={},t.each(e,function(f,e){var o=i.getDatasetMeta(e);i.isDatasetVisible(e)&&s(o)&&(r[o.type]===undefined&&(r[o.type]=[]),t.each(f.data,function(t,i){var f=r[o.type],e=+n.getRightValue(t);isNaN(e)||o.data[i].hidden||(f[i]=f[i]||0,u.relativePoints?f[i]=100:f[i]+=e)}))}),t.each(r,function(i){var r=t.min(i),u=t.max(i);n.min=n.min===null?r:Math.min(n.min,r);n.max=n.max===null?u:Math.max(n.max,u)})):t.each(e,function(r,u){var f=i.getDatasetMeta(u);i.isDatasetVisible(u)&&s(f)&&t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(n.min===null?n.min=r:r<n.min&&(n.min=r),n.max===null?n.max=r:r>n.max&&(n.max=r),r!==0&&(n.minNotZero===null||r<n.minNotZero)&&(n.minNotZero=r))})});n.min=o(f.min,n.min);n.max=o(f.max,n.max);n.min===n.max&&(n.min!==0&&n.min!==null?(n.min=Math.pow(10,Math.floor(t.log10(n.min))-1),n.max=Math.pow(10,Math.floor(t.log10(n.max))+1)):(n.min=1,n.max=10))},buildTicks:function(){for(var n=this,h=n.options,e=h.ticks,o=t.getValueOrDefault,r=n.ticks=[],i=o(e.min,Math.pow(10,Math.floor(t.log10(n.min)))),u,f,s;i<n.max;)r.push(i),i===0?(u=Math.floor(t.log10(n.minNotZero)),f=Math.round(n.minNotZero/Math.pow(10,u))):(u=Math.floor(t.log10(i)),f=Math.floor(i/Math.pow(10,u))+1),f===10&&(f=1,++u),i=f*Math.pow(10,u);s=o(e.max,i);r.push(s);n.isHorizontal()||r.reverse();n.max=t.max(r);n.min=t.min(r);e.reverse?(r.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice();n.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForTick:function(n){return this.getPixelForValue(this.tickValues[n])},getPixelForValue:function(n){var i=this,r,e,o=i.start,u=+i.getRightValue(n),f,h=i.paddingTop,s=i.paddingBottom,c=i.paddingLeft,a=i.options,l=a.ticks;return i.isHorizontal()?(f=t.log10(i.end)-t.log10(o),u===0?e=i.left+c:(r=i.width-(c+i.paddingRight),e=i.left+r/f*(t.log10(u)-t.log10(o))+c)):(r=i.height-(h+s),o!==0||l.reverse?i.end===0&&l.reverse?(f=t.log10(i.start)-t.log10(i.minNotZero),e=u===i.end?i.top+h:u===i.minNotZero?i.top+h+r*.02:i.top+h+r*.02+r*.98/f*(t.log10(u)-t.log10(i.minNotZero))):(f=t.log10(i.end)-t.log10(o),r=i.height-(h+s),e=i.bottom-s-r/f*(t.log10(u)-t.log10(o))):(f=t.log10(i.end)-t.log10(i.minNotZero),e=u===o?i.bottom-s:u===i.minNotZero?i.bottom-s-r*.02:i.bottom-s-r*.02-r*.98/f*(t.log10(u)-t.log10(i.minNotZero)))),e},getValueForPixel:function(n){var i=this,f=t.log10(i.end)-t.log10(i.start),u,r;return i.isHorizontal()?(r=i.width-(i.paddingLeft+i.paddingRight),u=i.start*Math.pow(10,(n-i.left-i.paddingLeft)*f/r)):(r=i.height-(i.paddingTop+i.paddingBottom),u=Math.pow(10,(i.bottom-i.paddingBottom-n)*f/r)/i.start),u}});n.scaleService.registerScaleType("logarithmic",r,i)}},{}],43:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.defaults.global,r={display:!0,animate:!0,lineArc:!1,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2},pointLabels:{fontSize:10,callback:function(n){return n}}},u=n.LinearScaleBase.extend({getValueCount:function(){return this.chart.data.labels.length},setDimensions:function(){var n=this,u=n.options,f=u.ticks,r,e;n.width=n.maxWidth;n.height=n.maxHeight;n.xCenter=Math.round(n.width/2);n.yCenter=Math.round(n.height/2);r=t.min([n.height,n.width]);e=t.getValueOrDefault(f.fontSize,i.defaultFontSize);n.drawingArea=u.display?r/2-(e/2+f.backdropPaddingY):r/2},determineDataLimits:function(){var n=this,i=n.chart;n.min=null;n.max=null;t.each(i.data.datasets,function(r,u){if(i.isDatasetVisible(u)){var f=i.getDatasetMeta(u);t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(n.min===null?n.min=r:r<n.min&&(n.min=r),n.max===null?n.max=r:r>n.max&&(n.max=r))})}});n.handleTickRangeOptions()},getTickLimit:function(){var n=this.options.ticks,r=t.getValueOrDefault(n.fontSize,i.defaultFontSize);return Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*r)))},convertTicksToLabels:function(){var t=this;n.LinearScaleBase.prototype.convertTicksToLabels.call(t);t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},fit:function(){var l=this.options.pointLabels,y=t.getValueOrDefault(l.fontSize,i.defaultFontSize),nt=t.getValueOrDefault(l.fontStyle,i.defaultFontStyle),tt=t.getValueOrDefault(l.fontFamily,i.defaultFontFamily),it=t.fontString(y,nt,tt),p=t.min([this.height/2-y-5,this.width/2]),r,n,u,o,s=this.width,a,w,h=0,v,b,k,d,f,e,g,c;for(this.ctx.font=it,n=0;n<this.getValueCount();n++)r=this.getPointPosition(n,p),u=this.ctx.measureText(this.pointLabels[n]?this.pointLabels[n]:"").width+5,g=this.getIndexAngle(n)+Math.PI/2,c=g*360/(2*Math.PI)%360,c===0||c===180?(o=u/2,r.x+o>s&&(s=r.x+o,a=n),r.x-o<h&&(h=r.x-o,v=n)):c<180?r.x+u>s&&(s=r.x+u,a=n):r.x-u<h&&(h=r.x-u,v=n);k=h;d=Math.ceil(s-this.width);w=this.getIndexAngle(a);b=this.getIndexAngle(v);f=d/Math.sin(w+Math.PI/2);e=k/Math.sin(b+Math.PI/2);f=t.isNumber(f)?f:0;e=t.isNumber(e)?e:0;this.drawingArea=Math.round(p-(e+f)/2);this.setCenterPoint(e,f)},setCenterPoint:function(n,t){var i=this,r=i.width-t-i.drawingArea,u=n+i.drawingArea;i.xCenter=Math.round((u+r)/2+i.left);i.yCenter=Math.round(i.height/2+i.top)},getIndexAngle:function(n){var t=Math.PI*2/this.getValueCount(),i=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,r=i*Math.PI/180;return n*t-Math.PI/2+r},getDistanceFromCenterForValue:function(n){var t=this,i;return n===null?0:(i=t.drawingArea/(t.max-t.min),t.options.reverse)?(t.max-n)*i:(n-t.min)*i},getPointPosition:function(n,t){var i=this,r=i.getIndexAngle(n);return{x:Math.round(Math.cos(r)*t)+i.xCenter,y:Math.round(Math.sin(r)*t)+i.yCenter}},getPointPositionForValue:function(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var n=this,t=n.min,i=n.max;return n.getPointPositionForValue(0,n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0)},draw:function(){var r=this,f=r.options,c=f.gridLines,u=f.ticks,l=f.angleLines,h=f.pointLabels,e=t.getValueOrDefault,o,v,y,w;if(f.display){var n=r.ctx,a=e(u.fontSize,i.defaultFontSize),k=e(u.fontStyle,i.defaultFontStyle),d=e(u.fontFamily,i.defaultFontFamily),g=t.fontString(a,k,d);if(t.each(r.ticks,function(o,s){var v,y,h,l,w,p;if(s>0||f.reverse){if(v=r.getDistanceFromCenterForValue(r.ticksAsNumbers[s]),y=r.yCenter-v,c.display&&s!==0)if(n.strokeStyle=t.getValueAtIndexOrDefault(c.color,s-1),n.lineWidth=t.getValueAtIndexOrDefault(c.lineWidth,s-1),f.lineArc)n.beginPath(),n.arc(r.xCenter,r.yCenter,v,0,Math.PI*2),n.closePath(),n.stroke();else{for(n.beginPath(),h=0;h<r.getValueCount();h++)l=r.getPointPosition(h,v),h===0?n.moveTo(l.x,l.y):n.lineTo(l.x,l.y);n.closePath();n.stroke()}u.display&&(w=e(u.fontColor,i.defaultFontColor),n.font=g,u.showLabelBackdrop&&(p=n.measureText(o).width,n.fillStyle=u.backdropColor,n.fillRect(r.xCenter-p/2-u.backdropPaddingX,y-a/2-u.backdropPaddingY,p+u.backdropPaddingX*2,a+u.backdropPaddingY*2)),n.textAlign="center",n.textBaseline="middle",n.fillStyle=w,n.fillText(o,r.xCenter,y))}}),!f.lineArc){n.lineWidth=l.lineWidth;n.strokeStyle=l.color;var p=r.getDistanceFromCenterForValue(f.reverse?r.min:r.max),nt=e(h.fontSize,i.defaultFontSize),tt=e(h.fontStyle,i.defaultFontStyle),it=e(h.fontFamily,i.defaultFontFamily),rt=t.fontString(nt,tt,it);for(o=r.getValueCount()-1;o>=0;o--){l.display&&(v=r.getPointPosition(o,p),n.beginPath(),n.moveTo(r.xCenter,r.yCenter),n.lineTo(v.x,v.y),n.stroke(),n.closePath());y=r.getPointPosition(o,p+5);w=e(h.fontColor,i.defaultFontColor);n.font=rt;n.fillStyle=w;var b=r.pointLabels,ut=this.getIndexAngle(o)+Math.PI/2,s=ut*360/(2*Math.PI)%360;n.textAlign=s===0||s===180?"center":s<180?"left":"right";n.textBaseline=s===90||s===270?"middle":s>270||s<90?"bottom":"top";n.fillText(b[o]?b[o]:"",y.x,y.y)}}}}});n.scaleService.registerScaleType("radialLinear",u,r)}},{}],44:[function(n,t){"use strict";var i=n(1);i=typeof i=="function"?i:window.moment;t.exports=function(n){var t=n.helpers,r={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},u=n.Scale.extend({initialize:function(){if(!i)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");n.Scale.prototype.initialize.call(this)},getLabelMoment:function(n,t){return n===null||t===null?null:typeof this.labelMoments[n]!="undefined"?this.labelMoments[n][t]:null},getLabelDiff:function(n,t){var i=this;return n===null||t===null?null:(i.labelDiffs===undefined&&i.buildLabelDiffs(),typeof i.labelDiffs[n]!="undefined")?i.labelDiffs[n][t]:null},getMomentStartOf:function(n){var t=this;return t.options.time.unit==="week"&&t.options.time.isoWeekday!==!1?n.clone().startOf("isoWeek").isoWeekday(t.options.time.isoWeekday):n.clone().startOf(t.tickUnit)},determineDataLimits:function(){var n=this,r;n.labelMoments=[];r=[];n.chart.data.labels&&n.chart.data.labels.length>0?(t.each(n.chart.data.labels,function(t){var i=n.parseTime(t);i.isValid()&&(n.options.time.round&&i.startOf(n.options.time.round),r.push(i))},n),n.firstTick=i.min.call(n,r),n.lastTick=i.max.call(n,r)):(n.firstTick=null,n.lastTick=null);t.each(n.chart.data.datasets,function(u,f){var e=[],o=n.chart.isDatasetVisible(f);typeof u.data[0]=="object"&&u.data[0]!==null?t.each(u.data,function(t){var r=n.parseTime(n.getRightValue(t));r.isValid()&&(n.options.time.round&&r.startOf(n.options.time.round),e.push(r),o&&(n.firstTick=n.firstTick!==null?i.min(n.firstTick,r):r,n.lastTick=n.lastTick!==null?i.max(n.lastTick,r):r))},n):e=r;n.labelMoments.push(e)},n);n.options.time.min&&(n.firstTick=n.parseTime(n.options.time.min));n.options.time.max&&(n.lastTick=n.parseTime(n.options.time.max));n.firstTick=(n.firstTick||i()).clone();n.lastTick=(n.lastTick||i()).clone()},buildLabelDiffs:function(){var n=this,i;n.labelDiffs=[];i=[];n.chart.data.labels&&n.chart.data.labels.length>0&&t.each(n.chart.data.labels,function(t){var r=n.parseTime(t);r.isValid()&&(n.options.time.round&&r.startOf(n.options.time.round),i.push(r.diff(n.firstTick,n.tickUnit,!0)))},n);t.each(n.chart.data.datasets,function(r){var u=[];typeof r.data[0]=="object"&&r.data[0]!==null?t.each(r.data,function(t){var i=n.parseTime(n.getRightValue(t));i.isValid()&&(n.options.time.round&&i.startOf(n.options.time.round),u.push(i.diff(n.firstTick,n.tickUnit,!0)))},n):u=i;n.labelDiffs.push(u)},n)},buildTicks:function(){var i=this,f,e,u,o,p,w,c,l,a,s,v,b;i.ctx.save();var y=t.getValueOrDefault(i.options.ticks.fontSize,n.defaults.global.defaultFontSize),k=t.getValueOrDefault(i.options.ticks.fontStyle,n.defaults.global.defaultFontStyle),d=t.getValueOrDefault(i.options.ticks.fontFamily,n.defaults.global.defaultFontFamily),g=t.fontString(y,k,d);if(i.ctx.font=g,i.ticks=[],i.unitScale=1,i.scaleSizeInUnits=0,i.options.time.unit)i.tickUnit=i.options.time.unit||"day",i.displayFormat=i.options.time.displayFormats[i.tickUnit],i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0),i.unitScale=t.getValueOrDefault(i.options.time.unitStepSize,1);else{var nt=i.isHorizontal()?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),tt=i.tickFormatFunction(i.firstTick,0,[]),h=i.ctx.measureText(tt).width,it=Math.cos(t.toRadians(i.options.ticks.maxRotation)),rt=Math.sin(t.toRadians(i.options.ticks.maxRotation));for(h=h*it+y*rt,f=nt/h,i.tickUnit=i.options.time.minUnit,i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0),i.displayFormat=i.options.time.displayFormats[i.tickUnit],e=0,u=r.units[e];e<r.units.length;)if(i.unitScale=1,t.isArray(u.steps)&&Math.ceil(i.scaleSizeInUnits/f)<t.max(u.steps)){for(o=0;o<u.steps.length;++o)if(u.steps[o]>=Math.ceil(i.scaleSizeInUnits/f)){i.unitScale=t.getValueOrDefault(i.options.time.unitStepSize,u.steps[o]);break}break}else if(u.maxStep===!1||Math.ceil(i.scaleSizeInUnits/f)<u.maxStep){i.unitScale=t.getValueOrDefault(i.options.time.unitStepSize,Math.ceil(i.scaleSizeInUnits/f));break}else++e,u=r.units[e],i.tickUnit=u.name,p=i.firstTick.diff(i.getMomentStartOf(i.firstTick),i.tickUnit,!0),w=i.getMomentStartOf(i.lastTick.clone().add(1,i.tickUnit)).diff(i.lastTick,i.tickUnit,!0),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)+p+w,i.displayFormat=i.options.time.displayFormats[u.name]}for(i.options.time.min?c=i.getMomentStartOf(i.firstTick):(i.firstTick=i.getMomentStartOf(i.firstTick),c=i.firstTick),i.options.time.max||(l=i.getMomentStartOf(i.lastTick),a=l.diff(i.lastTick,i.tickUnit,!0),a<0?i.lastTick=i.getMomentStartOf(i.lastTick.add(1,i.tickUnit)):a>=0&&(i.lastTick=l),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)),i.options.time.displayFormat&&(i.displayFormat=i.options.time.displayFormat),i.ticks.push(i.firstTick.clone()),s=1;s<=i.scaleSizeInUnits;++s){if(v=c.clone().add(s,i.tickUnit),i.options.time.max&&v.diff(i.lastTick,i.tickUnit,!0)>=0)break;s%i.unitScale==0&&i.ticks.push(v)}b=i.ticks[i.ticks.length-1].diff(i.lastTick,i.tickUnit);(b!==0||i.scaleSizeInUnits===0)&&(i.options.time.max?(i.ticks.push(i.lastTick.clone()),i.scaleSizeInUnits=i.lastTick.diff(i.ticks[0],i.tickUnit,!0)):(i.ticks.push(i.lastTick.clone()),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)));i.ctx.restore();i.labelDiffs=undefined},getLabelForIndex:function(n,t){var i=this,r=i.chart.data.labels&&n<i.chart.data.labels.length?i.chart.data.labels[n]:"";return typeof i.chart.data.datasets[t].data[0]=="object"&&(r=i.getRightValue(i.chart.data.datasets[t].data[n])),i.options.time.tooltipFormat&&(r=i.parseTime(r).format(i.options.time.tooltipFormat)),r},tickFormatFunction:function(n,i,r){var u=n.format(this.displayFormat),f=this.options.ticks,e=t.getValueOrDefault(f.callback,f.userCallback);return e?e(u,i,r):u},convertTicksToLabels:function(){var n=this;n.tickMoments=n.ticks;n.ticks=n.ticks.map(n.tickFormatFunction,n)},getPixelForValue:function(n,t,i){var r=this,u=null,f,e,o,s,h;return t!==undefined&&i!==undefined&&(u=r.getLabelDiff(i,t)),u===null&&(n&&n.isValid||(n=r.parseTime(r.getRightValue(n))),n&&n.isValid&&n.isValid()&&(u=n.diff(r.firstTick,r.tickUnit,!0))),u!==null?(f=u!==0?u/r.scaleSizeInUnits:u,r.isHorizontal())?(e=r.width-(r.paddingLeft+r.paddingRight),o=e*f+r.paddingLeft,r.left+Math.round(o)):(s=r.height-(r.paddingTop+r.paddingBottom),h=s*f+r.paddingTop,r.top+Math.round(h)):void 0},getPixelForTick:function(n){return this.getPixelForValue(this.tickMoments[n],null,null)},getValueForPixel:function(n){var t=this,u=t.isHorizontal()?t.width-(t.paddingLeft+t.paddingRight):t.height-(t.paddingTop+t.paddingBottom),r=(n-(t.isHorizontal()?t.left+t.paddingLeft:t.top+t.paddingTop))/u;return r*=t.scaleSizeInUnits,t.firstTick.clone().add(i.duration(r,t.tickUnit).asSeconds(),"seconds")},parseTime:function(n){var t=this;return typeof t.options.time.parser=="string"?i(n,t.options.time.parser):typeof t.options.time.parser=="function"?t.options.time.parser(n):typeof n.getMonth=="function"||typeof n=="number"?i(n):n.isValid&&n.isValid()?n:typeof t.options.time.format!="string"&&t.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),t.options.time.format(n)):i(n,t.options.time.format)}});n.scaleService.registerScaleType("time",u,{position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},{"1":1}]},{},[7])(7)}),function(n){var u,i;n("body").hide();n.fn.extend({menufication:function(t){return u[t]&&y?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?(n.error("Method "+t+" does not exist for menufication"),void 0):u.init.apply(this,arguments)},hasClasses:function(n){var t=n.replace(/\s/g,"").split(","),r=this,i;for(i in t)if(jQuery(r).hasClass(t[i]))return!0;return!1},addClasses:function(n){var t=n.replace(/\s/g,"").split(","),r=this,i;for(i in t)jQuery(r).addClass(t[i])}});var a,v,t,w,e,c,l,f,b,s,h,k=!1,y=!1,p=!1,r="menufication",o=0;v={toggleElement:null,enableSwipe:!0,hideDefaultMenu:!1,showHeader:!0,customFixedHeader:null,menuText:"",headerLogo:"",triggerWidth:770,addHomeLink:!0,addHomeText:"Home",childMenuSupport:!0,childMenuSelector:"sub-menu, child-menu, children",activeClassSelector:"active-class, active",supportAndroidAbove:3.5,onlyMobile:!1,transitionDuration:600,scrollSpeed:.6,allowedTags:"DIV, NAV, UL, LI, A, P, H1, H2, H3, H4, SPAN",wrapTagsInList:"",addToFixedHolder:"",direction:"left",theme:"dark",menuLogo:"",disableSlideScaling:!1};u={init:function(u){y||i.utils.isBB()||i.utils.isOldIE(9)||(a=n(this),u||(u={}),t=n.extend({},v,u),(!t.onlyMobile||i.utils.isMobile())&&((!i.utils.hasTranslate3d()||i.utils.androidVersionIsBelow(t.supportAndroidAbove)||i.utils.isIE())&&(r+="-non-css3"),t.gestures=i.utils.isMobile()&&!i.utils.isIE()?{start:"touchstart",move:"touchmove",end:"touchend",click:"click",fastClick:"touchend"}:{start:"mousedown",move:"mousemove",end:"mouseup",click:"click",fastClick:"click"},i.utils.androidVersionIsBelow(t.supportAndroidAbove)&&(t.gestures.fastClick="click"),i.scrolling.setScrollHandlers(),t.triggerWidth?(n(window).bind("resize",function(){i.utils.checkTriggerWidth(n(window).width())}),i.utils.checkTriggerWidth(n(window).width())):i.init()))},openMenu:function(){e.addClass(r+"-transition-in");k=!0;w.bind(t.gestures.move,function(n){n.preventDefault()})},closeMenu:function(){e.removeClass(r+"-transition-in");k=!1;w.unbind()},toggleMenu:function(){k?u.closeMenu():u.openMenu()}};i={init:function(){i.utils.wrapBody([r+"-page-holder",r+"-inner-wrap",r+"-outer-wrap"]);e.addClass(t.theme).addClass(t.direction+"-direction");t.customFixedHeader?i.buildCustomFixedHeader():t.showHeader&&i.buildHeader();i.buildFixedHolder();i.buildMenu();i.addEvents();i.utils.isMobile()?i.scrolling.addBouncyScroll():l.addClass(r+"-scroll");y=!0;n(document).trigger("menufication-done",["done"])},buildHeader:function(){var u=n('<div id="'+r+'-top" />').append('<div id="'+r+'-btn"><p>'+t.menuText+"<\/p><\/div>");e.prepend(u).addClass(r+"-add-padding");t.toggleElement="#"+r+"-btn";t.headerLogo.length>0&&i.addHeaderLogo(u)},addHeaderLogo:function(i){var u=n('<center><img src="'+t.headerLogo+'" id="'+r+'-header-logo" /><\/center>');i.append(u)},buildCustomFixedHeader:function(){var i,u;n(t.customFixedHeader).hide().addClass(r+"-original-custom-fixed-header");i=n(t.customFixedHeader).clone();i.css("position","static");u=n('<div class="'+r+'-custom-top" />');i.show().removeClass(r+"-original-custom-fixed-header");e.prepend(u.append(i)).addClass(r+"-add-padding")},buildFixedHolder:function(){var i,u;if(t.addToFixedHolder&&t.addToFixedHolder.length>0){b=n('<div id="'+r+'-fixed-holder" />');i=t.addToFixedHolder.replace(/\s/g,"").split(",");for(u in i)b.append(n(i[u]));e.prepend(b)}},buildMenu:function(){t.hideDefaultMenu&&a.hide();var u=a.clone().removeAttr("id class");u=i.trimMenu(u);t.addHomeLink&&u.prepend('<li><a href="http://'+window.location.hostname+'">'+t.addHomeText+"<\/a><\/li>");"UL"===u.prop("tagName")?u.addClass(r+"-menu-level-0"):u.find("ul").first().addClass(r+"-menu-level-0").siblings("ul").addClass(r+"-menu-level-0");t.childMenuSelector&&t.childMenuSupport?i.buildChildMenus(u):i.removeChildMenus(u);t.menuLogo.length>0&&i.addMenuLogo(u);e.prepend(u);u.wrap('<div id="'+r+'-scroll-container" />');!i.utils.isIOS()&&i.utils.isMobile()||t.disableSlideScaling||u.wrap('<div id="'+r+'-transform-container" />');u.wrap('<nav id="'+r+'-nav" />').show();c=n("#"+r+"-nav");l=n("#"+r+"-scroll-container")},trimMenu:function(i){var f=t.activeClassSelector?t.activeClassSelector:"",u=t.childMenuSelector?t.childMenuSelector:"",e=t.allowedTags?t.allowedTags.replace(/\s/g,"").split(","):v.allowedTags;return i.find("*").each(function(){var i=n(this),o=i.prop("tagName"),s,h;if(-1===e.indexOf(o)||i.hasClass("skip-link"))return i.remove(),void 0;"A"===o&&(s=i.text().toLowerCase(),h=s.charAt(0).toUpperCase()+s.slice(1),i.text(h));t.wrapTagsInList===o&&i.wrap("li");i.hasClasses(u)?(i.removeAttr("class id"),i.addClasses(u)):i.hasClasses(f)?(i.removeAttr("class id"),i.addClass(r+"-active-class")):i.removeAttr("class id")}),i},addMenuLogo:function(i){var u=n('<center><img src="'+t.menuLogo+'" id="'+r+'-menu-logo" /><\/center>');i.prepend(u)},buildChildMenus:function(u){var f=t.childMenuSelector.replace(/\s/g,"").split(","),e;for(e in f)u.find("."+f[e]).each(function(){var i=n(this);i.removeAttr("id class");i.addClass(r+"-child-menu");i.parent().addClass(r+"-has-child-menu").bind(t.gestures.click,function(t){"A"!==t.target.nodeName&&(t.preventDefault(),n(this).toggleClass(r+"-child-menu-open"),i.toggle(),t.stopPropagation())})}),t.activeClassSelector&&i.toggleActiveClasses(u);i.countMenuLevel(u)},countMenuLevel:function(t){t.find("."+r+"-child-menu").each(function(){var t=n(this),i=t.parents("."+r+"-child-menu").length+1;t.addClass(r+"-menu-level-"+i)})},removeChildMenus:function(i){var u,f;if(!t.childMenuSupport){if(!t.childMenuSelector||t.childMenuSelector===v.childMenuSelector)return i.find("."+r+"-menu-level-0").children().each(function(){n(this).find("ul").remove()}),void 0;u=t.childMenuSelector.replace(/\s/g,"").split(",");for(f in u)i.find("."+u[f]).each(function(){n(this).remove()})}},toggleActiveClasses:function(i){i.find("."+r+"-has-child-menu").each(function(){var i=n(this);i.find("*").children("."+r+"-active-class").length>0&&(i.toggleClass(r+"-child-menu-open"),setTimeout(function(){i.addClass(r+"-child-menu-open");i.find("."+r+"-child-menu").first().show()},t.transitionDuration))})},addEvents:function(){t.toggleElement&&n(t.toggleElement).bind(t.gestures.fastClick,function(n){n.preventDefault();n.stopPropagation();u.toggleMenu()});t.enableSwipe&&i.utils.isMobile()&&i.enableSwipeEvent()},removeEvents:function(){n(t.toggleElement).unbind();l.unbind()},enableSwipeEvent:function(){var i,e,h,f,o,s=n("#"+r+"-outer-wrap");s.bind(t.gestures.start,function(n){h=(new Date).getTime();i=n.originalEvent.touches[0].pageX;e=n.originalEvent.touches[0].clientY});s.bind(t.gestures.move,function(n){f=n.originalEvent.touches[0].pageX;o=n.originalEvent.touches[0].clientY});s.bind(t.gestures.end,function(){var n=f>i?"right":"left",r=o-e>40||-40>o-e,s=f-i>90||-90>f-i,c=(new Date).getTime();if(!(c-h>600||r)&&s)switch(n){case"left":"left"===t.direction?u.closeMenu():u.openMenu();break;case"right":"left"===t.direction?u.openMenu():u.closeMenu()}})},prevDefault:function(n){n.preventDefault();n.stopPropagation()},scrolling:{scrollHandlers:{},addBouncyScroll:function(){s=document.getElementById(r+"-nav");l.bind(t.gestures.start,function(n){o=i.scrolling.scrollHandlers.getTop(s);var t=n.originalEvent.touches[0].pageY;h=t});l.bind(t.gestures.move,function(n){n.preventDefault();i.scrolling.checkTouchMove(n)});l.bind(t.gestures.end,function(){i.scrolling.checkScrollEffect()})},checkTouchMove:function(n){var t=n.originalEvent.touches[0].pageY;o=i.scrolling.scrollHandlers.getTop();i.scrolling.scrollHandlers.setTop(t);h=t},checkScrollEffect:function(){i.scrolling.setScrollData();i.scrolling.scrollHandlers.bounceBack()},setScrollHandlers:function(){i.scrolling.scrollHandlers=!i.utils.hasTranslate3d()||i.utils.androidVersionIsBelow(t.supportAndroidAbove)||i.utils.isIE()?{getTop:function(){return parseInt(getComputedStyle(s).top,10)},setTop:function(n){s.style.top=h>=n?o+1.1*(n-h)+"px":o-1.1*(h-n)+"px"},bounceBack:function(n,r,u){if(i.scrolling.isAtBottom()){var u=i.utils.isAndroid()?15:20;c.animate({top:-(f.navHeight-f.windowHeight-u)},t.transitionDuration)}else i.scrolling.isAtTop()&&c.animate({top:0},t.transitionDuration)}}:{getTop:function(){return new WebKitCSSMatrix(window.getComputedStyle(s).webkitTransform).m42},setTop:function(n){s.style.webkitTransform=h>=n?"translateY("+(o+(n-h)*t.scrollSpeed)+"px)":"translateY("+(o-(h-n)*t.scrollSpeed)+"px)"},bounceBack:function(n,u,e){if(i.scrolling.isAtBottom()){c.addClass(r+"-add-transition");var e=i.utils.isAndroid()?15:20;s.style.webkitTransform="translateY("+-(f.navHeight-f.windowHeight-e)+"px)";i.scrolling.removeTransitionClass(t.transitionDuration)}else i.scrolling.isAtTop()&&(c.addClass(r+"-add-transition"),s.style.webkitTransform="translateY(0px)",i.scrolling.removeTransitionClass(t.transitionDuration))}}},setScrollData:function(){f={navHeight:c.height(),windowHeight:n(window).height()}},isAtTop:function(){return o>0||0>o&&f.navHeight<f.windowHeight},isAtBottom:function(){return f.navHeight+o<f.windowHeight&&f.navHeight>f.windowHeight},removeTransitionClass:function(n){setTimeout(function(){c.removeClass(r+"-add-transition")},n)}},utils:{reset:function(){n("."+r+"-custom-top").hide();n("#"+r+"-top").hide();e.removeClass(r+"-add-padding");a.show();i.removeEvents();u.closeMenu();n("."+r+"-original-custom-fixed-header").show();n(document).trigger("menufication-reset",["done"])},reapply:function(){n("."+r+"-custom-top").show();n("#"+r+"-top").show();e.addClass(r+"-add-padding");t.hideDefaultMenu&&a.hide();i.addEvents();n("."+r+"-original-custom-fixed-header").hide();n(document).trigger("menufication-reapply",["done"])},checkTriggerWidth:function(n){t.triggerWidth>=n&&!p?(y?i.utils.reapply():i.init(),p=!0):n>t.triggerWidth&&p&&(p=!1,i.utils.reset())},wrapBody:function(t){var u,i;for(u in t){for(i=document.createElement("div"),i.id=t[u];document.body.firstChild;)i.appendChild(document.body.firstChild);document.body.appendChild(i)}n("body").show();w=n("#"+r+"-inner-wrap");e=n("#"+r+"-outer-wrap")},hasTranslate3d:function(){var t,n=document.createElement("p"),r={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"},i;document.body.insertBefore(n,null);for(i in r)void 0!==n.style[i]&&(n.style[i]="translate3d(1px,1px,1px)",t=window.getComputedStyle(n).getPropertyValue(r[i]));return document.body.removeChild(n),void 0!==t&&t.length>0&&"none"!==t},isMobile:function(){return navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)},isAndroid:function(){return navigator.userAgent.match(/Android/i)},isIOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},isIE:function(){return navigator.userAgent.match(/IEMobile/i)||-1!=navigator.appVersion.indexOf("MSIE")},isBB:function(){return navigator.userAgent.match(/BlackBerry|BB10|RIM/i)},isOldIE:function(n){var t=-1!=navigator.appVersion.indexOf("MSIE");return t&&n>parseFloat(navigator.appVersion.split("MSIE")[1])},androidVersionIsBelow:function(n){var t=navigator.userAgent,i;return t.indexOf("Android")>=0&&(i=parseFloat(t.slice(t.indexOf("Android")+8)),n>i)?!0:!1}}}}(jQuery);var AdvancedSearch=function(){var n=function(){toggleCheckBoxAll(".search-name-all",".search-name")};return{ready:n}}(),StatePostcode=function(){var n=function(){toggleCheckBoxAll(".search-state-all",".search-state");$(".search-state").on("click",function(){$("#StateRadioButton").prop("checked",!0);$(".postcode").val("")});$(".search-state-all").on("click",function(){$("#StateRadioButton").prop("checked",!0);$(".postcode").val("")});$("#PostcodeRadioButton").off().on("click",function(){$(".search-state-all").prop("checked",!0);$(".search-state").prop("checked",!1)});$("#StateRadioButton").off().on("click",function(){$(".postcode").val("")});$(".postcode").off().on("change",function(){$("#PostcodeRadioButton").prop("checked",!0);$(".search-state-all").prop("checked",!0);$(".search-state").prop("checked",!1)})};return{ready:n}}(),StatisticalQuery=function(){var n=function(){var t=$('input[name="Option"]:checked').val(),n;t==="NewAbns"?$("#Year").prop("disabled",!1):(n="Select year...",$("#Year").find("option:contains('"+n+"')").attr("selected",!0),$("#Year").prop("disabled",!0))},t=function(){n();$('input[name="Option"]').on("click",function(){n()})};return{ready:t}}(),StatisticalQueryResults=function(){var n=function(n){n+="";x=n.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";for(var t=/(\d+)(\d{3})/;t.test(x1);)x1=x1.replace(t,"$1,$2");return x1+x2},t=function(){var n="/Search/StatisticalQuery",i=$('a[href="'+n+'"]'),t=$("#Params").val();t&&$(i).attr("href",n+"?"+t)},i=function(){var t=$("#myChart");if(t.length!==0)var i=t[0].getContext("2d"),r=$("#ChartLabels").val().split(","),u=$("#ChartValues").val().split(","),f=$("#Caption").val(),e=new Chart(i,{type:"pie",data:{labels:r,datasets:[{label:f,data:u,backgroundColor:["rgba(82, 121, 57, 1)","rgba(132, 178, 57, 1)","rgba(107, 0, 74, 1)","rgba(66, 0, 33, 1)","rgba(255, 203, 107, 1)","rgba(41, 52, 57, 1)","rgba(255, 207, 0, 1)","rgba(82, 121, 57, 0.5)","rgba(66, 0, 33, 0.5)"],borderWidth:1}]},options:{responsive:!0,tooltips:{callbacks:{label:function(t,i){return i.labels[t.index]+": "+n(i.datasets[t.datasetIndex].data[t.index])}}}}})},r=function(){i();t()};return{ready:r}}();$(document).ready(function(){enforceInputRegex=function(n){var t=n.val();n.val(t.replace(/[^0-9,]/gi,""))};$(".comma-seperated-ABN-validate").on("input",function(){enforceInputRegex($(this))})})