14 lines
236 KiB
JavaScript
14 lines
236 KiB
JavaScript
"use strict";function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach(function(e){_defineProperty(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function _superPropGet(t,e,i,n){var r=_get2(_getPrototypeOf(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof r?function(t){return r.apply(i,t)}:r}function _get2(){return _get2="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,i){var n=_superPropBase(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(arguments.length<3?t:i):r.value}},_get2.apply(null,arguments)}function _superPropBase(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,a,o,s=[],l=!0,h=!1;try{if(a=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=a.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){h=!0,r=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(h)throw r}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _callSuper(t,e,i){return e=_getPrototypeOf(e),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(e,i||[],_getPrototypeOf(t).constructor):e.apply(t,i))}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _defineProperty(t,e,i){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_toPropertyKey(n.key),n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _createForOfIteratorHelper(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)
|
||
/*!
|
||
* Chart.js v4.5.1
|
||
* https://www.chartjs.org
|
||
* (c) 2025 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/}!function(t,e){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(void 0,function(){var t,e,i,n,r,a,o,s,l,h,u,c=Object.freeze({__proto__:null,get Colors(){return Xa},get Decimation(){return qa},get Filler(){return po},get Legend(){return bo},get SubTitle(){return wo},get Title(){return xo},get Tooltip(){return Vo}});function f(){}var d=function(){var t=0;return function(){return t++}}();function v(t){return null==t}function p(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function g(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function y(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function m(t,e){return y(t)?t:e}function b(t,e){return void 0===t?e:t}var _=function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e},x=function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t};function k(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function w(t,e,i,n){var r,a,o;if(p(t))if(a=t.length,n)for(r=a-1;r>=0;r--)e.call(i,t[r],r);else for(r=0;r<a;r++)e.call(i,t[r],r);else if(g(t))for(a=(o=Object.keys(t)).length,r=0;r<a;r++)e.call(i,t[o[r]],o[r])}function M(t,e){var i,n,r,a;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(r=t[i],a=e[i],r.datasetIndex!==a.datasetIndex||r.index!==a.index)return!1;return!0}function P(t){if(p(t))return t.map(P);if(g(t)){for(var e=Object.create(null),i=Object.keys(t),n=i.length,r=0;r<n;++r)e[i[r]]=P(t[i[r]]);return e}return t}function S(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function C(t,e,i,n){if(S(t)){var r=e[t],a=i[t];g(r)&&g(a)?O(r,a,n):e[t]=P(a)}}function O(t,e,i){var n=p(e)?e:[e],r=n.length;if(!g(t))return t;for(var a,o=(i=i||{}).merger||C,s=0;s<r;++s)if(g(a=n[s]))for(var l=Object.keys(a),h=0,u=l.length;h<u;++h)o(l[h],t,a,i);return t}function A(t,e){return O(t,e,{merger:D})}function D(t,e,i){if(S(t)){var n=e[t],r=i[t];g(n)&&g(r)?A(n,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=P(r))}}var T={"":function(t){return t},x:function(t){return t.x},y:function(t){return t.y}};function I(t){var e,i=[],n="",r=_createForOfIteratorHelper(t.split("."));try{for(r.s();!(e=r.n()).done;){(n+=e.value).endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="")}}catch(t){r.e(t)}finally{r.f()}return i}function L(t,e){var i=T[e]||(T[e]=function(t){var e=I(t);return function(t){var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(""===r)break;t=t&&t[r]}}catch(t){n.e(t)}finally{n.f()}return t}}(e));return i(t)}function R(t){return t.charAt(0).toUpperCase()+t.slice(1)}var E=function(t){return void 0!==t},F=function(t){return"function"==typeof t},z=function(t,e){if(t.size!==e.size)return!1;var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(!e.has(r))return!1}}catch(t){n.e(t)}finally{n.f()}return!0};function V(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}var B=Math.PI,H=2*B,j=H+B,W=Number.POSITIVE_INFINITY,N=B/180,Y=B/2,U=B/4,$=2*B/3,X=Math.log10,G=Math.sign;function K(t,e,i){return Math.abs(t-e)<i}function q(t){var e=Math.round(t);t=K(t,e,t/1e3)?e:t;var i=Math.pow(10,Math.floor(X(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function J(t){var e,i=[],n=Math.sqrt(t);for(e=1;e<n;e++)t%e==0&&(i.push(e),i.push(t/e));return n===(0|n)&&i.push(n),i.sort(function(t,e){return t-e}).pop(),i}function Z(t){return!function(t){return"symbol"==_typeof(t)||"object"==_typeof(t)&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Q(t,e){var i=Math.round(t);return i-e<=t&&i+e>=t}function tt(t,e,i){var n,r,a;for(n=0,r=t.length;n<r;n++)a=t[n][i],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function et(t){return t*(B/180)}function it(t){return t*(180/B)}function nt(t){if(y(t)){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}}function rt(t,e){var i=e.x-t.x,n=e.y-t.y,r=Math.sqrt(i*i+n*n),a=Math.atan2(n,i);return a<-.5*B&&(a+=H),{angle:a,distance:r}}function at(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ot(t,e){return(t-e+j)%H-B}function st(t){return(t%H+H)%H}function lt(t,e,i,n){var r=st(t),a=st(e),o=st(i),s=st(a-r),l=st(o-r),h=st(r-a),u=st(r-o);return r===a||r===o||n&&a===o||s>l&&h<u}function ht(t,e,i){return Math.max(e,Math.min(i,t))}function ut(t){return ht(t,-32768,32767)}function ct(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function ft(t,e,i){i=i||function(i){return t[i]<e};for(var n,r=t.length-1,a=0;r-a>1;)i(n=a+r>>1)?a=n:r=n;return{lo:a,hi:r}}var dt=function(t,e,i,n){return ft(t,i,n?function(n){var r=t[n][e];return r<i||r===i&&t[n+1][e]===i}:function(n){return t[n][e]<i})},vt=function(t,e,i){return ft(t,i,function(n){return t[n][e]>=i})};function pt(t,e,i){for(var n=0,r=t.length;n<r&&t[n]<e;)n++;for(;r>n&&t[r-1]>i;)r--;return n>0||r<t.length?t.slice(n,r):t}var gt=["push","pop","shift","splice","unshift"];function yt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),gt.forEach(function(e){var i="_onData"+R(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];var o=n.apply(this,r);return t._chartjs.listeners.forEach(function(t){"function"==typeof t[i]&&t[i].apply(t,r)}),o}})}))}function mt(t,e){var i=t._chartjs;if(i){var n=i.listeners,r=n.indexOf(e);-1!==r&&n.splice(r,1),n.length>0||(gt.forEach(function(e){delete t[e]}),delete t._chartjs)}}function bt(t){var e=new Set(t);return e.size===t.length?t:Array.from(e)}var _t="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function xt(t,e){var i=[],n=!1;return function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];i=a,n||(n=!0,_t.call(window,function(){n=!1,t.apply(e,i)}))}}function kt(t,e){var i;return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e?(clearTimeout(i),i=setTimeout(t,e,r)):t.apply(this,r),e}}var wt=function(t){return"start"===t?"left":"end"===t?"right":"center"},Mt=function(t,e,i){return"start"===t?e:"end"===t?i:(e+i)/2},Pt=function(t,e,i,n){return t===(n?"left":"right")?i:"center"===t?(e+i)/2:e};function St(t,e,i){var n=e.length,r=0,a=n;if(t._sorted){var o=t.iScale,s=t.vScale,l=t._parsed,h=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=o.axis,c=o.getUserBounds(),f=c.min,d=c.max,p=c.minDefined,g=c.maxDefined;if(p){if(r=Math.min(dt(l,u,f).lo,i?n:dt(e,u,o.getPixelForValue(f)).lo),h){var y=l.slice(0,r+1).reverse().findIndex(function(t){return!v(t[s.axis])});r-=Math.max(0,y)}r=ht(r,0,n-1)}if(g){var m=Math.max(dt(l,o.axis,d,!0).hi+1,i?0:dt(e,u,o.getPixelForValue(d),!0).hi+1);if(h){var b=l.slice(m-1).findIndex(function(t){return!v(t[s.axis])});m+=Math.max(0,b)}a=ht(m,r,n)-r}else a=n-r}return{start:r,count:a}}function Ct(t){var e=t.xScale,i=t.yScale,n=t._scaleRanges,r={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=r,!0;var a=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,r),a}var Ot=function(){return _createClass(function t(){_classCallCheck(this,t),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0},[{key:"_notify",value:function(t,e,i,n){var r=e.listeners[n],a=e.duration;r.forEach(function(n){return n({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)})})}},{key:"_refresh",value:function(){var t=this;this._request||(this._running=!0,this._request=_t.call(window,function(){t._update(),t._request=null,t._running&&t._refresh()}))}},{key:"_update",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),i=0;this._charts.forEach(function(n,r){if(n.running&&n.items.length){for(var a,o=n.items,s=o.length-1,l=!1;s>=0;--s)(a=o[s])._active?(a._total>n.duration&&(n.duration=a._total),a.tick(e),l=!0):(o[s]=o[o.length-1],o.pop());l&&(r.draw(),t._notify(r,n,e,"progress")),o.length||(n.running=!1,t._notify(r,n,e,"complete"),n.initial=!1),i+=o.length}}),this._lastDate=e,0===i&&(this._running=!1)}},{key:"_getAnims",value:function(t){var e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}},{key:"listen",value:function(t,e,i){this._getAnims(t).listeners[e].push(i)}},{key:"add",value:function(t,e){var i;e&&e.length&&(i=this._getAnims(t).items).push.apply(i,_toConsumableArray(e))}},{key:"has",value:function(t){return this._getAnims(t).items.length>0}},{key:"start",value:function(t){var e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(function(t,e){return Math.max(t,e._duration)},0),this._refresh())}},{key:"running",value:function(t){if(!this._running)return!1;var e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}},{key:"stop",value:function(t){var e=this._charts.get(t);if(e&&e.items.length){for(var i=e.items,n=i.length-1;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}}},{key:"remove",value:function(t){return this._charts.delete(t)}}])}(),At=new Ot;
|
||
/*!
|
||
* @kurkle/color v0.3.2
|
||
* https://github.com/kurkle/color#readme
|
||
* (c) 2023 Jukka Kurkela
|
||
* Released under the MIT License
|
||
*/
|
||
function Dt(t){return t+.5|0}var Tt=function(t,e,i){return Math.max(Math.min(t,i),e)};function It(t){return Tt(Dt(2.55*t),0,255)}function Lt(t){return Tt(Dt(255*t),0,255)}function Rt(t){return Tt(Dt(t/2.55)/100,0,1)}function Et(t){return Tt(Dt(100*t),0,100)}var Ft={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zt=_toConsumableArray("0123456789ABCDEF"),Vt=function(t){return zt[15&t]},Bt=function(t){return zt[(240&t)>>4]+zt[15&t]},Ht=function(t){return(240&t)>>4==(15&t)};var jt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Wt(t,e,i){var n=e*Math.min(i,1-i),r=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+t/30)%12;return i-n*Math.max(Math.min(r-3,9-r,1),-1)};return[r(0),r(8),r(4)]}function Nt(t,e,i){var n=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(n+t/60)%6;return i-i*e*Math.max(Math.min(r,4-r,1),0)};return[n(5),n(3),n(1)]}function Yt(t,e,i){var n,r=Wt(t,1,.5);for(e+i>1&&(e*=n=1/(e+i),i*=n),n=0;n<3;n++)r[n]*=1-e-i,r[n]+=e;return r}function Ut(t){var e,i,n,r=t.r/255,a=t.g/255,o=t.b/255,s=Math.max(r,a,o),l=Math.min(r,a,o),h=(s+l)/2;return s!==l&&(n=s-l,i=h>.5?n/(2-s-l):n/(s+l),e=function(t,e,i,n,r){return t===r?(e-i)/n+(e<i?6:0):e===r?(i-t)/n+2:(t-e)/n+4}(r,a,o,n,s),e=60*e+.5),[0|e,i||0,h]}function $t(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(Lt)}function Xt(t,e,i){return $t(Wt,t,e,i)}function Gt(t){return(t%360+360)%360}var Kt,qt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Jt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};var Zt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Qt=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},te=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ee(t,e,i){if(t){var n=Ut(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=Xt(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function ie(t,e){return t?Object.assign(e||{},t):t}function ne(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Lt(t[3]))):(e=ie(t,{r:0,g:0,b:0,a:1})).a=Lt(e.a),e}function re(t){return"r"===t.charAt(0)?function(t){var e,i,n,r=Zt.exec(t),a=255;if(r){if(r[7]!==e){var o=+r[7];a=r[8]?It(o):Tt(255*o,0,255)}return e=+r[1],i=+r[3],n=+r[5],{r:e=255&(r[2]?It(e):Tt(e,0,255)),g:i=255&(r[4]?It(i):Tt(i,0,255)),b:n=255&(r[6]?It(n):Tt(n,0,255)),a:a}}}(t):function(t){var e,i=jt.exec(t),n=255;if(i){i[5]!==e&&(n=i[6]?It(+i[5]):Lt(+i[5]));var r=Gt(+i[2]),a=+i[3]/100,o=+i[4]/100;return e="hwb"===i[1]?function(t,e,i){return $t(Yt,t,e,i)}(r,a,o):"hsv"===i[1]?function(t,e,i){return $t(Nt,t,e,i)}(r,a,o):Xt(r,a,o),{r:e[0],g:e[1],b:e[2],a:n}}}(t)}var ae=function(){function t(e){if(_classCallCheck(this,t),e instanceof t)return e;var i,n,r,a,o=_typeof(e);"object"===o?i=ne(e):"string"===o&&(a=(n=e).length,"#"===n[0]&&(4===a||5===a?r={r:255&17*Ft[n[1]],g:255&17*Ft[n[2]],b:255&17*Ft[n[3]],a:5===a?17*Ft[n[4]]:255}:7!==a&&9!==a||(r={r:Ft[n[1]]<<4|Ft[n[2]],g:Ft[n[3]]<<4|Ft[n[4]],b:Ft[n[5]]<<4|Ft[n[6]],a:9===a?Ft[n[7]]<<4|Ft[n[8]]:255})),i=r||function(t){Kt||(Kt=function(){var t,e,i,n,r,a={},o=Object.keys(Jt),s=Object.keys(qt);for(t=0;t<o.length;t++){for(n=r=o[t],e=0;e<s.length;e++)i=s[e],r=r.replace(i,qt[i]);i=parseInt(Jt[n],16),a[r]=[i>>16&255,i>>8&255,255&i]}return a}(),Kt.transparent=[0,0,0,0]);var e=Kt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(e)||re(e)),this._rgb=i,this._valid=!!i}return _createClass(t,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var t=ie(this._rgb);return t&&(t.a=Rt(t.a)),t},set:function(t){this._rgb=ne(t)}},{key:"rgbString",value:function(){return this._valid?(t=this._rgb)&&(t.a<255?"rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(Rt(t.a),")"):"rgb(".concat(t.r,", ").concat(t.g,", ").concat(t.b,")")):void 0;var t}},{key:"hexString",value:function(){return this._valid?function(t){var e=function(t){return Ht(t.r)&&Ht(t.g)&&Ht(t.b)&&Ht(t.a)}(t)?Vt:Bt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+function(t,e){return t<255?e(t):""}(t.a,e):void 0}(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(t){if(t){var e=Ut(t),i=e[0],n=Et(e[1]),r=Et(e[2]);return t.a<255?"hsla(".concat(i,", ").concat(n,"%, ").concat(r,"%, ").concat(Rt(t.a),")"):"hsl(".concat(i,", ").concat(n,"%, ").concat(r,"%)")}}(this._rgb):void 0}},{key:"mix",value:function(t,e){if(t){var i,n=this.rgb,r=t.rgb,a=e===i?.5:e,o=2*a-1,s=n.a-r.a,l=((o*s==-1?o:(o+s)/(1+o*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}},{key:"interpolate",value:function(t,e){return t&&(this._rgb=function(t,e,i){var n=te(Rt(t.r)),r=te(Rt(t.g)),a=te(Rt(t.b));return{r:Lt(Qt(n+i*(te(Rt(e.r))-n))),g:Lt(Qt(r+i*(te(Rt(e.g))-r))),b:Lt(Qt(a+i*(te(Rt(e.b))-a))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}},{key:"clone",value:function(){return new t(this.rgb)}},{key:"alpha",value:function(t){return this._rgb.a=Lt(t),this}},{key:"clearer",value:function(t){return this._rgb.a*=1-t,this}},{key:"greyscale",value:function(){var t=this._rgb,e=Dt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}},{key:"opaquer",value:function(t){return this._rgb.a*=1+t,this}},{key:"negate",value:function(){var t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}},{key:"lighten",value:function(t){return ee(this._rgb,2,t),this}},{key:"darken",value:function(t){return ee(this._rgb,2,-t),this}},{key:"saturate",value:function(t){return ee(this._rgb,1,t),this}},{key:"desaturate",value:function(t){return ee(this._rgb,1,-t),this}},{key:"rotate",value:function(t){return function(t,e){var i=Ut(t);i[0]=Gt(i[0]+e),i=Xt(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}])}();function oe(t){if(t&&"object"==_typeof(t)){var e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function se(t){return oe(t)?t:new ae(t)}function le(t){return oe(t)?t:new ae(t).saturate(.5).darken(.1).hexString()}var he=["x","y","borderWidth","radius","tension"],ue=["color","borderColor","backgroundColor"],ce=new Map;function fe(t,e,i){return function(t,e){e=e||{};var i=t+JSON.stringify(e),n=ce.get(i);return n||(n=new Intl.NumberFormat(t,e),ce.set(i,n)),n}(e,i).format(t)}var de={values:function(t){return p(t)?t:""+t},numeric:function(t,e,i){if(0===t)return"0";var n,r=this.chart.options.locale,a=t;if(i.length>1){var o=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(o<1e-4||o>1e15)&&(n="scientific"),a=function(t,e){var i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}var s=X(Math.abs(a)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),h={notation:n,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(h,this.options.ticks.format),fe(t,r,h)},logarithmic:function(t,e,i){if(0===t)return"0";var n=i[e].significand||t/Math.pow(10,Math.floor(X(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?de.numeric.call(this,t,e,i):""}},ve={formatters:de},pe=Object.create(null),ge=Object.create(null);function ye(t,e){if(!e)return t;for(var i=e.split("."),n=0,r=i.length;n<r;++n){var a=i[n];t=t[a]||(t[a]=Object.create(null))}return t}function me(t,e,i){return"string"==typeof e?O(ye(t,e),i):O(ye(t,""),e)}var be=function(){return _createClass(function t(e,i){_classCallCheck(this,t),this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=function(t){return t.chart.platform.getDevicePixelRatio()},this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=function(t,e){return le(e.backgroundColor)},this.hoverBorderColor=function(t,e){return le(e.borderColor)},this.hoverColor=function(t,e){return le(e.color)},this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(i)},[{key:"set",value:function(t,e){return me(this,t,e)}},{key:"get",value:function(t){return ye(this,t)}},{key:"describe",value:function(t,e){return me(ge,t,e)}},{key:"override",value:function(t,e){return me(pe,t,e)}},{key:"route",value:function(t,e,i,n){var r=ye(this,t),a=ye(this,i),o="_"+e;Object.defineProperties(r,_defineProperty(_defineProperty({},o,{value:r[e],writable:!0}),e,{enumerable:!0,get:function(){var t=this[o],e=a[n];return g(t)?Object.assign({},e,t):b(t,e)},set:function(t){this[o]=t}}))}},{key:"apply",value:function(t){var e=this;t.forEach(function(t){return t(e)})}}])}(),_e=new be({_scriptable:function(t){return!t.startsWith("on")},_indexable:function(t){return"events"!==t},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(t){return"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}}),t.set("animations",{colors:{type:"color",properties:ue},numbers:{type:"number",properties:he}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:function(t){return 0|t}}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:function(t,e){return e.lineWidth},tickColor:function(t,e){return e.color},offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ve.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:function(t){return!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t},_indexable:function(t){return"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:function(t){return"backdropPadding"!==t&&"callback"!==t},_indexable:function(t){return"backdropPadding"!==t}})}]);function xe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ke(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function we(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}var Me=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};function Pe(t,e){return Me(t).getPropertyValue(e)}var Se=["top","right","bottom","left"];function Ce(t,e,i){var n={};i=i?"-"+i:"";for(var r=0;r<4;r++){var a=Se[r];n[a]=parseFloat(t[e+"-"+a+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Oe(t,e){if("native"in t)return t;var i=e.canvas,n=e.currentDevicePixelRatio,r=Me(i),a="border-box"===r.boxSizing,o=Ce(r,"padding"),s=Ce(r,"border","width"),l=function(t,e){var i,n,r=t.touches,a=r&&r.length?r[0]:t,o=a.offsetX,s=a.offsetY,l=!1;if(function(t,e,i){return(t>0||e>0)&&(!i||!i.shadowRoot)}(o,s,t.target))i=o,n=s;else{var h=e.getBoundingClientRect();i=a.clientX-h.left,n=a.clientY-h.top,l=!0}return{x:i,y:n,box:l}}(t,i),h=l.x,u=l.y,c=l.box,f=o.left+(c&&s.left),d=o.top+(c&&s.top),v=e.width,p=e.height;return a&&(v-=o.width+s.width,p-=o.height+s.height),{x:Math.round((h-f)/v*i.width/n),y:Math.round((u-d)/p*i.height/n)}}var Ae=function(t){return Math.round(10*t)/10};function De(t,e,i,n){var r=Me(t),a=Ce(r,"margin"),o=we(r.maxWidth,t,"clientWidth")||W,s=we(r.maxHeight,t,"clientHeight")||W,l=function(t,e,i){var n,r;if(void 0===e||void 0===i){var a=t&&ke(t);if(a){var o=a.getBoundingClientRect(),s=Me(a),l=Ce(s,"border","width"),h=Ce(s,"padding");e=o.width-h.width-l.width,i=o.height-h.height-l.height,n=we(s.maxWidth,a,"clientWidth"),r=we(s.maxHeight,a,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||W,maxHeight:r||W}}(t,e,i),h=l.width,u=l.height;if("content-box"===r.boxSizing){var c=Ce(r,"border","width"),f=Ce(r,"padding");h-=f.width+c.width,u-=f.height+c.height}return h=Math.max(0,h-a.width),u=Math.max(0,n?h/n:u-a.height),h=Ae(Math.min(h,o,l.maxWidth)),u=Ae(Math.min(u,s,l.maxHeight)),h&&!u&&(u=Ae(h/2)),(void 0!==e||void 0!==i)&&n&&l.height&&u>l.height&&(u=l.height,h=Ae(Math.floor(u*n))),{width:h,height:u}}function Te(t,e,i){var n=e||1,r=Ae(t.height*n),a=Ae(t.width*n);t.height=Ae(t.height),t.width=Ae(t.width);var o=t.canvas;return o.style&&(i||!o.style.height&&!o.style.width)&&(o.style.height="".concat(t.height,"px"),o.style.width="".concat(t.width,"px")),(t.currentDevicePixelRatio!==n||o.height!==r||o.width!==a)&&(t.currentDevicePixelRatio=n,o.height=r,o.width=a,t.ctx.setTransform(n,0,0,n,0,0),!0)}var Ie=function(){var t=!1;try{var e={get passive(){return t=!0,!1}};xe()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Le(t,e){var i=Pe(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Re(t){return!t||v(t.size)||v(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Ee(t,e,i,n,r){var a=e[r];return a||(a=e[r]=t.measureText(r).width,i.push(r)),a>n&&(n=a),n}function Fe(t,e,i,n){var r=(n=n||{}).data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},a=n.garbageCollect=[],n.font=e),t.save(),t.font=e;var o,s,l,h,u,c=0,f=i.length;for(o=0;o<f;o++)if(null==(h=i[o])||p(h)){if(p(h))for(s=0,l=h.length;s<l;s++)null==(u=h[s])||p(u)||(c=Ee(t,r,a,c,u))}else c=Ee(t,r,a,c,h);t.restore();var d=a.length/2;if(d>i.length){for(o=0;o<d;o++)delete r[a[o]];a.splice(0,d)}return c}function ze(t,e,i){var n=t.currentDevicePixelRatio,r=0!==i?Math.max(i/2,.5):0;return Math.round((e-r)*n)/n+r}function Ve(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Be(t,e,i,n){He(t,e,i,n,null)}function He(t,e,i,n,r){var a,o,s,l,h,u,c,f,d=e.pointStyle,v=e.rotation,p=e.radius,g=(v||0)*N;if(d&&"object"==_typeof(d)&&("[object HTMLImageElement]"===(a=d.toString())||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(i,n),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),d){default:r?t.ellipse(i,n,r/2,p,0,0,H):t.arc(i,n,p,0,H),t.closePath();break;case"triangle":u=r?r/2:p,t.moveTo(i+Math.sin(g)*u,n-Math.cos(g)*p),g+=$,t.lineTo(i+Math.sin(g)*u,n-Math.cos(g)*p),g+=$,t.lineTo(i+Math.sin(g)*u,n-Math.cos(g)*p),t.closePath();break;case"rectRounded":l=p-(h=.516*p),o=Math.cos(g+U)*l,c=Math.cos(g+U)*(r?r/2-h:l),s=Math.sin(g+U)*l,f=Math.sin(g+U)*(r?r/2-h:l),t.arc(i-c,n-s,h,g-B,g-Y),t.arc(i+f,n-o,h,g-Y,g),t.arc(i+c,n+s,h,g,g+Y),t.arc(i-f,n+o,h,g+Y,g+B),t.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*p,u=r?r/2:l,t.rect(i-u,n-l,2*u,2*l);break}g+=U;case"rectRot":c=Math.cos(g)*(r?r/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,f=Math.sin(g)*(r?r/2:p),t.moveTo(i-c,n-s),t.lineTo(i+f,n-o),t.lineTo(i+c,n+s),t.lineTo(i-f,n+o),t.closePath();break;case"crossRot":g+=U;case"cross":c=Math.cos(g)*(r?r/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,f=Math.sin(g)*(r?r/2:p),t.moveTo(i-c,n-s),t.lineTo(i+c,n+s),t.moveTo(i+f,n-o),t.lineTo(i-f,n+o);break;case"star":c=Math.cos(g)*(r?r/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,f=Math.sin(g)*(r?r/2:p),t.moveTo(i-c,n-s),t.lineTo(i+c,n+s),t.moveTo(i+f,n-o),t.lineTo(i-f,n+o),g+=U,c=Math.cos(g)*(r?r/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,f=Math.sin(g)*(r?r/2:p),t.moveTo(i-c,n-s),t.lineTo(i+c,n+s),t.moveTo(i+f,n-o),t.lineTo(i-f,n+o);break;case"line":o=r?r/2:Math.cos(g)*p,s=Math.sin(g)*p,t.moveTo(i-o,n-s),t.lineTo(i+o,n+s);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(g)*(r?r/2:p),n+Math.sin(g)*p);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function je(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function We(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ne(t){t.restore()}function Ye(t,e,i,n,r){if(!e)return t.lineTo(i.x,i.y);if("middle"===r){var a=(e.x+i.x)/2;t.lineTo(a,e.y),t.lineTo(a,i.y)}else"after"===r!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Ue(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function $e(t,e,i,n,r){if(r.strikethrough||r.underline){var a=t.measureText(n),o=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,l=i-a.actualBoundingBoxAscent,h=i+a.actualBoundingBoxDescent,u=r.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,u),t.lineTo(s,u),t.stroke()}}function Xe(t,e){var i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Ge(t,e,i,n,r){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=p(e)?e:[e],h=s.strokeWidth>0&&""!==s.strokeColor;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),v(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),a=0;a<l.length;++a)o=l[a],s.backdrop&&Xe(t,s.backdrop),h&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),v(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(o,i,n,s.maxWidth)),t.fillText(o,i,n,s.maxWidth),$e(t,i,n,o,s),n+=Number(r.lineHeight);t.restore()}function Ke(t,e){var i=e.x,n=e.y,r=e.w,a=e.h,o=e.radius;t.arc(i+o.topLeft,n+o.topLeft,o.topLeft,1.5*B,B,!0),t.lineTo(i,n+a-o.bottomLeft),t.arc(i+o.bottomLeft,n+a-o.bottomLeft,o.bottomLeft,B,Y,!0),t.lineTo(i+r-o.bottomRight,n+a),t.arc(i+r-o.bottomRight,n+a-o.bottomRight,o.bottomRight,Y,0,!0),t.lineTo(i+r,n+o.topRight),t.arc(i+r-o.topRight,n+o.topRight,o.topRight,0,-Y,!0),t.lineTo(i+o.topLeft,n)}function qe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],i=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return t[0]},r=(arguments.length>2?arguments[2]:void 0)||t;void 0===i&&(i=si("_fallback",t));var a=_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Symbol.toStringTag,"Object"),"_cacheable",!0),"_scopes",t),"_rootScopes",r),"_fallback",i),"_getTarget",n),"override",function(n){return qe([n].concat(_toConsumableArray(t)),e,r,i)});return new Proxy(a,{deleteProperty:function(e,i){return delete e[i],delete e._keys,delete t[0][i],!0},get:function(i,n){return ei(i,n,function(){return function(t,e,i,n){var r,a,o=_createForOfIteratorHelper(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(void 0!==(r=si(Qe(s,t),i)))return ti(t,r)?ai(i,n,t,r):r}}catch(t){o.e(t)}finally{o.f()}}(n,e,t,i)})},getOwnPropertyDescriptor:function(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf:function(){return Reflect.getPrototypeOf(t[0])},has:function(t,e){return li(t).includes(e)},ownKeys:function(t){return li(t)},set:function(t,e,i){var r=t._storage||(t._storage=n());return t[e]=r[e]=i,delete t._keys,!0}})}function Je(t,e,i,n){var r={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ze(t,n),setContext:function(e){return Je(t,e,i,n)},override:function(r){return Je(t.override(r),e,i,n)}};return new Proxy(r,{deleteProperty:function(e,i){return delete e[i],delete t[i],!0},get:function(t,e,i){return ei(t,e,function(){return function(t,e,i){var n=t._proxy,r=t._context,a=t._subProxy,o=t._descriptors,s=n[e];return F(s)&&o.isScriptable(e)&&(s=function(t,e,i,n){var r=i._proxy,a=i._context,o=i._subProxy,s=i._stack;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);var l=e(a,o||n);return s.delete(t),ti(t,l)&&(l=ai(r._scopes,r,t,l)),l}(e,s,t,i)),p(s)&&s.length&&(s=function(t,e,i,n){var r=i._proxy,a=i._context,o=i._subProxy,s=i._descriptors;if(void 0!==a.index&&n(t))return e[a.index%e.length];if(g(e[0])){var l=e,h=r._scopes.filter(function(t){return t!==l});e=[];var u,c=_createForOfIteratorHelper(l);try{for(c.s();!(u=c.n()).done;){var f=ai(h,r,t,u.value);e.push(Je(f,a,o&&o[t],s))}}catch(t){c.e(t)}finally{c.f()}}return e}(e,s,t,o.isIndexable)),ti(e,s)&&(s=Je(s,r,a&&a[e],o)),s}(t,e,i)})},getOwnPropertyDescriptor:function(e,i){return e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i)},getPrototypeOf:function(){return Reflect.getPrototypeOf(t)},has:function(e,i){return Reflect.has(t,i)},ownKeys:function(){return Reflect.ownKeys(t)},set:function(e,i,n){return t[i]=n,delete e[i],!0}})}function Ze(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},i=t._scriptable,n=void 0===i?e.scriptable:i,r=t._indexable,a=void 0===r?e.indexable:r,o=t._allKeys;return{allKeys:void 0===o?e.allKeys:o,scriptable:n,indexable:a,isScriptable:F(n)?n:function(){return n},isIndexable:F(a)?a:function(){return a}}}var Qe=function(t,e){return t?t+R(e):e},ti=function(t,e){return g(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object)};function ei(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];var n=i();return t[e]=n,n}function ii(t,e,i){return F(t)?t(e,i):t}var ni=function(t,e){return!0===t?e:"string"==typeof t?L(e,t):void 0};function ri(t,e,i,n,r){var a,o=_createForOfIteratorHelper(e);try{for(o.s();!(a=o.n()).done;){var s=a.value,l=ni(i,s);if(l){t.add(l);var h=ii(l._fallback,i,r);if(void 0!==h&&h!==i&&h!==n)return h}else if(!1===l&&void 0!==n&&i!==n)return null}}catch(t){o.e(t)}finally{o.f()}return!1}function ai(t,e,i,n){var r=e._rootScopes,a=ii(e._fallback,i,n),o=[].concat(_toConsumableArray(t),_toConsumableArray(r)),s=new Set;s.add(n);var l=oi(s,o,i,a||i,n);return null!==l&&(void 0===a||a===i||null!==(l=oi(s,o,a,l,n)))&&qe(Array.from(s),[""],r,a,function(){return function(t,e,i){var n=t._getTarget();e in n||(n[e]={});var r=n[e];return p(r)&&g(i)?i:r||{}}(e,i,n)})}function oi(t,e,i,n,r){for(;i;)i=ri(t,e,i,n,r);return i}function si(t,e){var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r){var a=r[t];if(void 0!==a)return a}}}catch(t){n.e(t)}finally{n.f()}}function li(t){var e=t._keys;return e||(e=t._keys=function(t){var e,i=new Set,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r,a=e.value,o=_createForOfIteratorHelper(Object.keys(a).filter(function(t){return!t.startsWith("_")}));try{for(o.s();!(r=o.n()).done;){var s=r.value;i.add(s)}}catch(t){o.e(t)}finally{o.f()}}}catch(t){n.e(t)}finally{n.f()}return Array.from(i)}(t._scopes)),e}function hi(t,e,i,n){var r,a,o,s,l=t.iScale,h=this._parsing.key,u=void 0===h?"r":h,c=new Array(n);for(r=0,a=n;r<a;++r)s=e[o=r+i],c[r]={r:l.parse(L(s,u),o)};return c}var ui=Number.EPSILON||1e-14,ci=function(t,e){return e<t.length&&!t[e].skip&&t[e]},fi=function(t){return"x"===t?"y":"x"};function di(t,e,i,n){var r=t.skip?e:t,a=e,o=i.skip?e:i,s=at(a,r),l=at(o,a),h=s/(s+l),u=l/(s+l),c=n*(h=isNaN(h)?0:h),f=n*(u=isNaN(u)?0:u);return{previous:{x:a.x-c*(o.x-r.x),y:a.y-c*(o.y-r.y)},next:{x:a.x+f*(o.x-r.x),y:a.y+f*(o.y-r.y)}}}function vi(t){var e,i,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=fi(r),o=t.length,s=Array(o).fill(0),l=Array(o),h=ci(t,0);for(e=0;e<o;++e)if(i=n,n=h,h=ci(t,e+1),n){if(h){var u=h[r]-n[r];s[e]=0!==u?(h[a]-n[a])/u:0}l[e]=i?h?G(s[e-1])!==G(s[e])?0:(s[e-1]+s[e])/2:s[e-1]:s[e]}!function(t,e,i){for(var n,r,a,o,s,l=t.length,h=ci(t,0),u=0;u<l-1;++u)s=h,h=ci(t,u+1),s&&h&&(K(e[u],0,ui)?i[u]=i[u+1]=0:(n=i[u]/e[u],r=i[u+1]/e[u],(o=Math.pow(n,2)+Math.pow(r,2))<=9||(a=3/Math.sqrt(o),i[u]=n*a*e[u],i[u+1]=r*a*e[u])))}(t,s,l),function(t,e){for(var i,n,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",o=fi(a),s=t.length,l=ci(t,0),h=0;h<s;++h)if(n=r,r=l,l=ci(t,h+1),r){var u=r[a],c=r[o];n&&(i=(u-n[a])/3,r["cp1".concat(a)]=u-i,r["cp1".concat(o)]=c-i*e[h]),l&&(i=(l[a]-u)/3,r["cp2".concat(a)]=u+i,r["cp2".concat(o)]=c+i*e[h])}}(t,l,r)}function pi(t,e,i){return Math.max(Math.min(t,i),e)}function gi(t,e,i,n,r){var a,o,s,l;if(e.spanGaps&&(t=t.filter(function(t){return!t.skip})),"monotone"===e.cubicInterpolationMode)vi(t,r);else{var h=n?t[t.length-1]:t[0];for(a=0,o=t.length;a<o;++a)l=di(h,s=t[a],t[Math.min(a+1,o-(n?0:1))%o],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,h=s}e.capBezierPoints&&function(t,e){var i,n,r,a,o,s=je(t[0],e);for(i=0,n=t.length;i<n;++i)o=a,a=s,s=i<n-1&&je(t[i+1],e),a&&(r=t[i],o&&(r.cp1x=pi(r.cp1x,e.left,e.right),r.cp1y=pi(r.cp1y,e.top,e.bottom)),s&&(r.cp2x=pi(r.cp2x,e.left,e.right),r.cp2y=pi(r.cp2y,e.top,e.bottom)))}(t,i)}var yi=function(t){return 0===t||1===t},mi=function(t,e,i){return-Math.pow(2,10*(t-=1))*Math.sin((t-e)*H/i)},bi=function(t,e,i){return Math.pow(2,-10*t)*Math.sin((t-e)*H/i)+1},_i={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*Y)},easeOutSine:function(t){return Math.sin(t*Y)},easeInOutSine:function(t){return-.5*(Math.cos(B*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return yi(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1)))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){return yi(t)?t:mi(t,.075,.3)},easeOutElastic:function(t){return yi(t)?t:bi(t,.075,.3)},easeInOutElastic:function(t){var e=.1125;return yi(t)?t:t<.5?.5*mi(2*t,e,.45):.5+.5*bi(2*t-1,e,.45)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-_i.easeOutBounce(1-t)},easeOutBounce:function(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*_i.easeInBounce(2*t):.5*_i.easeOutBounce(2*t-1)+.5}};function xi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function ki(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function wi(t,e,i,n){var r={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},o=xi(t,r,i),s=xi(r,a,i),l=xi(a,e,i),h=xi(o,s,i),u=xi(s,l,i);return xi(h,u,i)}var Mi=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Pi=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Si(t,e){var i=(""+t).match(Mi);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}var Ci=function(t){return+t||0};function Oi(t,e){var i,n={},r=g(e),a=r?Object.keys(e):e,o=g(t)?r?function(i){return b(t[i],t[e[i]])}:function(e){return t[e]}:function(){return t},s=_createForOfIteratorHelper(a);try{for(s.s();!(i=s.n()).done;){var l=i.value;n[l]=Ci(o(l))}}catch(t){s.e(t)}finally{s.f()}return n}function Ai(t){return Oi(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Di(t){return Oi(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ti(t){var e=Ai(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ii(t,e){t=t||{},e=e||_e.font;var i=b(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));var n=b(t.style,e.style);n&&!(""+n).match(Pi)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);var r={family:b(t.family,e.family),lineHeight:Si(b(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:b(t.weight,e.weight),string:""};return r.string=Re(r),r}function Li(t,e,i,n){var r,a,o,s=!0;for(r=0,a=t.length;r<a;++r)if(void 0!==(o=t[r])&&(void 0!==e&&"function"==typeof o&&(o=o(e),s=!1),void 0!==i&&p(o)&&(o=o[i%o.length],s=!1),void 0!==o))return n&&!s&&(n.cacheable=!1),o}function Ri(t,e,i){var n=t.min,r=t.max,a=x(e,(r-n)/2),o=function(t,e){return i&&0===t?0:t+e};return{min:o(n,-Math.abs(a)),max:o(r,a)}}function Ei(t,e){return Object.assign(Object.create(t),e)}function Fi(t,e,i){return t?function(t,e){return{x:function(i){return t+t+e-i},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}}(e,i):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}}function zi(t,e){var i,n;"ltr"!==e&&"rtl"!==e||(n=[(i=t.canvas.style).getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Vi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Bi(t){return"angle"===t?{between:lt,compare:ot,normalize:st}:{between:ct,compare:function(t,e){return t-e},normalize:function(t){return t}}}function Hi(t){var e=t.start,i=t.end,n=t.count;return{start:e%n,end:i%n,loop:t.loop&&(i-e+1)%n==0,style:t.style}}function ji(t,e,i){if(!i)return[t];for(var n,r,a,o=i.property,s=i.start,l=i.end,h=e.length,u=Bi(o),c=u.compare,f=u.between,d=u.normalize,v=function(t,e,i){var n,r,a=i.property,o=i.start,s=i.end,l=Bi(a),h=l.between,u=l.normalize,c=e.length,f=t.start,d=t.end,v=t.loop;if(v){for(f+=c,d+=c,n=0,r=c;n<r&&h(u(e[f%c][a]),o,s);++n)f--,d--;f%=c,d%=c}return d<f&&(d+=c),{start:f,end:d,loop:v,style:t.style}}(t,e,i),p=v.start,g=v.end,y=v.loop,m=v.style,b=[],_=!1,x=null,k=function(){return _||f(s,a,n)&&0!==c(s,a)},w=function(){return!_||0===c(l,n)||f(l,a,n)},M=p,P=p;M<=g;++M)(r=e[M%h]).skip||(n=d(r[o]))!==a&&(_=f(n,s,l),null===x&&k()&&(x=0===c(n,s)?M:P),null!==x&&w()&&(b.push(Hi({start:x,end:M,loop:y,count:h,style:m})),x=null),P=M,a=n);return null!==x&&b.push(Hi({start:x,end:g,loop:y,count:h,style:m})),b}function Wi(t,e){for(var i=[],n=t.segments,r=0;r<n.length;r++){var a=ji(n[r],t.points,e);a.length&&i.push.apply(i,_toConsumableArray(a))}return i}function Ni(t,e){var i=t.points,n=t.options.spanGaps,r=i.length;if(!r)return[];var a=!!t._loop,o=function(t,e,i,n){var r=0,a=e-1;if(i&&!n)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,i&&(a+=r);a>r&&t[a%e].skip;)a--;return{start:r,end:a%=e}}(i,r,a,n),s=o.start,l=o.end;return Yi(t,!0===n?[{start:s,end:l,loop:a}]:function(t,e,i,n){var r,a=t.length,o=[],s=e,l=t[e];for(r=e+1;r<=i;++r){var h=t[r%a];h.skip||h.stop?l.skip||(n=!1,o.push({start:e%a,end:(r-1)%a,loop:n}),e=s=h.stop?r:null):(s=r,l.skip&&(e=r)),l=h}return null!==s&&o.push({start:e%a,end:s%a,loop:n}),o}(i,s,l<s?l+r:l,!!t._fullLoop&&0===s&&l===r-1),i,e)}function Yi(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){var r=t._chart.getContext(),a=Ui(t.options),o=t._datasetIndex,s=t.options.spanGaps,l=i.length,h=[],u=a,c=e[0].start,f=c;function d(t,e,n,r){var a=s?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=a;for(;i[e%l].skip;)e+=a;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:n,style:r}),u=r,c=e%l)}}var v,p=_createForOfIteratorHelper(e);try{for(p.s();!(v=p.n()).done;){var g=v.value;c=s?c:g.start;var y=void 0,m=i[c%l];for(f=c+1;f<=g.end;f++){var b=i[f%l];$i(y=Ui(n.setContext(Ei(r,{type:"segment",p0:m,p1:b,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),u)&&d(c,f-1,g.loop,u),m=b,u=y}c<f-1&&d(c,f-1,g.loop,u)}}catch(t){p.e(t)}finally{p.f()}return h}(t,e,i,n):e}function Ui(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function $i(t,e){if(!e)return!1;var i=[],n=function(t,e){return oe(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}function Xi(t,e,i){return t.options.clip?t[i]:e[i]}function Gi(t,e){var i=e._clip;if(i.disabled)return!1;var n=function(t,e){var i=t.xScale,n=t.yScale;return i&&n?{left:Xi(i,e,"left"),right:Xi(i,e,"right"),top:Xi(n,e,"top"),bottom:Xi(n,e,"bottom")}:e}(e,t.chartArea);return{left:!1===i.left?0:n.left-(!0===i.left?0:i.left),right:!1===i.right?t.width:n.right+(!0===i.right?0:i.right),top:!1===i.top?0:n.top-(!0===i.top?0:i.top),bottom:!1===i.bottom?t.height:n.bottom+(!0===i.bottom?0:i.bottom)}}var Ki=Object.freeze({__proto__:null,HALF_PI:Y,INFINITY:W,PI:B,PITAU:j,QUARTER_PI:U,RAD_PER_DEG:N,TAU:H,TWO_THIRDS_PI:$,_addGrace:Ri,_alignPixel:ze,_alignStartEnd:Mt,_angleBetween:lt,_angleDiff:ot,_arrayUnique:bt,_attachContext:Je,_bezierCurveTo:Ue,_bezierInterpolation:wi,_boundSegment:ji,_boundSegments:Wi,_capitalize:R,_computeSegments:Ni,_createResolver:qe,_decimalPlaces:nt,_deprecated:function(t,e,i,n){void 0!==e&&console.warn(t+': "'+i+'" is deprecated. Please use "'+n+'" instead')},_descriptors:Ze,_elementsEqual:M,_factorize:J,_filterBetween:pt,_getParentNode:ke,_getStartAndCountOfVisiblePoints:St,_int16Range:ut,_isBetween:ct,_isClickEvent:V,_isDomSupported:xe,_isPointInArea:je,_limitValue:ht,_longestText:Fe,_lookup:ft,_lookupByKey:dt,_measureText:Ee,_merger:C,_mergerIf:D,_normalizeAngle:st,_parseObjectDataRadialScale:hi,_pointInLine:xi,_readValueToProps:Oi,_rlookupByKey:vt,_scaleRangesChanged:Ct,_setMinAndMaxByKey:tt,_splitKey:I,_steppedInterpolation:ki,_steppedLineTo:Ye,_textX:Pt,_toLeftRightCenter:wt,_updateBezierControlPoints:gi,addRoundedRectPath:Ke,almostEquals:K,almostWhole:Q,callback:k,clearCanvas:Ve,clipArea:We,clone:P,color:se,createContext:Ei,debounce:kt,defined:E,distanceBetweenPoints:at,drawPoint:Be,drawPointLegend:He,each:w,easingEffects:_i,finiteOrDefault:m,fontString:function(t,e,i){return e+" "+t+"px "+i},formatNumber:fe,getAngleFromPoint:rt,getDatasetClipArea:Gi,getHoverColor:le,getMaximumSize:De,getRelativePosition:Oe,getRtlAdapter:Fi,getStyle:Pe,isArray:p,isFinite:y,isFunction:F,isNullOrUndef:v,isNumber:Z,isObject:g,isPatternOrGradient:oe,listenArrayEvents:yt,log10:X,merge:O,mergeIf:A,niceNum:q,noop:f,overrideTextDirection:zi,readUsedSize:Le,renderText:Ge,requestAnimFrame:_t,resolve:Li,resolveObjectKey:L,restoreTextDirection:Vi,retinaScale:Te,setsEqual:z,sign:G,splineCurve:di,splineCurveMonotone:vi,supportsEventListenerOptions:Ie,throttled:xt,toDegrees:it,toDimension:x,toFont:Ii,toFontString:Re,toLineHeight:Si,toPadding:Ti,toPercentage:_,toRadians:et,toTRBL:Ai,toTRBLCorners:Di,uid:d,unclipArea:Ne,unlistenArrayEvents:mt,valueOrDefault:b});function qi(t,e,i,n){var r=t.controller,a=t.data,o=t._sorted,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&e===s.axis&&"r"!==e&&o&&a.length){var h=s._reversePixels?vt:dt;if(!n){var u=h(a,e,i);if(l){var c=r._cachedMeta.vScale,f=t._parsed,d=f.slice(0,u.lo+1).reverse().findIndex(function(t){return!v(t[c.axis])});u.lo-=Math.max(0,d);var p=f.slice(u.hi).findIndex(function(t){return!v(t[c.axis])});u.hi+=Math.max(0,p)}return u}if(r._sharedOptions){var g=a[0],y="function"==typeof g.getRange&&g.getRange(e);if(y){var m=h(a,e,i-y),b=h(a,e,i+y);return{lo:m.lo,hi:b.hi}}}}return{lo:0,hi:a.length-1}}function Ji(t,e,i,n,r){for(var a=t.getSortedVisibleDatasetMetas(),o=i[e],s=0,l=a.length;s<l;++s)for(var h=a[s],u=h.index,c=h.data,f=qi(a[s],e,o,r),d=f.lo,v=f.hi,p=d;p<=v;++p){var g=c[p];g.skip||n(g,u,p)}}function Zi(t,e,i,n,r){var a=[];return r||t.isPointInArea(e)?(Ji(t,i,e,function(i,o,s){(r||je(i,t.chartArea,0))&&i.inRange(e.x,e.y,n)&&a.push({element:i,datasetIndex:o,index:s})},!0),a):a}function Qi(t,e,i,n,r,a){return a||t.isPointInArea(e)?"r"!==i||n?function(t,e,i,n,r,a){var o=[],s=function(t){var e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){var r=e?Math.abs(t.x-n.x):0,a=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(a,2))}}(i),l=Number.POSITIVE_INFINITY;return Ji(t,i,e,function(i,h,u){var c=i.inRange(e.x,e.y,r);if(!n||c){var f=i.getCenterPoint(r);if(a||t.isPointInArea(f)||c){var d=s(e,f);d<l?(o=[{element:i,datasetIndex:h,index:u}],l=d):d===l&&o.push({element:i,datasetIndex:h,index:u})}}}),o}(t,e,i,n,r,a):function(t,e,i,n){var r=[];return Ji(t,i,e,function(t,i,a){var o=t.getProps(["startAngle","endAngle"],n),s=o.startAngle,l=o.endAngle;lt(rt(t,{x:e.x,y:e.y}).angle,s,l)&&r.push({element:t,datasetIndex:i,index:a})}),r}(t,e,i,r):[]}function tn(t,e,i,n,r){var a=[],o="x"===i?"inXRange":"inYRange",s=!1;return Ji(t,i,e,function(t,n,l){t[o]&&t[o](e[i],r)&&(a.push({element:t,datasetIndex:n,index:l}),s=s||t.inRange(e.x,e.y,r))}),n&&!s?[]:a}var en={evaluateInteractionItems:Ji,modes:{index:function(t,e,i,n){var r=Oe(e,t),a=i.axis||"x",o=i.includeInvisible||!1,s=i.intersect?Zi(t,r,a,n,o):Qi(t,r,a,!1,n,o),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(function(t){var e=s[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset:function(t,e,i,n){var r=Oe(e,t),a=i.axis||"xy",o=i.includeInvisible||!1,s=i.intersect?Zi(t,r,a,n,o):Qi(t,r,a,!1,n,o);if(s.length>0){var l=s[0].datasetIndex,h=t.getDatasetMeta(l).data;s=[];for(var u=0;u<h.length;++u)s.push({element:h[u],datasetIndex:l,index:u})}return s},point:function(t,e,i,n){return Zi(t,Oe(e,t),i.axis||"xy",n,i.includeInvisible||!1)},nearest:function(t,e,i,n){var r=Oe(e,t),a=i.axis||"xy",o=i.includeInvisible||!1;return Qi(t,r,a,i.intersect,n,o)},x:function(t,e,i,n){return tn(t,Oe(e,t),"x",i.intersect,n)},y:function(t,e,i,n){return tn(t,Oe(e,t),"y",i.intersect,n)}}},nn=["left","top","right","bottom"];function rn(t,e){return t.filter(function(t){return t.pos===e})}function an(t,e){return t.filter(function(t){return-1===nn.indexOf(t.pos)&&t.box.axis===e})}function on(t,e){return t.sort(function(t,i){var n=e?i:t,r=e?t:i;return n.weight===r.weight?n.index-r.index:n.weight-r.weight})}function sn(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function ln(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function hn(t,e,i,n){var r=i.pos,a=i.box,o=t.maxPadding;if(!g(r)){i.size&&(t[r]-=i.size);var s=n[i.stack]||{size:0,count:1};s.size=Math.max(s.size,i.horizontal?a.height:a.width),i.size=s.size/s.count,t[r]+=i.size}a.getPadding&&ln(o,a.getPadding());var l=Math.max(0,e.outerWidth-sn(o,t,"left","right")),h=Math.max(0,e.outerHeight-sn(o,t,"top","bottom")),u=l!==t.w,c=h!==t.h;return t.w=l,t.h=h,i.horizontal?{same:u,other:c}:{same:c,other:u}}function un(t,e){var i=e.maxPadding;return function(t){var n={left:0,top:0,right:0,bottom:0};return t.forEach(function(t){n[t]=Math.max(e[t],i[t])}),n}(t?["left","right"]:["top","bottom"])}function cn(t,e,i,n){var r,a,o,s,l,h,u=[];for(r=0,a=t.length,l=0;r<a;++r){(s=(o=t[r]).box).update(o.width||e.w,o.height||e.h,un(o.horizontal,e));var c=hn(e,i,o,n),f=c.same,d=c.other;l|=f&&u.length,h=h||d,s.fullSize||u.push(o)}return l&&cn(u,e,i,n)||h}function fn(t,e,i,n,r){t.top=i,t.left=e,t.right=e+n,t.bottom=i+r,t.width=n,t.height=r}function dn(t,e,i,n){var r,a=i.padding,o=e.x,s=e.y,l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var h=r.value,u=h.box,c=n[h.stack]||{count:1,placed:0,weight:1},f=h.stackWeight/c.weight||1;if(h.horizontal){var d=e.w*f,v=c.size||u.height;E(c.start)&&(s=c.start),u.fullSize?fn(u,a.left,s,i.outerWidth-a.right-a.left,v):fn(u,e.left+c.placed,s,d,v),c.start=s,c.placed+=d,s=u.bottom}else{var p=e.h*f,g=c.size||u.width;E(c.start)&&(o=c.start),u.fullSize?fn(u,o,a.top,g,i.outerHeight-a.bottom-a.top):fn(u,o,e.top+c.placed,g,p),c.start=o,c.placed+=p,o=u.right}}}catch(t){l.e(t)}finally{l.f()}e.x=o,e.y=s}var vn={addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(t){e.draw(t)}}]},t.boxes.push(e)},removeBox:function(t,e){var i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure:function(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update:function(t,e,i,n){if(t){var r=Ti(t.options.layout.padding),a=Math.max(e-r.width,0),o=Math.max(i-r.height,0),s=function(t){var e=function(t){var e,i,n,r,a,o,s=[];for(e=0,i=(t||[]).length;e<i;++e){var l,h,u;r=(l=n=t[e]).position,a=(h=l.options).stack,o=void 0===(u=h.stackWeight)?1:u,s.push({index:e,box:n,pos:r,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&r+a,stackWeight:o})}return s}(t),i=on(e.filter(function(t){return t.box.fullSize}),!0),n=on(rn(e,"left"),!0),r=on(rn(e,"right")),a=on(rn(e,"top"),!0),o=on(rn(e,"bottom")),s=an(e,"x"),l=an(e,"y");return{fullSize:i,leftAndTop:n.concat(a),rightAndBottom:r.concat(l).concat(o).concat(s),chartArea:rn(e,"chartArea"),vertical:n.concat(r).concat(l),horizontal:a.concat(o).concat(s)}}(t.boxes),l=s.vertical,h=s.horizontal;w(t.boxes,function(t){"function"==typeof t.beforeLayout&&t.beforeLayout()});var u=l.reduce(function(t,e){return e.box.options&&!1===e.box.options.display?t:t+1},0)||1,c=Object.freeze({outerWidth:e,outerHeight:i,padding:r,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},r);ln(f,Ti(n));var d=Object.assign({maxPadding:f,w:a,h:o,x:r.left,y:r.top},r),v=function(t,e){var i,n,r,a=function(t){var e,i={},n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value,a=r.stack,o=r.pos,s=r.stackWeight;if(a&&nn.includes(o)){var l=i[a]||(i[a]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=s}}}catch(t){n.e(t)}finally{n.f()}return i}(t),o=e.vBoxMaxWidth,s=e.hBoxMaxHeight;for(i=0,n=t.length;i<n;++i){var l=(r=t[i]).box.fullSize,h=a[r.stack],u=h&&r.stackWeight/h.weight;r.horizontal?(r.width=u?u*o:l&&e.availableWidth,r.height=s):(r.width=o,r.height=u?u*s:l&&e.availableHeight)}return a}(l.concat(h),c);cn(s.fullSize,d,c,v),cn(l,d,c,v),cn(h,d,c,v)&&cn(l,d,c,v),function(t){var e=t.maxPadding;function i(i){var n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(d),dn(s.leftAndTop,d,c,v),d.x+=d.w,d.y+=d.h,dn(s.rightAndBottom,d,c,v),t.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},w(s.chartArea,function(e){var i=e.box;Object.assign(i,t.chartArea),i.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}}},pn=function(){return _createClass(function t(){_classCallCheck(this,t)},[{key:"acquireContext",value:function(t,e){}},{key:"releaseContext",value:function(t){return!1}},{key:"addEventListener",value:function(t,e,i){}},{key:"removeEventListener",value:function(t,e,i){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}},{key:"isAttached",value:function(t){return!0}},{key:"updateConfig",value:function(t){}}])}(),gn=function(t){function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,t),_createClass(e,[{key:"acquireContext",value:function(t){return t&&t.getContext&&t.getContext("2d")||null}},{key:"updateConfig",value:function(t){t.options.animation=!1}}])}(pn),yn="$chartjs",mn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},bn=function(t){return null===t||""===t},_n=!!Ie&&{passive:!0};function xn(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,_n)}function kn(t,e){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r===e||r.contains(e))return!0}}catch(t){n.e(t)}finally{n.f()}}function wn(t,e,i){var n=t.canvas,r=new MutationObserver(function(t){var e,r=!1,a=_createForOfIteratorHelper(t);try{for(a.s();!(e=a.n()).done;){var o=e.value;r=(r=r||kn(o.addedNodes,n))&&!kn(o.removedNodes,n)}}catch(t){a.e(t)}finally{a.f()}r&&i()});return r.observe(document,{childList:!0,subtree:!0}),r}function Mn(t,e,i){var n=t.canvas,r=new MutationObserver(function(t){var e,r=!1,a=_createForOfIteratorHelper(t);try{for(a.s();!(e=a.n()).done;){var o=e.value;r=(r=r||kn(o.removedNodes,n))&&!kn(o.addedNodes,n)}}catch(t){a.e(t)}finally{a.f()}r&&i()});return r.observe(document,{childList:!0,subtree:!0}),r}var Pn=new Map,Sn=0;function Cn(){var t=window.devicePixelRatio;t!==Sn&&(Sn=t,Pn.forEach(function(e,i){i.currentDevicePixelRatio!==t&&e()}))}function On(t,e,i){var n=t.canvas,r=n&&ke(n);if(r){var a=xt(function(t,e){var n=r.clientWidth;i(t,e),n<r.clientWidth&&i()},window),o=new ResizeObserver(function(t){var e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||a(i,n)});return o.observe(r),function(t,e){Pn.size||window.addEventListener("resize",Cn),Pn.set(t,e)}(t,a),o}}function An(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Pn.delete(t),Pn.size||window.removeEventListener("resize",Cn)}(t)}function Dn(t,e,i){var n=t.canvas,r=xt(function(e){null!==t.ctx&&i(function(t,e){var i=mn[t.type]||t.type,n=Oe(t,e),r=n.x,a=n.y;return{type:i,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==a?a:null}}(e,t))},t);return function(t,e,i){t&&t.addEventListener(e,i,_n)}(n,e,r),r}var Tn=function(t){function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,t),_createClass(e,[{key:"acquireContext",value:function(t,e){var i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(funct��� |