text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d0adc622"],{"00fd":function(t,e,i){var n=i("9e69"),s=Object.prototype,o=s.hasOwnProperty,r=s.toString,a=n?n.toStringTag:void 0;function l(t){var e=o.call(t,a),i=t[a];try{t[a]=void 0;var n=!0}catch(l){}var s=r.call(t);return n&&(e?t[a]=i:delete t[a]),s}t.exports=l},"03dd":function(t,e,i){var n=i("eac5"),s=i("57a5"),o=Object.prototype,r=o.hasOwnProperty;function a(t){if(!n(t))return s(t);var e=[];for(var i in Object(t))r.call(t,i)&&"constructor"!=i&&e.push(i);return e}t.exports=a},"0644":function(t,e,i){var n=i("3818"),s=1,o=4;function r(t){return n(t,s|o)}t.exports=r},"07c7":function(t,e){function i(){return!1}t.exports=i},"0801":function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defineChartComponent=void 0;const s=i("9b4a"),o=i("72dd"),r=n(i("e740")),a=n(i("bba4")),l=n(i("0644")),c=n(i("63ea")),h=i("e1bd");o.install();const u=t=>r.default(a.default(t)).replace(/ /g,""),d=(t,e)=>{const i={options:{type:Object,required:!1},chartId:{default:t,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},chartData:{type:Object,required:!0},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},n=u(t);return o.defineComponent({name:n,props:i,emits:{"labels:update":()=>!0,"chart:update":t=>!0,"chart:destroy":t=>!0,"chart:render":()=>!0},setup(i,{emit:r}){const a=o.ref(),u=`${t}-${h.nanoid(6)}`;let d=o.shallowRef(null);function f(t,e){if(e){let i=d.value,n=t.datasets.map(t=>t.label),s=e.datasets.map(t=>t.label);const o=JSON.stringify(s),r=JSON.stringify(n);r===o&&e.datasets.length===t.datasets.length&&i?(t.datasets.forEach((t,n)=>{const s=Object.keys(e.datasets[n]),o=Object.keys(t),r=s.filter(t=>"_meta"!==t&&-1===o.indexOf(t));r.forEach(t=>{(null===i||void 0===i?void 0:i.data.datasets[n])&&delete i.data.datasets[n][t]});for(const e in t){const s=t[e];t.hasOwnProperty(e)&&s&&i&&(i.data.datasets[n][e]=s)}}),t.hasOwnProperty("labels")&&(i.data.labels=t.labels,g()),m()):(i&&x(),p())}else d.value&&x(),p()}function p(){a.value?(d.value=new s.Chart(a.value,{data:i.chartData,type:e,options:l.default(i.options),plugins:i.plugins}),b()):console.error(`Error on component ${n}, canvas cannot be rendered. Check if the render appends server-side`)}function g(){var t;r("labels:update"),null===(t=i.onLabelsUpdate)||void 0===t||t.call(i)}function b(){var t;d.value&&(r("chart:render",d.value),null===(t=i.onChartRender)||void 0===t||t.call(i,d.value))}function m(){var t;d.value&&(d.value.update(),r("chart:render",d.value),null===(t=i.onChartRender)||void 0===t||t.call(i,d.value))}function x(){var t,e;null===(t=d.value)||void 0===t||t.destroy(),r("chart:destroy"),null===(e=i.onChartDestroy)||void 0===e||e.call(i)}return o.watch(()=>i.chartData,f,{deep:!0}),o.watch(()=>i.options,(t,e)=>{d.value&&t&&!c.default(d.value.options,e)&&(d.value.options=l.default(t),e=l.default(t),m())},{deep:!0}),o.onMounted(p),o.onBeforeUnmount(()=>{var t;d.value&&(null===(t=d.value)||void 0===t||t.destroy())}),{canvasRef:a,renderChart:p,chartInstance:d,canvasId:u}},render(){return o.h("div",{style:{maxWidth:"100%",...this.styles,position:"relative"},class:this.cssClasses},[o.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},...o.isVue2&&{attrs:{id:this.canvasId,width:this.width,height:this.height}},...o.isVue3&&{id:this.canvasId,width:this.width,height:this.height},ref:"canvasRef"})])}})};e.defineChartComponent=d},"087d":function(t,e){function i(t,e){var i=-1,n=e.length,s=t.length;while(++i<n)t[s+i]=e[i];return t}t.exports=i},"0b07":function(t,e,i){var n=i("34ac"),s=i("3698");function o(t,e){var i=s(t,e);return n(i)?i:void 0}t.exports=o},"0d24":function(t,e,i){(function(t){var n=i("2b3e"),s=i("07c7"),o=e&&!e.nodeType&&e,r=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=r&&r.exports===o,l=a?n.Buffer:void 0,c=l?l.isBuffer:void 0,h=c||s;t.exports=h}).call(this,i("62e4")(t))},"0f0f":function(t,e,i){var n=i("8eeb"),s=i("9934");function o(t,e){return t&&n(e,s(e),t)}t.exports=o},1041:function(t,e,i){var n=i("8eeb"),s=i("a029");function o(t,e){return n(t,s(t),e)}t.exports=o},"126d":function(t,e,i){var n=i("6da8"),s=i("aaec"),o=i("d094");function r(t){return s(t)?o(t):n(t)}t.exports=r},1290:function(t,e){function i(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=i},1310:function(t,e){function i(t){return null!=t&&"object"==typeof t}t.exports=i},1368:function(t,e,i){var n=i("da03"),s=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function o(t){return!!s&&s in t}t.exports=o},"1a2d":function(t,e,i){var n=i("42a2"),s=i("1310"),o="[object Map]";function r(t){return s(t)&&n(t)==o}t.exports=r},"1a8c":function(t,e){function i(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=i},"1bac":function(t,e,i){var n=i("7d1f"),s=i("a029"),o=i("9934");function r(t){return n(t,o,s)}t.exports=r},"1c3c":function(t,e,i){var n=i("9e69"),s=i("2474"),o=i("9638"),r=i("a2be"),a=i("edfa"),l=i("ac41"),c=1,h=2,u="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Map]",g="[object Number]",b="[object RegExp]",m="[object Set]",x="[object String]",_="[object Symbol]",y="[object ArrayBuffer]",v="[object DataView]",w=n?n.prototype:void 0,M=w?w.valueOf:void 0;function k(t,e,i,n,w,k,S){switch(i){case v:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case y:return!(t.byteLength!=e.byteLength||!k(new s(t),new s(e)));case u:case d:case g:return o(+t,+e);case f:return t.name==e.name&&t.message==e.message;case b:case x:return t==e+"";case p:var C=a;case m:var P=n&c;if(C||(C=l),t.size!=e.size&&!P)return!1;var O=S.get(t);if(O)return O==e;n|=h,S.set(t,e);var D=r(C(t),C(e),n,w,k,S);return S["delete"](t),D;case _:if(M)return M.call(t)==M.call(e)}return!1}t.exports=k},"1cec":function(t,e,i){var n=i("0b07"),s=i("2b3e"),o=n(s,"Promise");t.exports=o},"1efc":function(t,e){function i(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=i},"1fc8":function(t,e,i){var n=i("4245");function s(t,e){var i=n(this,t),s=i.size;return i.set(t,e),this.size+=i.size==s?0:1,this}t.exports=s},2474:function(t,e,i){var n=i("2b3e"),s=n.Uint8Array;t.exports=s},2478:function(t,e,i){var n=i("4245");function s(t){return n(this,t).get(t)}t.exports=s},2524:function(t,e,i){var n=i("6044"),s="__lodash_hash_undefined__";function o(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=n&&void 0===e?s:e,this}t.exports=o},"253c":function(t,e,i){var n=i("3729"),s=i("1310"),o="[object Arguments]";function r(t){return s(t)&&n(t)==o}t.exports=r},"28c9":function(t,e){function i(){this.__data__=[],this.size=0}t.exports=i},"29f3":function(t,e){var i=Object.prototype,n=i.toString;function s(t){return n.call(t)}t.exports=s},"2b10":function(t,e){function i(t,e,i){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),i=i>s?s:i,i<0&&(i+=s),s=e>i?0:i-e>>>0,e>>>=0;var o=Array(s);while(++n<s)o[n]=t[n+e];return o}t.exports=i},"2b3e":function(t,e,i){var n=i("585a"),s="object"==typeof self&&self&&self.Object===Object&&self,o=n||s||Function("return this")();t.exports=o},"2d7c":function(t,e){function i(t,e){var i=-1,n=null==t?0:t.length,s=0,o=[];while(++i<n){var r=t[i];e(r,i,t)&&(o[s++]=r)}return o}t.exports=i},"2dcb":function(t,e,i){var n=i("91e9"),s=n(Object.getPrototypeOf,Object);t.exports=s},"2fcc":function(t,e){function i(t){var e=this.__data__,i=e["delete"](t);return this.size=e.size,i}t.exports=i},"30c9":function(t,e,i){var n=i("9520"),s=i("b218");function o(t){return null!=t&&s(t.length)&&!n(t)}t.exports=o},"32b3":function(t,e,i){var n=i("872a"),s=i("9638"),o=Object.prototype,r=o.hasOwnProperty;function a(t,e,i){var o=t[e];r.call(t,e)&&s(o,i)&&(void 0!==i||e in t)||n(t,e,i)}t.exports=a},"32f4":function(t,e,i){var n=i("2d7c"),s=i("d327"),o=Object.prototype,r=o.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return r.call(t,e)})))}:s;t.exports=l},"34ac":function(t,e,i){var n=i("9520"),s=i("1368"),o=i("1a8c"),r=i("dc57"),a=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,h=Object.prototype,u=c.toString,d=h.hasOwnProperty,f=RegExp("^"+u.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(t){if(!o(t)||s(t))return!1;var e=n(t)?f:l;return e.test(r(t))}t.exports=p},3698:function(t,e){function i(t,e){return null==t?void 0:t[e]}t.exports=i},3729:function(t,e,i){var n=i("9e69"),s=i("00fd"),o=i("29f3"),r="[object Null]",a="[object Undefined]",l=n?n.toStringTag:void 0;function c(t){return null==t?void 0===t?a:r:l&&l in Object(t)?s(t):o(t)}t.exports=c},3818:function(t,e,i){var n=i("7e64"),s=i("8057"),o=i("32b3"),r=i("5b01"),a=i("0f0f"),l=i("e5383"),c=i("4359"),h=i("54eb"),u=i("1041"),d=i("a994"),f=i("1bac"),p=i("42a2"),g=i("c87c"),b=i("c2b6"),m=i("fa21"),x=i("6747"),_=i("0d24"),y=i("cc45"),v=i("1a8c"),w=i("d7ee"),M=i("ec69"),k=i("9934"),S=1,C=2,P=4,O="[object Arguments]",D="[object Array]",A="[object Boolean]",R="[object Date]",T="[object Error]",L="[object Function]",E="[object GeneratorFunction]",j="[object Map]",z="[object Number]",I="[object Object]",F="[object RegExp]",B="[object Set]",V="[object String]",W="[object Symbol]",N="[object WeakMap]",H="[object ArrayBuffer]",U="[object DataView]",$="[object Float32Array]",Y="[object Float64Array]",X="[object Int8Array]",q="[object Int16Array]",K="[object Int32Array]",Z="[object Uint8Array]",G="[object Uint8ClampedArray]",J="[object Uint16Array]",Q="[object Uint32Array]",tt={};function et(t,e,i,D,A,R){var T,j=e&S,z=e&C,F=e&P;if(i&&(T=A?i(t,D,A,R):i(t)),void 0!==T)return T;if(!v(t))return t;var B=x(t);if(B){if(T=g(t),!j)return c(t,T)}else{var V=p(t),W=V==L||V==E;if(_(t))return l(t,j);if(V==I||V==O||W&&!A){if(T=z||W?{}:m(t),!j)return z?u(t,a(T,t)):h(t,r(T,t))}else{if(!tt[V])return A?t:{};T=b(t,V,j)}}R||(R=new n);var N=R.get(t);if(N)return N;R.set(t,T),w(t)?t.forEach((function(n){T.add(et(n,e,i,n,t,R))})):y(t)&&t.forEach((function(n,s){T.set(s,et(n,e,i,s,t,R))}));var H=F?z?f:d:z?k:M,U=B?void 0:H(t);return s(U||t,(function(n,s){U&&(s=n,n=t[s]),o(T,s,et(n,e,i,s,t,R))})),T}tt[O]=tt[D]=tt[H]=tt[U]=tt[A]=tt[R]=tt[$]=tt[Y]=tt[X]=tt[q]=tt[K]=tt[j]=tt[z]=tt[I]=tt[F]=tt[B]=tt[V]=tt[W]=tt[Z]=tt[G]=tt[J]=tt[Q]=!0,tt[T]=tt[L]=tt[N]=!1,t.exports=et},"39ff":function(t,e,i){var n=i("0b07"),s=i("2b3e"),o=n(s,"WeakMap");t.exports=o},"3b4a":function(t,e,i){var n=i("0b07"),s=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=s},"41c3":function(t,e,i){var n=i("1a8c"),s=i("eac5"),o=i("ec8c"),r=Object.prototype,a=r.hasOwnProperty;function l(t){if(!n(t))return o(t);var e=s(t),i=[];for(var r in t)("constructor"!=r||!e&&a.call(t,r))&&i.push(r);return i}t.exports=l},4245:function(t,e,i){var n=i("1290");function s(t,e){var i=t.__data__;return n(e)?i["string"==typeof e?"string":"hash"]:i.map}t.exports=s},4284:function(t,e){function i(t,e){var i=-1,n=null==t?0:t.length;while(++i<n)if(e(t[i],i,t))return!0;return!1}t.exports=i},"42a2":function(t,e,i){var n=i("b5a7"),s=i("79bc"),o=i("1cec"),r=i("c869"),a=i("39ff"),l=i("3729"),c=i("dc57"),h="[object Map]",u="[object Object]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",g="[object DataView]",b=c(n),m=c(s),x=c(o),_=c(r),y=c(a),v=l;(n&&v(new n(new ArrayBuffer(1)))!=g||s&&v(new s)!=h||o&&v(o.resolve())!=d||r&&v(new r)!=f||a&&v(new a)!=p)&&(v=function(t){var e=l(t),i=e==u?t.constructor:void 0,n=i?c(i):"";if(n)switch(n){case b:return g;case m:return h;case x:return d;case _:return f;case y:return p}return e}),t.exports=v},4359:function(t,e){function i(t,e){var i=-1,n=t.length;e||(e=Array(n));while(++i<n)e[i]=t[i];return e}t.exports=i},"49f4":function(t,e,i){var n=i("6044");function s(){this.__data__=n?n(null):{},this.size=0}t.exports=s},"4caa":function(t,e,i){var n=i("a919"),s=i("76dd"),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",c=r+a+l,h="["+c+"]",u=RegExp(h,"g");function d(t){return t=s(t),t&&t.replace(o,n).replace(u,"")}t.exports=d},"50d8":function(t,e){function i(t,e){var i=-1,n=Array(t);while(++i<t)n[i]=e(i);return n}t.exports=i},"54eb":function(t,e,i){var n=i("8eeb"),s=i("32f4");function o(t,e){return n(t,s(t),e)}t.exports=o},"55a3":function(t,e){function i(t){return this.__data__.has(t)}t.exports=i},"57a5":function(t,e,i){var n=i("91e9"),s=n(Object.keys,Object);t.exports=s},"585a":function(t,e,i){(function(e){var i="object"==typeof e&&e&&e.Object===Object&&e;t.exports=i}).call(this,i("c8ba"))},"5b01":function(t,e,i){var n=i("8eeb"),s=i("ec69");function o(t,e){return t&&n(e,s(e),t)}t.exports=o},"5d89":function(t,e,i){var n=i("f8af");function s(t,e){var i=e?n(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}t.exports=s},"5e2e":function(t,e,i){var n=i("28c9"),s=i("69d5"),o=i("b4c0"),r=i("fba5"),a=i("67ca");function l(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype["delete"]=s,l.prototype.get=o,l.prototype.has=r,l.prototype.set=a,t.exports=l},6044:function(t,e,i){var n=i("0b07"),s=n(Object,"create");t.exports=s},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"63ea":function(t,e,i){var n=i("c05f");function s(t,e){return n(t,e)}t.exports=s},6747:function(t,e){var i=Array.isArray;t.exports=i},"67ca":function(t,e,i){var n=i("cb5a");function s(t,e){var i=this.__data__,s=n(i,t);return s<0?(++this.size,i.push([t,e])):i[s][1]=e,this}t.exports=s},"69d5":function(t,e,i){var n=i("cb5a"),s=Array.prototype,o=s.splice;function r(t){var e=this.__data__,i=n(e,t);if(i<0)return!1;var s=e.length-1;return i==s?e.pop():o.call(e,i,1),--this.size,!0}t.exports=r},"6ac0":function(t,e){function i(t,e,i,n){var s=-1,o=null==t?0:t.length;n&&o&&(i=t[++s]);while(++s<o)i=e(i,t[s],s,t);return i}t.exports=i},"6da8":function(t,e){function i(t){return t.split("")}t.exports=i},"6f6c":function(t,e){var i=/\w*$/;function n(t){var e=new t.constructor(t.source,i.exec(t));return e.lastIndex=t.lastIndex,e}t.exports=n},"6fcd":function(t,e,i){var n=i("50d8"),s=i("d370"),o=i("6747"),r=i("0d24"),a=i("c098"),l=i("73ac"),c=Object.prototype,h=c.hasOwnProperty;function u(t,e){var i=o(t),c=!i&&s(t),u=!i&&!c&&r(t),d=!i&&!c&&!u&&l(t),f=i||c||u||d,p=f?n(t.length,String):[],g=p.length;for(var b in t)!e&&!h.call(t,b)||f&&("length"==b||u&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||a(b,g))||p.push(b);return p}t.exports=u},"72dd":function(t,e,i){"use strict";i.r(e),i.d(e,"Vue2",(function(){return l})),i.d(e,"isVue2",(function(){return r})),i.d(e,"isVue3",(function(){return a})),i.d(e,"version",(function(){return c})),i.d(e,"install",(function(){return o}));var n=i("2b0e");i.d(e,"Vue",(function(){return n["default"]}));var s=i("a6f4");function o(t){t=t||n["default"],t&&!t["__composition_api_installed__"]&&n["default"].use(s["f"])}i.d(e,"EffectScope",(function(){return s["a"]})),i.d(e,"computed",(function(){return s["b"]})),i.d(e,"createApp",(function(){return s["c"]})),i.d(e,"createRef",(function(){return s["d"]})),i.d(e,"customRef",(function(){return s["e"]})),i.d(e,"defineAsyncComponent",(function(){return s["g"]})),i.d(e,"defineComponent",(function(){return s["h"]})),i.d(e,"del",(function(){return s["i"]})),i.d(e,"effectScope",(function(){return s["j"]})),i.d(e,"getCurrentInstance",(function(){return s["k"]})),i.d(e,"getCurrentScope",(function(){return s["l"]})),i.d(e,"h",(function(){return s["m"]})),i.d(e,"inject",(function(){return s["n"]})),i.d(e,"isRaw",(function(){return s["o"]})),i.d(e,"isReactive",(function(){return s["p"]})),i.d(e,"isReadonly",(function(){return s["q"]})),i.d(e,"isRef",(function(){return s["r"]})),i.d(e,"markRaw",(function(){return s["s"]})),i.d(e,"nextTick",(function(){return s["t"]})),i.d(e,"onActivated",(function(){return s["u"]})),i.d(e,"onBeforeMount",(function(){return s["v"]})),i.d(e,"onBeforeUnmount",(function(){return s["w"]})),i.d(e,"onBeforeUpdate",(function(){return s["x"]})),i.d(e,"onDeactivated",(function(){return s["y"]})),i.d(e,"onErrorCaptured",(function(){return s["z"]})),i.d(e,"onMounted",(function(){return s["A"]})),i.d(e,"onScopeDispose",(function(){return s["B"]})),i.d(e,"onServerPrefetch",(function(){return s["C"]})),i.d(e,"onUnmounted",(function(){return s["D"]})),i.d(e,"onUpdated",(function(){return s["E"]})),i.d(e,"provide",(function(){return s["F"]})),i.d(e,"proxyRefs",(function(){return s["G"]})),i.d(e,"reactive",(function(){return s["H"]})),i.d(e,"readonly",(function(){return s["I"]})),i.d(e,"ref",(function(){return s["J"]})),i.d(e,"set",(function(){return s["K"]})),i.d(e,"shallowReactive",(function(){return s["L"]})),i.d(e,"shallowReadonly",(function(){return s["M"]})),i.d(e,"shallowRef",(function(){return s["N"]})),i.d(e,"toRaw",(function(){return s["O"]})),i.d(e,"toRef",(function(){return s["P"]})),i.d(e,"toRefs",(function(){return s["Q"]})),i.d(e,"triggerRef",(function(){return s["R"]})),i.d(e,"unref",(function(){return s["S"]})),i.d(e,"useAttrs",(function(){return s["T"]})),i.d(e,"useCSSModule",(function(){return s["U"]})),i.d(e,"useCssModule",(function(){return s["V"]})),i.d(e,"useSlots",(function(){return s["W"]})),i.d(e,"warn",(function(){return s["X"]})),i.d(e,"watch",(function(){return s["Y"]})),i.d(e,"watchEffect",(function(){return s["Z"]})),i.d(e,"watchPostEffect",(function(){return s["ab"]})),i.d(e,"watchSyncEffect",(function(){return s["bb"]})),o(n["default"]);var r=!0,a=!1,l=n["default"],c=n["default"].version},"73ac":function(t,e,i){var n=i("743f"),s=i("b047"),o=i("99d3"),r=o&&o.isTypedArray,a=r?s(r):n;t.exports=a},"743f":function(t,e,i){var n=i("3729"),s=i("b218"),o=i("1310"),r="[object Arguments]",a="[object Array]",l="[object Boolean]",c="[object Date]",h="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",g="[object RegExp]",b="[object Set]",m="[object String]",x="[object WeakMap]",_="[object ArrayBuffer]",y="[object DataView]",v="[object Float32Array]",w="[object Float64Array]",M="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",C="[object Uint8Array]",P="[object Uint8ClampedArray]",O="[object Uint16Array]",D="[object Uint32Array]",A={};function R(t){return o(t)&&s(t.length)&&!!A[n(t)]}A[v]=A[w]=A[M]=A[k]=A[S]=A[C]=A[P]=A[O]=A[D]=!0,A[r]=A[a]=A[_]=A[l]=A[y]=A[c]=A[h]=A[u]=A[d]=A[f]=A[p]=A[g]=A[b]=A[m]=A[x]=!1,t.exports=R},7530:function(t,e,i){var n=i("1a8c"),s=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(s)return s(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();t.exports=o},7559:function(t,e){var i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n(t){return t.match(i)||[]}t.exports=n},"76dd":function(t,e,i){var n=i("ce86");function s(t){return null==t?"":n(t)}t.exports=s},7948:function(t,e){function i(t,e){var i=-1,n=null==t?0:t.length,s=Array(n);while(++i<n)s[i]=e(t[i],i,t);return s}t.exports=i},"79bc":function(t,e,i){var n=i("0b07"),s=i("2b3e"),o=n(s,"Map");t.exports=o},"7a48":function(t,e,i){var n=i("6044"),s=Object.prototype,o=s.hasOwnProperty;function r(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}t.exports=r},"7b83":function(t,e,i){var n=i("7c64"),s=i("93ed"),o=i("2478"),r=i("a524"),a=i("1fc8");function l(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype["delete"]=s,l.prototype.get=o,l.prototype.has=r,l.prototype.set=a,t.exports=l},"7b97":function(t,e,i){var n=i("7e64"),s=i("a2be"),o=i("1c3c"),r=i("b1e5"),a=i("42a2"),l=i("6747"),c=i("0d24"),h=i("73ac"),u=1,d="[object Arguments]",f="[object Array]",p="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function m(t,e,i,g,m,x){var _=l(t),y=l(e),v=_?f:a(t),w=y?f:a(e);v=v==d?p:v,w=w==d?p:w;var M=v==p,k=w==p,S=v==w;if(S&&c(t)){if(!c(e))return!1;_=!0,M=!1}if(S&&!M)return x||(x=new n),_||h(t)?s(t,e,i,g,m,x):o(t,e,v,i,g,m,x);if(!(i&u)){var C=M&&b.call(t,"__wrapped__"),P=k&&b.call(e,"__wrapped__");if(C||P){var O=C?t.value():t,D=P?e.value():e;return x||(x=new n),m(O,D,i,g,x)}}return!!S&&(x||(x=new n),r(t,e,i,g,m,x))}t.exports=m},"7c64":function(t,e,i){var n=i("e24b"),s=i("5e2e"),o=i("79bc");function r(){this.size=0,this.__data__={hash:new n,map:new(o||s),string:new n}}t.exports=r},"7d1f":function(t,e,i){var n=i("087d"),s=i("6747");function o(t,e,i){var o=e(t);return s(t)?o:n(o,i(t))}t.exports=o},"7e64":function(t,e,i){var n=i("5e2e"),s=i("efb6"),o=i("2fcc"),r=i("802a"),a=i("55a3"),l=i("d02c");function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=s,c.prototype["delete"]=o,c.prototype.get=r,c.prototype.has=a,c.prototype.set=l,t.exports=c},"7e8e":function(t,e){var i=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n(t){return i.test(t)}t.exports=n},"7ed2":function(t,e){var i="__lodash_hash_undefined__";function n(t){return this.__data__.set(t,i),this}t.exports=n},"802a":function(t,e){function i(t){return this.__data__.get(t)}t.exports=i},8057:function(t,e){function i(t,e){var i=-1,n=null==t?0:t.length;while(++i<n)if(!1===e(t[i],i,t))break;return t}t.exports=i},8103:function(t,e,i){var n=i("d194"),s=n("toUpperCase");t.exports=s},8429:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useScatterChart=e.useBubbleChart=e.useRadarChart=e.usePolarAreaChart=e.usePieChart=e.useLineChart=e.useBarChart=e.useDoughnutChart=void 0;const n=i("72dd"),s=t=>e=>{const i=n.computed(()=>({...e,ref:t+"ChartRef",chartData:n.unref(e.chartData),options:n.unref(e.options)})),s=n.reactive({[t+"ChartProps"]:i});return{...n.toRefs(s),[t+"ChartRef"]:n.ref()}};e.useDoughnutChart=s("doughnut"),e.useBarChart=s("bar"),e.useLineChart=s("line"),e.usePieChart=s("pie"),e.usePolarAreaChart=s("polarArea"),e.useRadarChart=s("radar"),e.useBubbleChart=s("bubble"),e.useScatterChart=s("scatter")},"872a":function(t,e,i){var n=i("3b4a");function s(t,e,i){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}t.exports=s},"8eeb":function(t,e,i){var n=i("32b3"),s=i("872a");function o(t,e,i,o){var r=!i;i||(i={});var a=-1,l=e.length;while(++a<l){var c=e[a],h=o?o(i[c],t[c],c,i,t):void 0;void 0===h&&(h=t[c]),r?s(i,c,h):n(i,c,h)}return i}t.exports=o},"91e9":function(t,e){function i(t,e){return function(i){return t(e(i))}}t.exports=i},"93ed":function(t,e,i){var n=i("4245");function s(t){var e=n(this,t)["delete"](t);return this.size-=e?1:0,e}t.exports=s},9520:function(t,e,i){var n=i("3729"),s=i("1a8c"),o="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";function c(t){if(!s(t))return!1;var e=n(t);return e==r||e==a||e==o||e==l}t.exports=c},9638:function(t,e){function i(t,e){return t===e||t!==t&&e!==e}t.exports=i},9934:function(t,e,i){var n=i("6fcd"),s=i("41c3"),o=i("30c9");function r(t){return o(t)?n(t,!0):s(t)}t.exports=r},"99d3":function(t,e,i){(function(t){var n=i("585a"),s=e&&!e.nodeType&&e,o=s&&"object"==typeof t&&t&&!t.nodeType&&t,r=o&&o.exports===s,a=r&&n.process,l=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=l}).call(this,i("62e4")(t))},"9b4a":function(t,e,i){"use strict";i.r(e),i.d(e,"defaults",(function(){return ae})),i.d(e,"Animation",(function(){return ln})),i.d(e,"Animations",(function(){return dn})),i.d(e,"ArcElement",(function(){return Mr})),i.d(e,"BarController",(function(){return Zn})),i.d(e,"BarElement",(function(){return qr})),i.d(e,"BasePlatform",(function(){return Is})),i.d(e,"BasicPlatform",(function(){return Fs})),i.d(e,"BubbleController",(function(){return Gn})),i.d(e,"CategoryScale",(function(){return rl})),i.d(e,"Chart",(function(){return dr})),i.d(e,"DatasetController",(function(){return En})),i.d(e,"Decimation",(function(){return ea})),i.d(e,"DomPlatform",(function(){return no})),i.d(e,"DoughnutController",(function(){return Qn})),i.d(e,"Element",(function(){return oo})),i.d(e,"Filler",(function(){return Pa})),i.d(e,"Interaction",(function(){return _s})),i.d(e,"Legend",(function(){return Ta})),i.d(e,"LineController",(function(){return ts})),i.d(e,"LineElement",(function(){return zr})),i.d(e,"LinearScale",(function(){return hl})),i.d(e,"LogarithmicScale",(function(){return fl})),i.d(e,"PieController",(function(){return ss})),i.d(e,"PointElement",(function(){return Fr})),i.d(e,"PolarAreaController",(function(){return ns})),i.d(e,"RadarController",(function(){return os})),i.d(e,"RadialLinearScale",(function(){return Pl})),i.d(e,"Scale",(function(){return Oo})),i.d(e,"ScatterController",(function(){return rs})),i.d(e,"SubTitle",(function(){return Ia})),i.d(e,"Ticks",(function(){return lo})),i.d(e,"TimeScale",(function(){return Fl})),i.d(e,"TimeSeriesScale",(function(){return Vl})),i.d(e,"Title",(function(){return ja})),i.d(e,"Tooltip",(function(){return el})),i.d(e,"_adapters",(function(){return hs})),i.d(e,"_detectPlatform",(function(){return so})),i.d(e,"animator",(function(){return on})),i.d(e,"controllers",(function(){return as})),i.d(e,"elements",(function(){return Kr})),i.d(e,"layouts",(function(){return zs})),i.d(e,"plugins",(function(){return il})),i.d(e,"registerables",(function(){return Nl})),i.d(e,"registry",(function(){return Eo})),i.d(e,"scales",(function(){return Wl}));const n=function(){return"undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame}();function s(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let o=!1,r=[];return function(...i){r=s(i),o||(o=!0,n.call(window,()=>{o=!1,t.apply(e,r)}))}}function o(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}const r=t=>"start"===t?"left":"end"===t?"right":"center",a=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,l=(t,e,i,n)=>{const s=n?"left":"right";return t===s?i:"center"===t?(e+i)/2:e};function c(){}const h=function(){let t=0;return function(){return t++}}();function u(t){return null===t||"undefined"===typeof t}function d(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function f(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const p=t=>("number"===typeof t||t instanceof Number)&&isFinite(+t);function g(t,e){return p(t)?t:e}function b(t,e){return"undefined"===typeof t?e:t}const m=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,x=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function _(t,e,i){if(t&&"function"===typeof t.call)return t.apply(i,e)}function y(t,e,i,n){let s,o,r;if(d(t))if(o=t.length,n)for(s=o-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;s<o;s++)e.call(i,t[s],s);else if(f(t))for(r=Object.keys(t),o=r.length,s=0;s<o;s++)e.call(i,t[r[s]],r[s])}function v(t,e){let i,n,s,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],o=e[i],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function w(t){if(d(t))return t.map(w);if(f(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=w(t[i[s]]);return e}return t}function M(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function k(t,e,i,n){if(!M(t))return;const s=e[t],o=i[t];f(s)&&f(o)?S(s,o,n):e[t]=w(o)}function S(t,e,i){const n=d(e)?e:[e],s=n.length;if(!f(t))return t;i=i||{};const o=i.merger||k;for(let r=0;r<s;++r){if(e=n[r],!f(e))continue;const s=Object.keys(e);for(let n=0,r=s.length;n<r;++n)o(s[n],t,e,i)}return t}function C(t,e){return S(t,e,{merger:P})}function P(t,e,i){if(!M(t))return;const n=e[t],s=i[t];f(n)&&f(s)?C(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=w(s))}const O="",D=".";function A(t,e){const i=t.indexOf(D,e);return-1===i?t.length:i}function R(t,e){if(e===O)return t;let i=0,n=A(e,i);while(t&&n>i)t=t[e.substr(i,n-i)],i=n+1,n=A(e,i);return t}function T(t){return t.charAt(0).toUpperCase()+t.slice(1)}const L=t=>"undefined"!==typeof t,E=t=>"function"===typeof t,j=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},z=Math.PI,I=2*z,F=I+z,B=Number.POSITIVE_INFINITY,V=z/180,W=z/2,N=z/4,H=2*z/3,U=Math.log10,$=Math.sign;function Y(t){const e=Math.round(t);t=K(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(U(t))),n=t/i,s=n<=1?1:n<=2?2:n<=5?5:10;return s*i}function X(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n===0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort((t,e)=>t-e).pop(),e}function q(t){return!isNaN(parseFloat(t))&&isFinite(t)}function K(t,e,i){return Math.abs(t-e)<i}function Z(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function G(t,e,i){let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function J(t){return t*(z/180)}function Q(t){return t*(180/z)}function tt(t){if(!p(t))return;let e=1,i=0;while(Math.round(t*e)/e!==t)e*=10,i++;return i}function et(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*z&&(o+=I),{angle:o,distance:s}}function it(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function nt(t,e){return(t-e+F)%I-z}function st(t){return(t%I+I)%I}function ot(t,e,i,n){const s=st(t),o=st(e),r=st(i),a=st(o-s),l=st(r-s),c=st(s-o),h=st(s-r);return s===o||s===r||n&&o===r||a>l&&c<h}function rt(t,e,i){return Math.max(e,Math.min(i,t))}function at(t){return rt(t,-32768,32767)}const lt=t=>0===t||1===t,ct=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*I/i),ht=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*I/i)+1,ut={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*W),easeOutSine:t=>Math.sin(t*W),easeInOutSine:t=>-.5*(Math.cos(z*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>lt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>lt(t)?t:ct(t,.075,.3),easeOutElastic:t=>lt(t)?t:ht(t,.075,.3),easeInOutElastic(t){const e=.1125,i=.45;return lt(t)?t:t<.5?.5*ct(2*t,e,i):.5+.5*ht(2*t-1,e,i)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let 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:t=>1-ut.easeOutBounce(1-t),easeOutBounce(t){const 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:t=>t<.5?.5*ut.easeInBounce(2*t):.5*ut.easeOutBounce(2*t-1)+.5},dt={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},ft="0123456789ABCDEF",pt=t=>ft[15&t],gt=t=>ft[(240&t)>>4]+ft[15&t],bt=t=>(240&t)>>4===(15&t);function mt(t){return bt(t.r)&&bt(t.g)&&bt(t.b)&&bt(t.a)}function xt(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*dt[t[1]],g:255&17*dt[t[2]],b:255&17*dt[t[3]],a:5===i?17*dt[t[4]]:255}:7!==i&&9!==i||(e={r:dt[t[1]]<<4|dt[t[2]],g:dt[t[3]]<<4|dt[t[4]],b:dt[t[5]]<<4|dt[t[6]],a:9===i?dt[t[7]]<<4|dt[t[8]]:255})),e}function _t(t){var e=mt(t)?pt:gt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function yt(t){return t+.5|0}const vt=(t,e,i)=>Math.max(Math.min(t,i),e);function wt(t){return vt(yt(2.55*t),0,255)}function Mt(t){return vt(yt(255*t),0,255)}function kt(t){return vt(yt(t/2.55)/100,0,1)}function St(t){return vt(yt(100*t),0,100)}const Ct=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Pt(t){const e=Ct.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=255&(e[8]?wt(t):255*t)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?wt(i):i),n=255&(e[4]?wt(n):n),s=255&(e[6]?wt(s):s),{r:i,g:n,b:s,a:o}}}function Ot(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Dt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function At(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function Rt(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Tt(t,e,i){const n=At(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function Lt(t){const e=255,i=t.r/e,n=t.g/e,s=t.b/e,o=Math.max(i,n,s),r=Math.min(i,n,s),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=o===i?(n-s)/h+(n<s?6:0):o===n?(s-i)/h+2:(i-n)/h+4,l=60*l+.5),[0|l,c||0,a]}function Et(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(Mt)}function jt(t,e,i){return Et(At,t,e,i)}function zt(t,e,i){return Et(Tt,t,e,i)}function It(t,e,i){return Et(Rt,t,e,i)}function Ft(t){return(t%360+360)%360}function Bt(t){const e=Dt.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?wt(+e[5]):Mt(+e[5]));const s=Ft(+e[2]),o=+e[3]/100,r=+e[4]/100;return i="hwb"===e[1]?zt(s,o,r):"hsv"===e[1]?It(s,o,r):jt(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}function Vt(t,e){var i=Lt(t);i[0]=Ft(i[0]+e),i=jt(i),t.r=i[0],t.g=i[1],t.b=i[2]}function Wt(t){if(!t)return;const e=Lt(t),i=e[0],n=St(e[1]),s=St(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${kt(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}const Nt={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"},Ht={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"};function Ut(){const t={},e=Object.keys(Ht),i=Object.keys(Nt);let n,s,o,r,a;for(n=0;n<e.length;n++){for(r=a=e[n],s=0;s<i.length;s++)o=i[s],a=a.replace(o,Nt[o]);o=parseInt(Ht[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}let $t;function Yt(t){$t||($t=Ut(),$t.transparent=[0,0,0,0]);const e=$t[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Xt(t,e,i){if(t){let n=Lt(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=jt(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function qt(t,e){return t?Object.assign(e||{},t):t}function Kt(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=Mt(t[3]))):(e=qt(t,{r:0,g:0,b:0,a:1}),e.a=Mt(e.a)),e}function Zt(t){return"r"===t.charAt(0)?Pt(t):Bt(t)}class Gt{constructor(t){if(t instanceof Gt)return t;const e=typeof t;let i;"object"===e?i=Kt(t):"string"===e&&(i=xt(t)||Yt(t)||Zt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=qt(this._rgb);return t&&(t.a=kt(t.a)),t}set rgb(t){this._rgb=Kt(t)}rgbString(){return this._valid?Ot(this._rgb):this._rgb}hexString(){return this._valid?_t(this._rgb):this._rgb}hslString(){return this._valid?Wt(this._rgb):this._rgb}mix(t,e){const i=this;if(t){const n=i.rgb,s=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,l=n.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,n.r=255&c*n.r+o*s.r+.5,n.g=255&c*n.g+o*s.g+.5,n.b=255&c*n.b+o*s.b+.5,n.a=r*n.a+(1-r)*s.a,i.rgb=n}return i}clone(){return new Gt(this.rgb)}alpha(t){return this._rgb.a=Mt(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=yt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Xt(this._rgb,2,t),this}darken(t){return Xt(this._rgb,2,-t),this}saturate(t){return Xt(this._rgb,1,t),this}desaturate(t){return Xt(this._rgb,1,-t),this}rotate(t){return Vt(this._rgb,t),this}}function Jt(t){return new Gt(t)}const Qt=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function te(t){return Qt(t)?t:Jt(t)}function ee(t){return Qt(t)?t:Jt(t).saturate(.5).darken(.1).hexString()}const ie=Object.create(null),ne=Object.create(null);function se(t,e){if(!e)return t;const i=e.split(".");for(let n=0,s=i.length;n<s;++n){const e=i[n];t=t[e]||(t[e]=Object.create(null))}return t}function oe(t,e,i){return"string"===typeof e?S(se(t,e),i):S(se(t,""),e)}class re{constructor(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=t=>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=(t,e)=>ee(e.backgroundColor),this.hoverBorderColor=(t,e)=>ee(e.borderColor),this.hoverColor=(t,e)=>ee(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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.describe(t)}set(t,e){return oe(this,t,e)}get(t){return se(this,t)}describe(t,e){return oe(ne,t,e)}override(t,e){return oe(ie,t,e)}route(t,e,i,n){const s=se(this,t),o=se(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[n];return f(t)?Object.assign({},e,t):b(t,e)},set(t){this[r]=t}}})}}var ae=new re({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function le(t){return!t||u(t.size)||u(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ce(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function he(t,e,i,n){n=n||{};let s=n.data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const a=i.length;let l,c,h,u,f;for(l=0;l<a;l++)if(u=i[l],void 0!==u&&null!==u&&!0!==d(u))r=ce(t,s,o,r,u);else if(d(u))for(c=0,h=u.length;c<h;c++)f=u[c],void 0===f||null===f||d(f)||(r=ce(t,s,o,r,f));t.restore();const p=o.length/2;if(p>i.length){for(l=0;l<p;l++)delete s[o[l]];o.splice(0,p)}return r}function ue(t,e,i){const n=t.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((e-s)*n)/n+s}function de(t,e){e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function fe(t,e,i,n){let s,o,r,a,l;const c=e.pointStyle,h=e.rotation,u=e.radius;let d=(h||0)*V;if(c&&"object"===typeof c&&(s=c.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(i,n),t.rotate(d),t.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void t.restore();if(!(isNaN(u)||u<=0)){switch(t.beginPath(),c){default:t.arc(i,n,u,0,I),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(d)*u,n-Math.cos(d)*u),d+=H,t.lineTo(i+Math.sin(d)*u,n-Math.cos(d)*u),d+=H,t.lineTo(i+Math.sin(d)*u,n-Math.cos(d)*u),t.closePath();break;case"rectRounded":l=.516*u,a=u-l,o=Math.cos(d+N)*a,r=Math.sin(d+N)*a,t.arc(i-o,n-r,l,d-z,d-W),t.arc(i+r,n-o,l,d-W,d),t.arc(i+o,n+r,l,d,d+W),t.arc(i-r,n+o,l,d+W,d+z),t.closePath();break;case"rect":if(!h){a=Math.SQRT1_2*u,t.rect(i-a,n-a,2*a,2*a);break}d+=N;case"rectRot":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+r,n-o),t.lineTo(i+o,n+r),t.lineTo(i-r,n+o),t.closePath();break;case"crossRot":d+=N;case"cross":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+o,n+r),t.moveTo(i+r,n-o),t.lineTo(i-r,n+o);break;case"star":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+o,n+r),t.moveTo(i+r,n-o),t.lineTo(i-r,n+o),d+=N,o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+o,n+r),t.moveTo(i+r,n-o),t.lineTo(i-r,n+o);break;case"line":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+o,n+r);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(d)*u,n+Math.sin(d)*u);break}t.fill(),e.borderWidth>0&&t.stroke()}}function pe(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 ge(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function be(t){t.restore()}function me(t,e,i,n,s){if(!e)return t.lineTo(i.x,i.y);if("middle"===s){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===s!==!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function xe(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,s,o={}){const r=d(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=s.string,ye(t,o),l=0;l<r.length;++l)c=r[l],a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),u(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,i,n,o.maxWidth)),t.fillText(c,i,n,o.maxWidth),ve(t,i,n,c,o),n+=s.lineHeight;t.restore()}function ye(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),u(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function ve(t,e,i,n,s){if(s.strikethrough||s.underline){const o=t.measureText(n),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,c=i+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(a,h),t.stroke()}}function we(t,e){const{x:i,y:n,w:s,h:o,radius:r}=e;t.arc(i+r.topLeft,n+r.topLeft,r.topLeft,-W,z,!0),t.lineTo(i,n+o-r.bottomLeft),t.arc(i+r.bottomLeft,n+o-r.bottomLeft,r.bottomLeft,z,W,!0),t.lineTo(i+s-r.bottomRight,n+o),t.arc(i+s-r.bottomRight,n+o-r.bottomRight,r.bottomRight,W,0,!0),t.lineTo(i+s,n+r.topRight),t.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-W,!0),t.lineTo(i+r.topLeft,n)}const Me=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ke=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Se(t,e){const i=(""+t).match(Me);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100;break}return e*t}const Ce=t=>+t||0;function Pe(t,e){const i={},n=f(e),s=n?Object.keys(e):e,o=f(t)?n?i=>b(t[i],t[e[i]]):e=>t[e]:()=>t;for(const r of s)i[r]=Ce(o(r));return i}function Oe(t){return Pe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function De(t){return Pe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ae(t){const e=Oe(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Re(t,e){t=t||{},e=e||ae.font;let i=b(t.size,e.size);"string"===typeof i&&(i=parseInt(i,10));let n=b(t.style,e.style);n&&!(""+n).match(ke)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const s={family:b(t.family,e.family),lineHeight:Se(b(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:b(t.weight,e.weight),string:""};return s.string=le(s),s}function Te(t,e,i,n){let s,o,r,a=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"===typeof r&&(r=r(e),a=!1),void 0!==i&&d(r)&&(r=r[i%r.length],a=!1),void 0!==r))return n&&!a&&(n.cacheable=!1),r}function Le(t,e,i){const{min:n,max:s}=t,o=x(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}function Ee(t,e){return Object.assign(Object.create(t),e)}function je(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,o=0;while(s-o>1)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const ze=(t,e,i)=>je(t,i,n=>t[n][e]<i),Ie=(t,e,i)=>je(t,i,n=>t[n][e]>=i);function Fe(t,e,i){let n=0,s=t.length;while(n<s&&t[n]<e)n++;while(s>n&&t[s-1]>i)s--;return n>0||s<t.length?t.slice(n,s):t}const Be=["push","pop","shift","splice","unshift"];function Ve(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Be.forEach(e=>{const i="_onData"+T(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const s=n.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"===typeof t[i]&&t[i](...e)}),s}})}))}function We(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(Be.forEach(e=>{delete t[e]}),delete t._chartjs)}function Ne(t){const e=new Set;let i,n;for(i=0,n=t.length;i<n;++i)e.add(t[i]);return e.size===n?t:Array.from(e)}function He(t,e=[""],i=t,n,s=(()=>t[0])){L(n)||(n=oi("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:s,override:s=>He([s,...t],e,i,n)};return new Proxy(o,{deleteProperty(e,i){return delete e[i],delete e._keys,delete t[0][i],!0},get(i,n){return qe(i,n,()=>si(n,e,t,i))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return ri(t).includes(e)},ownKeys(t){return ri(t)},set(t,e,i){const n=t._storage||(t._storage=s());return n[e]=i,delete t[e],delete t._keys,!0}})}function Ue(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:$e(t,n),setContext:e=>Ue(t,e,i,n),override:s=>Ue(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty(e,i){return delete e[i],delete t[i],!0},get(t,e,i){return qe(t,e,()=>Ke(t,e,i))},getOwnPropertyDescriptor(e,i){return e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,i){return Reflect.has(t,i)},ownKeys(){return Reflect.ownKeys(t)},set(e,i,n){return t[i]=n,delete e[i],!0}})}function $e(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:E(i)?i:()=>i,isIndexable:E(n)?n:()=>n}}const Ye=(t,e)=>t?t+T(e):e,Xe=(t,e)=>f(e)&&"adapters"!==t;function qe(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function Ke(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:r}=t;let a=n[e];return E(a)&&r.isScriptable(e)&&(a=Ze(e,a,t,i)),d(a)&&a.length&&(a=Ge(e,a,t,r.isIndexable)),Xe(e,a)&&(a=Ue(a,s,o&&o[e],r)),a}function Ze(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(o,r||n),a.delete(t),f(e)&&(e=ei(s._scopes,s,t,e)),e}function Ge(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=i;if(L(o.index)&&n(t))e=e[o.index%e.length];else if(f(e[0])){const i=e,n=s._scopes.filter(t=>t!==i);e=[];for(const l of i){const i=ei(n,s,t,l);e.push(Ue(i,o,r&&r[t],a))}}return e}function Je(t,e,i){return E(t)?t(e,i):t}const Qe=(t,e)=>!0===t?e:"string"===typeof t?R(e,t):void 0;function ti(t,e,i,n){for(const s of e){const e=Qe(i,s);if(e){t.add(e);const s=Je(e._fallback,i,e);if(L(s)&&s!==i&&s!==n)return s}else if(!1===e&&L(n)&&i!==n)return null}return!1}function ei(t,e,i,n){const s=e._rootScopes,o=Je(e._fallback,i,n),r=[...t,...s],a=new Set;a.add(n);let l=ii(a,r,i,o||i);return null!==l&&((!L(o)||o===i||(l=ii(a,r,o,l),null!==l))&&He(Array.from(a),[""],s,o,()=>ni(e,i,n)))}function ii(t,e,i,n){while(i)i=ti(t,e,i,n);return i}function ni(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];return d(s)&&f(i)?i:s}function si(t,e,i,n){let s;for(const o of e)if(s=oi(Ye(o,t),i),L(s))return Xe(t,s)?ei(i,n,t,s):s}function oi(t,e){for(const i of e){if(!i)continue;const e=i[t];if(L(e))return e}}function ri(t){let e=t._keys;return e||(e=t._keys=ai(t._scopes)),e}function ai(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}const li=Number.EPSILON||1e-14,ci=(t,e)=>e<t.length&&!t[e].skip&&t[e],hi=t=>"x"===t?"y":"x";function ui(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=it(o,s),l=it(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=n*c,d=n*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function di(t,e,i){const n=t.length;let s,o,r,a,l,c=ci(t,0);for(let h=0;h<n-1;++h)l=c,c=ci(t,h+1),l&&c&&(K(e[h],0,li)?i[h]=i[h+1]=0:(s=i[h]/e[h],o=i[h+1]/e[h],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),i[h]=s*r*e[h],i[h+1]=o*r*e[h])))}function fi(t,e,i="x"){const n=hi(i),s=t.length;let o,r,a,l=ci(t,0);for(let c=0;c<s;++c){if(r=a,a=l,l=ci(t,c+1),!a)continue;const s=a[i],h=a[n];r&&(o=(s-r[i])/3,a["cp1"+i]=s-o,a["cp1"+n]=h-o*e[c]),l&&(o=(l[i]-s)/3,a["cp2"+i]=s+o,a["cp2"+n]=h+o*e[c])}}function pi(t,e="x"){const i=hi(e),n=t.length,s=Array(n).fill(0),o=Array(n);let r,a,l,c=ci(t,0);for(r=0;r<n;++r)if(a=l,l=c,c=ci(t,r+1),l){if(c){const t=c[e]-l[e];s[r]=0!==t?(c[i]-l[i])/t:0}o[r]=a?c?$(s[r-1])!==$(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}di(t,s,o),fi(t,o,e)}function gi(t,e,i){return Math.max(Math.min(t,i),e)}function bi(t,e){let i,n,s,o,r,a=pe(t[0],e);for(i=0,n=t.length;i<n;++i)r=o,o=a,a=i<n-1&&pe(t[i+1],e),o&&(s=t[i],r&&(s.cp1x=gi(s.cp1x,e.left,e.right),s.cp1y=gi(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=gi(s.cp2x,e.left,e.right),s.cp2y=gi(s.cp2y,e.top,e.bottom)))}function mi(t,e,i,n,s){let o,r,a,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)pi(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],l=ui(i,a,t[Math.min(o+1,r-(n?0:1))%r],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,i=a}e.capBezierPoints&&bi(t,i)}function xi(){return"undefined"!==typeof window&&"undefined"!==typeof document}function _i(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function yi(t,e,i){let n;return"string"===typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const vi=t=>window.getComputedStyle(t,null);function wi(t,e){return vi(t).getPropertyValue(e)}const Mi=["top","right","bottom","left"];function ki(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=Mi[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const Si=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function Ci(t,e){const i=t.native||t,n=i.touches,s=n&&n.length?n[0]:i,{offsetX:o,offsetY:r}=s;let a,l,c=!1;if(Si(o,r,i.target))a=o,l=r;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,l=s.clientY-t.top,c=!0}return{x:a,y:l,box:c}}function Pi(t,e){const{canvas:i,currentDevicePixelRatio:n}=e,s=vi(i),o="border-box"===s.boxSizing,r=ki(s,"padding"),a=ki(s,"border","width"),{x:l,y:c,box:h}=Ci(t,i),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-u)/f*i.width/n),y:Math.round((c-d)/p*i.height/n)}}function Oi(t,e,i){let n,s;if(void 0===e||void 0===i){const o=_i(t);if(o){const t=o.getBoundingClientRect(),r=vi(o),a=ki(r,"border","width"),l=ki(r,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=yi(r.maxWidth,o,"clientWidth"),s=yi(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||B,maxHeight:s||B}}const Di=t=>Math.round(10*t)/10;function Ai(t,e,i,n){const s=vi(t),o=ki(s,"margin"),r=yi(s.maxWidth,t,"clientWidth")||B,a=yi(s.maxHeight,t,"clientHeight")||B,l=Oi(t,e,i);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=ki(s,"border","width"),e=ki(s,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-o.width),h=Math.max(0,n?Math.floor(c/n):h-o.height),c=Di(Math.min(c,r,l.maxWidth)),h=Di(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Di(c/2)),{width:c,height:h}}function Ri(t,e,i){const n=e||1,s=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=s/n,t.width=o/n;const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=t.height+"px",r.style.width=t.width+"px"),(t.currentDevicePixelRatio!==n||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=n,r.height=s,r.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Ti=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function Li(t,e){const i=wi(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Ei(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function ji(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 zi(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Ei(t,s,i),a=Ei(s,o,i),l=Ei(o,e,i),c=Ei(r,a,i),h=Ei(a,l,i);return Ei(c,h,i)}const Ii=new Map;function Fi(t,e){e=e||{};const i=t+JSON.stringify(e);let n=Ii.get(i);return n||(n=new Intl.NumberFormat(t,e),Ii.set(i,n)),n}function Bi(t,e,i){return Fi(e,i).format(t)}const Vi=function(t,e){return{x(i){return t+t+e-i},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}},Wi=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ni(t,e,i){return t?Vi(e,i):Wi()}function Hi(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Ui(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function $i(t){return"angle"===t?{between:ot,compare:nt,normalize:st}:{between:(t,e,i)=>t>=Math.min(e,i)&&t<=Math.max(i,e),compare:(t,e)=>t-e,normalize:t=>t}}function Yi({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i===0,style:s}}function Xi(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=$i(n),l=e.length;let c,h,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,c=0,h=l;c<h;++c){if(!r(a(e[u%l][n]),s,o))break;u--,d--}u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}function qi(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,r=e.length,{compare:a,between:l,normalize:c}=$i(n),{start:h,end:u,loop:d,style:f}=Xi(t,e,i),p=[];let g,b,m,x=!1,_=null;const y=()=>l(s,m,g)&&0!==a(s,m),v=()=>0===a(o,g)||l(o,m,g),w=()=>x||y(),M=()=>!x||v();for(let k=h,S=h;k<=u;++k)b=e[k%r],b.skip||(g=c(b[n]),g!==m&&(x=l(g,s,o),null===_&&w()&&(_=0===a(g,s)?k:S),null!==_&&M()&&(p.push(Yi({start:_,end:k,loop:d,count:r,style:f})),_=null),S=k,m=g));return null!==_&&p.push(Yi({start:_,end:u,loop:d,count:r,style:f})),p}function Ki(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const o=qi(n[s],t.points,e);o.length&&i.push(...o)}return i}function Zi(t,e,i,n){let s=0,o=e-1;if(i&&!n)while(s<e&&!t[s].skip)s++;while(s<e&&t[s].skip)s++;s%=e,i&&(o+=s);while(o>s&&t[o%e].skip)o--;return o%=e,{start:s,end:o}}function Gi(t,e,i,n){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,l.skip&&(e=r)),l=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}function Ji(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=Zi(i,s,o,n);if(!0===n)return Qi(t,[{start:r,end:a,loop:o}],i,e);const l=a<r?a+s:a,c=!!t._fullLoop&&0===r&&a===s-1;return Qi(t,Gi(i,r,l,c),i,e)}function Qi(t,e,i,n){return n&&n.setContext&&i?tn(t,e,i,n):e}function tn(t,e,i,n){const s=t._chart.getContext(),o=en(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=i.length,c=[];let h=o,u=e[0].start,d=u;function f(t,e,n,s){const o=a?-1:1;if(t!==e){t+=l;while(i[t%l].skip)t-=o;while(i[e%l].skip)e+=o;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:n,style:s}),h=s,u=e%l)}}for(const p of e){u=a?u:p.start;let t,e=i[u%l];for(d=u+1;d<=p.end;d++){const o=i[d%l];t=en(n.setContext(Ee(s,{type:"segment",p0:e,p1:o,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),nn(t,h)&&f(u,d-1,p.loop,h),e=o,h=t}u<d-1&&f(u,d-1,p.loop,h)}return c}function en(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function nn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
  /*!
   * Chart.js v3.6.0
   * https://www.chartjs.org
   * (c) 2021 Chart.js Contributors
   * Released under the MIT License
   */class sn{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const s=e.listeners[n],o=e.duration;s.forEach(n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=n.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var on=new sn;const rn="transparent",an={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const n=te(t||rn),s=n.valid&&te(e||rn);return s&&s.valid?s.mix(n,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class ln{constructor(t,e,i,n){const s=e[i];n=Te([t.to,n,s,t.from]);const o=Te([t.from,s,n]);this._active=!0,this._fn=t.fn||an[t.type||typeof o],this._easing=ut[t.easing]||ut.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Te([t.to,e,n,t.from]),this._from=Te([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<i),!this._active)return this._target[n]=r,void this._notify(!0);e<0?this._target[n]=s:(a=e/i%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let n=0;n<i.length;n++)i[n][e]()}}const cn=["x","y","borderWidth","radius","tension"],hn=["color","borderColor","backgroundColor"];ae.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const un=Object.keys(ae.animation);ae.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),ae.set("animations",{colors:{type:"color",properties:hn},numbers:{type:"number",properties:cn}}),ae.describe("animations",{_fallback:"animation"}),ae.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:t=>0|t}}}});class dn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!f(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const n=t[i];if(!f(n))return;const s={};for(const t of un)s[t]=n[t];(d(n.properties)&&n.properties||[i]).forEach(t=>{t!==i&&e.has(t)||e.set(t,s)})})}_animateOptions(t,e){const i=e.options,n=pn(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&fn(t.options.$animations,i).then(()=>{t.options=i},()=>{}),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let h=s[l];const u=i.get(l);if(h){if(u&&h.active()){h.update(u,c,r);continue}h.cancel()}u&&u.duration?(s[l]=h=new ln(u,t,l,c),n.push(h)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(on.add(this._chart,i),!0):void 0}}function fn(t,e){const i=[],n=Object.keys(e);for(let s=0;s<n.length;s++){const e=t[n[s]];e&&e.active()&&i.push(e.wait())}return Promise.all(i)}function pn(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}function gn(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function bn(t,e,i){if(!1===i)return!1;const n=gn(t,i),s=gn(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}function mn(t){let e,i,n,s;return f(t)?(e=t.top,i=t.right,n=t.bottom,s=t.left):e=i=n=s=t,{top:e,right:i,bottom:n,left:s,disabled:!1===t}}function xn(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s<o;++s)i.push(n[s].index);return i}function _n(t,e,i,n={}){const s=t.keys,o="single"===n.mode;let r,a,l,c;if(null!==e){for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===i){if(n.all)continue;break}c=t.values[l],p(c)&&(o||0===e||$(e)===$(c))&&(e+=c)}return e}}function yn(t){const e=Object.keys(t),i=new Array(e.length);let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n],i[n]={x:o,y:t[o]};return i}function vn(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function wn(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}function Mn(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}function kn(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function Sn(t,e,i,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const e=t[s.index];if(i&&e>0||!i&&e<0)return s.index}return null}function Cn(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,c=r.axis,h=wn(o,r,n),u=e.length;let d;for(let f=0;f<u;++f){const t=e[f],{[l]:i,[c]:o}=t,u=t._stacks||(t._stacks={});d=u[c]=kn(s,h,i),d[a]=o,d._top=Sn(d,r,!0,n.type),d._bottom=Sn(d,r,!1,n.type)}}function Pn(t,e){const i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function On(t,e){return Ee(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Dn(t,e,i){return Ee(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}function An(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i]}}}const Rn=t=>"reset"===t||"none"===t,Tn=(t,e)=>e?t:Object.assign({},t),Ln=(t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:xn(i,!0),values:null};class En{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=vn(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&An(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=b(i.xAxisID,Pn(t,"x")),o=e.yAxisID=b(i.yAxisID,Pn(t,"y")),r=e.rAxisID=b(i.rAxisID,Pn(t,"r")),a=e.indexAxis,l=e.iAxisID=n(a,s,o,r),c=e.vAxisID=n(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&We(this._data,this),t._stacked&&An(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(f(e))this._data=yn(e);else if(i!==e){if(i){We(i,this);const t=this._cachedMeta;An(t),t._parsed=[]}e&&Object.isExtensible(e)&&Ve(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=vn(e.vScale,e),e.stack!==i.stack&&(n=!0,An(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&Cn(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:o}=i,r=s.axis;let a,l,c,h=0===t&&e===n.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=d(n[t])?this.parseArrayData(i,n,t,e):f(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===l[r]||u&&l[r]<u[r];for(a=0;a<e;++a)i._parsed[a+t]=l=c[a],h&&(s()&&(h=!1),u=l);i._sorted=h}o&&Cn(this,c)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,l=s.getLabels(),c=s===o,h=new Array(n);let u,d,f;for(u=0,d=n;u<d;++u)f=u+i,h[u]={[r]:c||s.parse(l[f],f),[a]:o.parse(e[f],f)};return h}parseArrayData(t,e,i,n){const{xScale:s,yScale:o}=t,r=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],r[a]={x:s.parse(h[0],c),y:o.parse(h[1],c)};return r}parseObjectData(t,e,i,n){const{xScale:s,yScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l=new Array(n);let c,h,u,d;for(c=0,h=n;c<h;++c)u=c+i,d=e[u],l[c]={x:s.parse(R(d,r),u),y:o.parse(R(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,s=this._cachedMeta,o=e[t.axis],r={keys:xn(n,!0),values:e._stacks[t.axis]};return _n(r,o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let o=null===s?NaN:s;const r=n&&i._stacks[e.axis];n&&r&&(n.values=r,o=_n(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,n=i._parsed,s=i._sorted&&t===i.iScale,o=n.length,r=this._getOtherScale(t),a=Ln(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=Mn(r);let u,d;function f(){d=n[u];const e=d[r.axis];return!p(d[t.axis])||c>e||h<e}for(u=0;u<o;++u)if(!f()&&(this.updateRangeFromParsed(l,t,d,a),s))break;if(s)for(u=o-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,d,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n][t.axis],p(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(t){const e=this._cachedMeta;this.configure(),this._cachedDataOpts={},this.update(t||"default"),e._clip=mn(b(this.options.clip,bn(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,n=i.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||n.length-r;let l;for(i.dataset&&i.dataset.draw(t,s,r,a),l=r;l<r+a;++l){const e=n[l];e.hidden||(e.active?o.push(e):e.draw(t,s))}for(l=0;l<o.length;++l)o[l].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const n=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=Dn(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=n.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=On(this.chart.getContext(),this.index)),s.dataset=n,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const n="active"===e,s=this._cachedDataOpts,o=t+"-"+e,r=s[o],a=this.enableOptionSharing&&L(i);if(r)return Tn(r,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=n?[t+"Hover","hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),d=Object.keys(ae.elements[t]),f=()=>this.getContext(i,n),p=l.resolveNamedOptions(u,d,f,h);return p.$shared&&(p.$shared=a,s[o]=Object.freeze(Tn(p,a))),p}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o="animation-"+e,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const l=new dn(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Rn(t)||this.chart._animationsDisabled}updateElement(t,e,i,n){Rn(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Rn(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[r,a,l]of this._syncList)this[r](a,l);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s<n&&this._removeElements(s,n-s)}_insertElements(t,e,i=!0){const n=this._cachedMeta,s=n.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&An(i,n)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,n]=t;this[e](i,n)}}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){this._sync(["_removeElements",t,e]),this._sync(["_insertElements",t,arguments.length-2])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function jn(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,s=i.length;e<s;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=Ne(n.sort((t,e)=>t-e))}return t._cache.$bar}function zn(t){const e=t.iScale,i=jn(e,t.type);let n,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(L(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(n=0,s=i.length;n<s;++n)o=e.getPixelForValue(i[n]),l();for(r=void 0,n=0,s=e.ticks.length;n<s;++n)o=e.getPixelForTick(n),l();return a}function In(t,e,i,n){const s=i.barThickness;let o,r;return u(s)?(o=e.min*i.categoryPercentage,r=i.barPercentage):(o=s*n,r=1),{chunk:o/n,ratio:r,start:e.pixels[t]-o/2}}function Fn(t,e,i,n){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const l=i.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l,h=Math.abs(a-r)/2*l;return{chunk:h/n,ratio:i.barPercentage,start:c}}function Bn(t,e,i,n){const s=i.parse(t[0],n),o=i.parse(t[1],n),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}function Vn(t,e,i,n){return d(t)?Bn(t,e,i,n):e[i.axis]=i.parse(t,n),e}function Wn(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,u,d;for(c=i,h=i+n;c<h;++c)d=e[c],u={},u[s.axis]=a||s.parse(r[c],c),l.push(Vn(d,u,o,c));return l}function Nn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Hn(t,e,i){return 0!==t?$(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}function Un(t){let e,i,n,s,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",o="start"):(s="start",o="end"),{start:i,end:n,reverse:e,top:s,bottom:o}}function $n(t,e,i,n){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);const{start:r,end:a,reverse:l,top:c,bottom:h}=Un(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=c:(i._bottom||0)===n?s=h:(o[Yn(h,r,a,l)]=!0,s=c)),o[Yn(s,r,a,l)]=!0,t.borderSkipped=o}function Yn(t,e,i,n){return n?(t=Xn(t,e,i),t=qn(t,i,e)):t=qn(t,e,i),t}function Xn(t,e,i){return t===e?i:t===i?e:t}function qn(t,e,i){return"start"===t?e:"end"===t?i:t}function Kn(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}En.defaults={},En.prototype.datasetElementType=null,En.prototype.dataElementType=null;class Zn extends En{parsePrimitiveData(t,e,i,n){return Wn(t,e,i,n)}parseArrayData(t,e,i,n){return Wn(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,c="x"===o.axis?r:a,h=[];let u,d,f,p;for(u=i,d=i+n;u<d;++u)p=e[u],f={},f[s.axis]=s.parse(R(p,l),u),h.push(Vn(R(p,c),f,o,u));return h}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,s=this.getParsed(t),o=s._custom,r=Nn(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,n){const s="reset"===n,{index:o,_cachedMeta:{vScale:r}}=this,a=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),h=this.resolveDataElementOptions(e,n),d=this.getSharedOptions(h),f=this.includeOptions(n,d);this.updateSharedOptions(d,n,h);for(let p=e;p<e+i;p++){const e=this.getParsed(p),i=s||u(e[r.axis])?{base:a,head:a}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),g=(e._stacks||{})[r.axis],b={horizontal:l,base:i.base,enableBorderRadius:!g||Nn(e._custom)||o===g._top||o===g._bottom,x:l?i.head:h.center,y:l?h.center:i.head,height:l?h.size:Math.abs(i.size),width:l?Math.abs(i.size):h.size};f&&(b.options=d||this.resolveDataElementOptions(p,t[p].active?"active":n));const m=b.options||t[p].options;$n(b,m,g,o),Kn(b,m,c.ratio),this.updateElement(t[p],p,b,n)}}_getStacks(t,e){const i=this._cachedMeta,n=i.iScale,s=n.getMatchingVisibleMetas(this._type),o=n.options.stacked,r=s.length,a=[];let l,c;for(l=0;l<r;++l)if(c=s[l],c.controller.options.grouped){if("undefined"!==typeof e){const t=c.controller.getParsed(e)[c.controller._cachedMeta.vScale.axis];if(u(t)||isNaN(t))continue}if((!1===o||-1===a.indexOf(c.stack)||void 0===o&&void 0===c.stack)&&a.push(c.stack),c.index===t)break}return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s<o;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const r=t.barThickness,a=r||zn(e);return{min:a,pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:n,minBarLength:s}}=this,o=n||0,r=this.getParsed(t),a=r._custom,l=Nn(a);let c,h,d=r[e.axis],f=0,p=i?this.applyStack(e,r,i):d;p!==d&&(f=p-d,p=d),l&&(d=a.barStart,p=a.barEnd-a.barStart,0!==d&&$(d)!==$(a.barEnd)&&(f=0),f+=d);const g=u(n)||l?f:n;let b=e.getPixelForValue(g);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(f+p):b,h=c-b,Math.abs(h)<s&&(h=Hn(h,e,o)*s,d===o&&(b-=h/2),c=b+h),b===e.getPixelForValue(o)){const t=$(h)*e.getLineWidthForValue(o)/2;b+=t,h-=t}return{size:h,base:b,head:c,center:c+h/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=b(n.maxBarThickness,1/0);let r,a;if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?Fn(t,e,n,i):In(t,e,n,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);r=l.start+l.chunk*c+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),a=Math.min(o,e.min*e.ratio);return{base:r-a/2,head:r+a/2,center:r,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[e.axis]&&i[s].draw(this._ctx)}}Zn.id="bar",Zn.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Zn.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Gn extends En{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const s=super.parsePrimitiveData(t,e,i,n);for(let o=0;o<s.length;o++)s[o]._custom=this.resolveDataElementOptions(o+i).radius;return s}parseArrayData(t,e,i,n){const s=super.parseArrayData(t,e,i,n);for(let o=0;o<s.length;o++){const t=e[i+o];s[o]._custom=b(t[2],this.resolveDataElementOptions(o+i).radius)}return s}parseObjectData(t,e,i,n){const s=super.parseObjectData(t,e,i,n);for(let o=0;o<s.length;o++){const t=e[i+o];s[o]._custom=b(t&&t.r&&+t.r,this.resolveDataElementOptions(o+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,s=this.getParsed(t),o=i.getLabelForValue(s.x),r=n.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+o+", "+r+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,a=this.resolveDataElementOptions(e,n),l=this.getSharedOptions(a),c=this.includeOptions(n,l),h=o.axis,u=r.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!s&&this.getParsed(d),a={},l=a[h]=s?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),f=a[u]=s?r.getBasePixel():r.getPixelForValue(i[u]);a.skip=isNaN(l)||isNaN(f),c&&(a.options=this.resolveDataElementOptions(d,e.active?"active":n),s&&(a.options.radius=0)),this.updateElement(e,d,a,n)}this.updateSharedOptions(l,n,a)}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const s=n.radius;return"active"!==e&&(n.radius=0),n.radius+=b(i&&i._custom,s),n}}function Jn(t,e,i){let n=1,s=1,o=0,r=0;if(e<I){const a=t,l=a+e,c=Math.cos(a),h=Math.sin(a),u=Math.cos(l),d=Math.sin(l),f=(t,e,n)=>ot(t,a,l,!0)?1:Math.max(e,e*i,n,n*i),p=(t,e,n)=>ot(t,a,l,!0)?-1:Math.min(e,e*i,n,n*i),g=f(0,c,u),b=f(W,h,d),m=p(z,c,u),x=p(z+W,h,d);n=(g-m)/2,s=(b-x)/2,o=-(g+m)/2,r=-(b+x)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:r}}Gn.id="bubble",Gn.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Gn.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};class Qn extends En{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,o,r=t=>+i[t];if(f(i[t])){const{key:t="value"}=this._parsing;r=e=>+R(i[e],t)}for(s=t,o=t+e;s<o;++s)n._parsed[s]=r(s)}}_getRotation(){return J(this.options.rotation-90)}_getCircumference(){return J(this.options.circumference)}_getRotationExtents(){let t=I,e=-I;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),o=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,n=this._cachedMeta,s=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(i.width,i.height)-o)/2,0),a=Math.min(m(this.options.cutout,r),1),l=this._getRingWeight(this.index),{circumference:c,rotation:h}=this._getRotationExtents(),{ratioX:u,ratioY:d,offsetX:f,offsetY:p}=Jn(h,c,a),g=(i.width-o)/u,b=(i.height-o)/d,_=Math.max(Math.min(g,b)/2,0),y=x(this.options.radius,_),v=Math.max(y*a,0),w=(y-v)/this._getVisibleDatasetWeightTotal();this.offsetX=f*y,this.offsetY=p*y,n.total=this.calculateTotal(),this.outerRadius=y-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*l,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/I)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.chartArea,a=o.options,l=a.animation,c=(r.left+r.right)/2,h=(r.top+r.bottom)/2,u=s&&l.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,p=this.resolveDataElementOptions(e,n),g=this.getSharedOptions(p),b=this.includeOptions(n,g);let m,x=this._getRotation();for(m=0;m<e;++m)x+=this._circumference(m,s);for(m=e;m<e+i;++m){const e=this._circumference(m,s),i=t[m],o={x:c+this.offsetX,y:h+this.offsetY,startAngle:x,endAngle:x+e,circumference:e,outerRadius:f,innerRadius:d};b&&(o.options=g||this.resolveDataElementOptions(m,i.active?"active":n)),x+=e,this.updateElement(i,m,o,n)}this.updateSharedOptions(g,n,p)}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const s=t._parsed[i];null===s||isNaN(s)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(s))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?I*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=Bi(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){o=i.getDatasetMeta(n),t=o.data,r=o.controller,r!==this&&r.configure();break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)a=r.resolveDataElementOptions(n),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(b(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Qn.id="doughnut",Qn.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Qn.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Qn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,n)=>{const s=t.getDatasetMeta(0),o=s.controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){let e=t.label;const i=": "+t.formattedValue;return d(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class ts extends En{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:r,count:a}=es(e,n,o);this._drawStart=r,this._drawCount=a,is(e)&&(r=0,a=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(n,r,a,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),h=this.getSharedOptions(c),d=this.includeOptions(n,h),f=o.axis,p=r.axis,{spanGaps:g,segment:b}=this.options,m=q(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||s||"none"===n;let _=e>0&&this.getParsed(e-1);for(let y=e;y<e+i;++y){const e=t[y],i=this.getParsed(y),c=x?e:{},g=u(i[p]),v=c[f]=o.getPixelForValue(i[f],y),w=c[p]=s||g?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,i,a):i[p],y);c.skip=isNaN(v)||isNaN(w)||g,c.stop=y>0&&i[f]-_[f]>m,b&&(c.parsed=i,c.raw=l.data[y]),d&&(c.options=h||this.resolveDataElementOptions(y,e.active?"active":n)),x||this.updateElement(e,y,c,n),_=i}this.updateSharedOptions(h,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function es(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:h,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=rt(Math.min(ze(a,r.axis,c).lo,i?n:ze(e,l,r.getPixelForValue(c)).lo),0,n-1)),o=d?rt(Math.max(ze(a,r.axis,h).hi+1,i?0:ze(e,l,r.getPixelForValue(h)).hi+1),s,n)-s:n-s}return{start:s,count:o}}function is(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}ts.id="line",ts.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},ts.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class ns extends En{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=Bi(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0),r=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=this.getDataset(),a=o.options,l=a.animation,c=this._cachedMeta.rScale,h=c.xCenter,u=c.yCenter,d=c.getIndexAngle(0)-.5*z;let f,p=d;const g=360/this.countVisibleElements();for(f=0;f<e;++f)p+=this._computeAngle(f,n,g);for(f=e;f<e+i;f++){const e=t[f];let i=p,a=p+this._computeAngle(f,n,g),b=o.getDataVisibility(f)?c.getDistanceFromCenterForValue(r.data[f]):0;p=a,s&&(l.animateScale&&(b=0),l.animateRotate&&(i=a=d));const m={x:h,y:u,innerRadius:0,outerRadius:b,startAngle:i,endAngle:a,options:this.resolveDataElementOptions(f,e.active?"active":n)};this.updateElement(e,f,m,n)}}countVisibleElements(){const t=this.getDataset(),e=this._cachedMeta;let i=0;return e.data.forEach((e,n)=>{!isNaN(t.data[n])&&this.chart.getDataVisibility(n)&&i++}),i}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?J(this.resolveDataElementOptions(t,e).angle||i):0}}ns.id="polarArea",ns.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},ns.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,n)=>{const s=t.getDatasetMeta(0),o=s.controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){return t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class ss extends Qn{}ss.id="pie",ss.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class os extends En{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this.getDataset(),o=this._cachedMeta.rScale,r="reset"===n;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":n),l=o.getPointPositionForValue(a,s.data[a]),c=r?o.xCenter:l.x,h=r?o.yCenter:l.y,u={x:c,y:h,angle:l.angle,skip:isNaN(c)||isNaN(h),options:i};this.updateElement(e,a,u,n)}}}os.id="radar",os.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},os.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class rs extends ts{}rs.id="scatter",rs.defaults={showLine:!1,fill:!1},rs.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var as=Object.freeze({__proto__:null,BarController:Zn,BubbleController:Gn,DoughnutController:Qn,LineController:ts,PolarAreaController:ns,PieController:ss,RadarController:os,ScatterController:rs});function ls(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class cs{constructor(t){this.options=t||{}}formats(){return ls()}parse(t,e){return ls()}format(t,e){return ls()}add(t,e,i){return ls()}diff(t,e,i){return ls()}startOf(t,e,i){return ls()}endOf(t,e){return ls()}}cs.override=function(t){Object.assign(cs.prototype,t)};var hs={_date:cs};function us(t,e){return"native"in t?{x:t.x,y:t.y}:Pi(t,e)}function ds(t,e){const i=t.getSortedVisibleDatasetMetas();let n,s,o;for(let r=0,a=i.length;r<a;++r){({index:n,data:s}=i[r]);for(let t=0,i=s.length;t<i;++t)o=s[t],o.skip||e(o,n,t)}}function fs(t,e,i,n){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&r&&o.length){const t=a._reversePixels?Ie:ze;if(!n)return t(o,e,i);if(s._sharedOptions){const n=o[0],s="function"===typeof n.getRange&&n.getRange(e);if(s){const n=t(o,e,i-s),r=t(o,e,i+s);return{lo:n.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function ps(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let a=0,l=o.length;a<l;++a){const{index:t,data:i}=o[a],{lo:l,hi:c}=fs(o[a],e,r,s);for(let e=l;e<=c;++e){const s=i[e];s.skip||n(s,t,e)}}}function gs(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const s=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function bs(t,e,i,n){const s=[];if(!pe(e,t.chartArea,t._minPadding))return s;const o=function(t,i,o){t.inRange(e.x,e.y,n)&&s.push({element:t,datasetIndex:i,index:o})};return ps(t,i,e,o,!0),s}function ms(t,e,i,n,s){const o=gs(i);let r=Number.POSITIVE_INFINITY,a=[];if(!pe(e,t.chartArea,t._minPadding))return a;const l=function(i,l,c){if(n&&!i.inRange(e.x,e.y,s))return;const h=i.getCenterPoint(s);if(!pe(h,t.chartArea,t._minPadding)&&!i.inRange(e.x,e.y,s))return;const u=o(e,h);u<r?(a=[{element:i,datasetIndex:l,index:c}],r=u):u===r&&a.push({element:i,datasetIndex:l,index:c})};return ps(t,i,e,l),a}function xs(t,e,i,n){const s=us(e,t),o=[],r=i.axis,a="x"===r?"inXRange":"inYRange";let l=!1;return ds(t,(t,e,i)=>{t[a](s[r],n)&&o.push({element:t,datasetIndex:e,index:i}),t.inRange(s.x,s.y,n)&&(l=!0)}),i.intersect&&!l?[]:o}var _s={modes:{index(t,e,i,n){const s=us(e,t),o=i.axis||"x",r=i.intersect?bs(t,s,o,n):ms(t,s,o,!1,n),a=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&a.push({element:i,datasetIndex:t.index,index:e})}),a):[]},dataset(t,e,i,n){const s=us(e,t),o=i.axis||"xy";let r=i.intersect?bs(t,s,o,n):ms(t,s,o,!1,n);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point(t,e,i,n){const s=us(e,t),o=i.axis||"xy";return bs(t,s,o,n)},nearest(t,e,i,n){const s=us(e,t),o=i.axis||"xy";return ms(t,s,o,i.intersect,n)},x(t,e,i,n){return i.axis="x",xs(t,e,i,n)},y(t,e,i,n){return i.axis="y",xs(t,e,i,n)}}};const ys=["left","top","right","bottom"];function vs(t,e){return t.filter(t=>t.pos===e)}function ws(t,e){return t.filter(t=>-1===ys.indexOf(t.pos)&&t.box.axis===e)}function Ms(t,e){return t.sort((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight})}function ks(t){const e=[];let i,n,s,o,r,a;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:i,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}function Ss(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!ys.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}function Cs(t,e){const i=Ss(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,l=i[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*n:r&&e.availableWidth,a.height=s):(a.width=n,a.height=c?c*s:r&&e.availableHeight)}return i}function Ps(t){const e=ks(t),i=Ms(e.filter(t=>t.box.fullSize),!0),n=Ms(vs(e,"left"),!0),s=Ms(vs(e,"right")),o=Ms(vs(e,"top"),!0),r=Ms(vs(e,"bottom")),a=ws(e,"x"),l=ws(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:vs(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}function Os(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Ds(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 As(t,e,i,n){const{pos:s,box:o}=i,r=t.maxPadding;if(!f(s)){i.size&&(t[s]-=i.size);const e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[s]+=i.size}o.getPadding&&Ds(r,o.getPadding());const a=Math.max(0,e.outerWidth-Os(r,t,"left","right")),l=Math.max(0,e.outerHeight-Os(r,t,"top","bottom")),c=a!==t.w,h=l!==t.h;return t.w=a,t.h=l,i.horizontal?{same:c,other:h}:{same:h,other:c}}function Rs(t){const e=t.maxPadding;function i(i){const 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")}function Ts(t,e){const i=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{n[t]=Math.max(e[t],i[t])}),n}return n(t?["left","right"]:["top","bottom"])}function Ls(t,e,i,n){const s=[];let o,r,a,l,c,h;for(o=0,r=t.length,c=0;o<r;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,Ts(a.horizontal,e));const{same:r,other:u}=As(e,i,a,n);c|=r&&s.length,h=h||u,l.fullSize||s.push(a)}return c&&Ls(s,e,i,n)||h}function Es(t,e,i,n,s){t.top=i,t.left=e,t.right=e+n,t.bottom=i+s,t.width=n,t.height=s}function js(t,e,i,n){const s=i.padding;let{x:o,y:r}=e;for(const a of t){const t=a.box,l=n[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const n=e.w*c,o=l.size||t.height;L(l.start)&&(r=l.start),t.fullSize?Es(t,s.left,r,i.outerWidth-s.right-s.left,o):Es(t,e.left+l.placed,r,n,o),l.start=r,l.placed+=n,r=t.bottom}else{const n=e.h*c,r=l.size||t.width;L(l.start)&&(o=l.start),t.fullSize?Es(t,o,s.top,r,i.outerHeight-s.bottom-s.top):Es(t,o,e.top+l.placed,r,n),l.start=o,l.placed+=n,o=t.right}}e.x=o,e.y=r}ae.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var zs={addBox(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(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,n){if(!t)return;const s=Ae(t.options.layout.padding),o=Math.max(e-s.width,0),r=Math.max(i-s.height,0),a=Ps(t.boxes),l=a.vertical,c=a.horizontal;y(t.boxes,t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()});const h=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);Ds(d,Ae(n));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),p=Cs(l.concat(c),u);Ls(a.fullSize,f,u,p),Ls(l,f,u,p),Ls(c,f,u,p)&&Ls(l,f,u,p),Rs(f),js(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,js(a.rightAndBottom,f,u,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},y(a.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h)})}};class Is{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(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)}}isAttached(t){return!0}updateConfig(t){}}class Fs extends Is{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bs="$chartjs",Vs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ws=t=>null===t||""===t;function Ns(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[Bs]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Ws(s)){const e=Li(t,"width");void 0!==e&&(t.width=e)}if(Ws(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Li(t,"height");void 0!==e&&(t.height=e)}return t}const Hs=!!Ti&&{passive:!0};function Us(t,e,i){t.addEventListener(e,i,Hs)}function $s(t,e,i){t.canvas.removeEventListener(e,i,Hs)}function Ys(t,e){const i=Vs[t.type]||t.type,{x:n,y:s}=Pi(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}function Xs(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{for(const e of t)for(const t of e.addedNodes)if(t===n||t.contains(n))return i()});return s.observe(document,{childList:!0,subtree:!0}),s}function qs(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{for(const e of t)for(const t of e.removedNodes)if(t===n||t.contains(n))return i()});return s.observe(document,{childList:!0,subtree:!0}),s}const Ks=new Map;let Zs=0;function Gs(){const t=window.devicePixelRatio;t!==Zs&&(Zs=t,Ks.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function Js(t,e){Ks.size||window.addEventListener("resize",Gs),Ks.set(t,e)}function Qs(t){Ks.delete(t),Ks.size||window.removeEventListener("resize",Gs)}function to(t,e,i){const n=t.canvas,o=n&&_i(n);if(!o)return;const r=s((t,e)=>{const n=o.clientWidth;i(t,e),n<o.clientWidth&&i()},window),a=new ResizeObserver(t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||r(i,n)});return a.observe(o),Js(t,r),a}function eo(t,e,i){i&&i.disconnect(),"resize"===e&&Qs(t)}function io(t,e,i){const n=t.canvas,o=s(e=>{null!==t.ctx&&i(Ys(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return Us(n,e,o),o}class no extends Is{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Ns(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Bs])return!1;const i=e[Bs].initial;["height","width"].forEach(t=>{const n=i[t];u(n)?e.removeAttribute(t):e.setAttribute(t,n)});const n=i.style||{};return Object.keys(n).forEach(t=>{e.style[t]=n[t]}),e.width=e.width,delete e[Bs],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:Xs,detach:qs,resize:to},o=s[e]||io;n[e]=o(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;const s={attach:eo,detach:eo,resize:eo},o=s[e]||$s;o(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return Ai(t,e,i,n)}isAttached(t){const e=_i(t);return!(!e||!e.isConnected)}}function so(t){return!xi()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Fs:no}class oo{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return q(this.x)&&q(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach(t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),n}}oo.defaults={},oo.defaultRoutes=void 0;const ro={values(t){return d(t)?t:""+t},numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=ao(t,i)}const r=U(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Bi(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(U(t)));return 1===n||2===n||5===n?ro.numeric.call(this,t,e,i):""}};function ao(t,e){let 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}var lo={formatters:ro};function co(t,e){const i=t.options.ticks,n=i.maxTicksLimit||ho(t),s=i.major.enabled?fo(e):[],o=s.length,r=s[0],a=s[o-1],l=[];if(o>n)return po(e,l,s,o/n),l;const c=uo(s,e,n);if(o>0){let t,i;const n=o>1?Math.round((a-r)/(o-1)):null;for(go(e,l,c,u(n)?0:r-n,r),t=0,i=o-1;t<i;t++)go(e,l,c,s[t],s[t+1]);return go(e,l,c,a,u(n)?e.length:a+n),l}return go(e,l,c),l}function ho(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}function uo(t,e,i){const n=bo(t),s=e.length/i;if(!n)return Math.max(s,1);const o=X(n);for(let r=0,a=o.length-1;r<a;r++){const t=o[r];if(t>s)return t}return Math.max(s,1)}function fo(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}function po(t,e,i,n){let s,o=0,r=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=i[o*n])}function go(t,e,i,n,s){const o=b(n,0),r=Math.min(b(s,t.length),t.length);let a,l,c,h=0;i=Math.ceil(i),s&&(a=s-n,i=a/Math.floor(a/i)),c=o;while(c<0)h++,c=Math.round(o+h*i);for(l=Math.max(o,0);l<r;l++)l===c&&(e.push(t[l]),h++,c=Math.round(o+h*i))}function bo(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}ae.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:lo.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ae.route("scale.ticks","color","","color"),ae.route("scale.grid","color","","borderColor"),ae.route("scale.grid","borderColor","","borderColor"),ae.route("scale.title","color","","color"),ae.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),ae.describe("scales",{_fallback:"scale"}),ae.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const mo=t=>"left"===t?"right":"right"===t?"left":t,xo=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function _o(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;o<s;o+=n)i.push(t[Math.floor(o)]);return i}function yo(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),o=t._startPixel,r=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(s);if(!(i&&(l=1===n?Math.max(c-o,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(s-1))/2,c+=s<e?l:-l,c<o-a||c>r+a)))return c}function vo(t,e){y(t,t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s<n;++s)delete t.data[i[s]];i.splice(0,n)}})}function wo(t){return t.drawTicks?t.tickLength:0}function Mo(t,e){if(!t.display)return 0;const i=Re(t.font,e),n=Ae(t.padding),s=d(t.text)?t.text.length:1;return s*i.lineHeight+n.height}function ko(t,e){return Ee(t,{scale:e,type:"scale"})}function So(t,e,i){return Ee(t,{tick:i,index:e,type:"tick"})}function Co(t,e,i){let n=r(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=mo(n)),n}function Po(t,e,i,n){const{top:s,left:o,bottom:r,right:l,chart:c}=t,{chartArea:h,scales:u}=c;let d,p,g,b=0;const m=r-s,x=l-o;if(t.isHorizontal()){if(p=a(n,o,l),f(i)){const t=Object.keys(i)[0],n=i[t];g=u[t].getPixelForValue(n)+m-e}else g="center"===i?(h.bottom+h.top)/2+m-e:xo(t,i,e);d=l-o}else{if(f(i)){const t=Object.keys(i)[0],n=i[t];p=u[t].getPixelForValue(n)-x+e}else p="center"===i?(h.left+h.right)/2-x+e:xo(t,i,e);g=a(n,r,s),b="left"===i?-W:W}return{titleX:p,titleY:g,maxWidth:d,rotation:b}}class Oo extends oo{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=g(t,Number.POSITIVE_INFINITY),e=g(e,Number.NEGATIVE_INFINITY),i=g(i,Number.POSITIVE_INFINITY),n=g(n,Number.NEGATIVE_INFINITY),{min:g(t,i),max:g(e,n),minDefined:p(t),maxDefined:p(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),s||(i=Math.min(i,e.min)),o||(n=Math.max(n,e.max));return i=o&&i>n?n:i,n=s&&i>n?i:n,{min:g(i,g(n,i)),max:g(n,g(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){_(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Le(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r<this.ticks.length;this._convertTicksToLabels(a?_o(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=co(this,this.ticks),this._labelSizes=null),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){_(this.options.afterUpdate,[this])}beforeSetDimensions(){_(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){_(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),_(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){_(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,n,s;for(i=0,n=t.length;i<n;i++)s=t[i],s.label=_(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){_(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){_(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,n=e.minRotation||0,s=e.maxRotation;let o,r,a,l=n;if(!this._isVisible()||!e.display||n>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),h=c.widest.width,u=c.highest.height,d=rt(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/i:d/(i-1),h+6>o&&(o=d/(i-(t.offset?.5:1)),r=this.maxHeight-wo(t.grid)-e.padding-Mo(t.title,this.chart.options.font),a=Math.sqrt(h*h+u*u),l=Q(Math.min(Math.asin(rt((c.highest.height+6)/o,-1,1)),Math.asin(rt(r/a,-1,1))-Math.asin(rt(u/a,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){_(this.options.afterCalculateLabelRotation,[this])}beforeFit(){_(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=Mo(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=wo(s)+o):(t.height=this.maxHeight,t.width=wo(s)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:o}=this._getLabelSizes(),a=2*i.padding,l=J(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(r){const e=i.mirror?0:h*s.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:c*s.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,h,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?l?(h=n*t.width,u=i*e.height):(h=i*t.height,u=n*e.width):"start"===s?u=e.width:"end"===s?h=t.width:(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-c+o)*this.width/(this.width-c),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){_(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)u(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=_o(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:n}=this,s=[],o=[];let r,a,l,c,h,f,p,g,b,m,x,_=0,y=0;for(r=0;r<e;++r){if(c=t[r].label,h=this._resolveTickFontOptions(r),i.font=f=h.string,p=n[f]=n[f]||{data:{},gc:[]},g=h.lineHeight,b=m=0,u(c)||d(c)){if(d(c))for(a=0,l=c.length;a<l;++a)x=c[a],u(x)||d(x)||(b=ce(i,p.data,p.gc,b,x),m+=g)}else b=ce(i,p.data,p.gc,b,c),m=g;s.push(b),o.push(m),_=Math.max(b,_),y=Math.max(m,y)}vo(n,e);const v=s.indexOf(_),w=o.indexOf(y),M=t=>({width:s[t]||0,height:o[t]||0});return{first:M(0),last:M(e-1),widest:M(v),highest:M(w),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return at(this._alignToPixels?ue(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=So(this.getContext(),t,i))}return this.$context||(this.$context=ko(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=J(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,r=s?s.widest.width+o:0,a=s?s.highest.height+o:0;return this.isHorizontal()?a*i>r*n?r/i:a/n:a*n<r*i?a/i:r/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:o}=n,r=s.offset,a=this.isHorizontal(),l=this.ticks,c=l.length+(r?1:0),h=wo(s),u=[],d=s.setContext(this.getContext()),p=d.drawBorder?d.borderWidth:0,g=p/2,m=function(t){return ue(i,t,p)};let x,_,y,v,w,M,k,S,C,P,O,D;if("top"===o)x=m(this.bottom),M=this.bottom-h,S=x-g,P=m(t.top)+g,D=t.bottom;else if("bottom"===o)x=m(this.top),P=t.top,D=m(t.bottom)-g,M=x+g,S=this.top+h;else if("left"===o)x=m(this.right),w=this.right-h,k=x-g,C=m(t.left)+g,O=t.right;else if("right"===o)x=m(this.left),C=t.left,O=m(t.right)-g,w=x+g,k=this.left+h;else if("x"===e){if("center"===o)x=m((t.top+t.bottom)/2+.5);else if(f(o)){const t=Object.keys(o)[0],e=o[t];x=m(this.chart.scales[t].getPixelForValue(e))}P=t.top,D=t.bottom,M=x+g,S=M+h}else if("y"===e){if("center"===o)x=m((t.left+t.right)/2);else if(f(o)){const t=Object.keys(o)[0],e=o[t];x=m(this.chart.scales[t].getPixelForValue(e))}w=x-g,k=w-h,C=t.left,O=t.right}const A=b(n.ticks.maxTicksLimit,c),R=Math.max(1,Math.ceil(c/A));for(_=0;_<c;_+=R){const t=s.setContext(this.getContext(_)),e=t.lineWidth,n=t.color,o=s.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;y=yo(this,_,r),void 0!==y&&(v=ue(i,y,e),a?w=k=C=O=v:M=S=P=D=v,u.push({tx1:w,ty1:M,tx2:k,ty2:S,x1:C,y1:P,x2:O,y2:D,width:e,color:n,borderDash:o,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=c,this._borderValue=x,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:n,ticks:s}=i,o=this.isHorizontal(),r=this.ticks,{align:a,crossAlign:l,padding:c,mirror:h}=s,u=wo(i.grid),p=u+c,g=h?-c:p,b=-J(this.labelRotation),m=[];let x,_,y,v,w,M,k,S,C,P,O,D,A="middle";if("top"===n)M=this.bottom-g,k=this._getXAxisLabelAlignment();else if("bottom"===n)M=this.top+g,k=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(u);k=t.textAlign,w=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(u);k=t.textAlign,w=t.x}else if("x"===e){if("center"===n)M=(t.top+t.bottom)/2+p;else if(f(n)){const t=Object.keys(n)[0],e=n[t];M=this.chart.scales[t].getPixelForValue(e)+p}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)w=(t.left+t.right)/2-p;else if(f(n)){const t=Object.keys(n)[0],e=n[t];w=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===a?A="top":"end"===a&&(A="bottom"));const R=this._getLabelSizes();for(x=0,_=r.length;x<_;++x){y=r[x],v=y.label;const t=s.setContext(this.getContext(x));S=this.getPixelForTick(x)+s.labelOffset,C=this._resolveTickFontOptions(x),P=C.lineHeight,O=d(v)?v.length:1;const e=O/2,i=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let u;if(o?(w=S,D="top"===n?"near"===l||0!==b?-O*P+P/2:"center"===l?-R.highest.height/2-e*P+P:-R.highest.height+P/2:"near"===l||0!==b?P/2:"center"===l?R.highest.height/2-e*P:R.highest.height-O*P,h&&(D*=-1)):(M=S,D=(1-O)*P/2),t.showLabelBackdrop){const e=Ae(t.backdropPadding),i=R.heights[x],n=R.widths[x];let s=M+D-e.top,o=w-e.left;switch(A){case"middle":s-=i/2;break;case"bottom":s-=i;break}switch(k){case"center":o-=n/2;break;case"right":o-=n;break}u={left:o,top:s,width:n+e.width,height:i+e.height,color:t.backdropColor}}m.push({rotation:b,label:v,font:C,color:i,strokeColor:a,strokeWidth:c,textOffset:D,textAlign:k,textBaseline:A,translation:[w,M],backdrop:u})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options,i=-J(this.labelRotation);if(i)return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align&&(n="right"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=this._getLabelSizes(),r=t+s,a=o.widest.width;let l,c;return"left"===e?n?(c=this.right+s,"near"===i?l="left":"center"===i?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-r,"near"===i?l="right":"center"===i?(l="center",c-=a/2):(l="left",c=this.left)):"right"===e?n?(c=this.left+s,"near"===i?l="right":"center"===i?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+r,"near"===i?l="left":"center"===i?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:n,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks,n=i.findIndex(e=>e.value===t);if(n>=0){const t=e.setContext(this.getContext(n));return t.lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s<o;++s){const t=n[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:i}}=this,n=i.setContext(this.getContext()),s=i.drawBorder?n.borderWidth:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let a,l,c,h;this.isHorizontal()?(a=ue(t,this.left,s)-s/2,l=ue(t,this.right,o)+o/2,c=h=r):(c=ue(t,this.top,s)-s/2,h=ue(t,this.bottom,o)+o/2,a=l=r),e.save(),e.lineWidth=n.borderWidth,e.strokeStyle=n.borderColor,e.beginPath(),e.moveTo(a,c),e.lineTo(l,h),e.stroke(),e.restore()}drawLabels(t){const e=this.options.ticks;if(!e.display)return;const i=this.ctx,n=this._computeLabelArea();n&&ge(i,n);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=s.length;o<r;++o){const t=s[o],e=t.font,n=t.label;t.backdrop&&(i.fillStyle=t.backdrop.color,i.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height));let r=t.textOffset;_e(i,n,0,r,e,t)}n&&be(i)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const s=Re(i.font),o=Ae(i.padding),r=i.align;let a=s.lineHeight/2;"bottom"===e||"center"===e||f(e)?(a+=o.bottom,d(i.text)&&(a+=s.lineHeight*(i.text.length-1))):a+=o.top;const{titleX:l,titleY:c,maxWidth:h,rotation:u}=Po(this,a,e,r);_e(t,i.text,0,0,s,{color:i.color,maxWidth:h,rotation:u,textAlign:Co(r,e,n),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=b(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===Oo.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[i]!==this.id||t&&o.type!==t||n.push(o)}return n}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return Re(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Do{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;To(e)&&(i=this.register(e));const n=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in n||(n[s]=t,Ao(t,o,i),this.override&&ae.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in ae[n]&&(delete ae[n][i],this.override&&delete ie[i])}}function Ao(t,e,i){const n=S(Object.create(null),[i?ae.get(i):{},ae.get(e),t.defaults]);ae.set(e,n),t.defaultRoutes&&Ro(e,t.defaultRoutes),t.descriptors&&ae.describe(e,t.descriptors)}function Ro(t,e){Object.keys(e).forEach(i=>{const n=i.split("."),s=n.pop(),o=[t].concat(n).join("."),r=e[i].split("."),a=r.pop(),l=r.join(".");ae.route(o,s,l,a)})}function To(t){return"id"in t&&"defaults"in t}class Lo{constructor(){this.controllers=new Do(En,"datasets",!0),this.elements=new Do(oo,"elements"),this.plugins=new Do(Object,"plugins"),this.scales=new Do(Oo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):y(e,e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)})})}_exec(t,e,i){const n=T(t);_(i["before"+n],[],i),e[t](i),_(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}}var Eo=new Lo;class jo{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(s,t,e,i);return"destroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin,o=t[i],r=[e,n,s.options];if(!1===_(o,r,t)&&n.cancelable)return!1}return!0}invalidate(){u(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=b(i.options&&i.options.plugins,{}),s=zo(i);return!1!==n||e?Fo(t,s,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function zo(t){const e=[],i=Object.keys(Eo.plugins.items);for(let s=0;s<i.length;s++)e.push(Eo.getPlugin(i[s]));const n=t.plugins||[];for(let s=0;s<n.length;s++){const t=n[s];-1===e.indexOf(t)&&e.push(t)}return e}function Io(t,e){return e||!1!==t?!0===t?{}:t:null}function Fo(t,e,i,n){const s=[],o=t.getContext();for(let r=0;r<e.length;r++){const a=e[r],l=a.id,c=Io(i[l],n);null!==c&&s.push({plugin:a,options:Bo(t.config,a,c,o)})}return s}function Bo(t,e,i,n){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(i,s);return t.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vo(t,e){const i=ae.datasets[t]||{},n=(e.datasets||{})[t]||{};return n.indexAxis||e.indexAxis||i.indexAxis||"x"}function Wo(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}function No(t,e){return t===e?"_index_":"_value_"}function Ho(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Uo(t,e){return"x"===t||"y"===t?t:e.axis||Ho(e.position)||t.charAt(0).toLowerCase()}function $o(t,e){const i=ie[t.type]||{scales:{}},n=e.scales||{},s=Vo(t.type,e),o=Object.create(null),r=Object.create(null);return Object.keys(n).forEach(t=>{const e=n[t];if(!f(e))return console.error("Invalid scale configuration for scale: "+t);if(e._proxy)return console.warn("Ignoring resolver passed as options for scale: "+t);const a=Uo(t,e),l=No(a,s),c=i.scales||{};o[a]=o[a]||t,r[t]=C(Object.create(null),[{axis:a},e,c[a],c[l]])}),t.data.datasets.forEach(i=>{const s=i.type||t.type,a=i.indexAxis||Vo(s,e),l=ie[s]||{},c=l.scales||{};Object.keys(c).forEach(t=>{const e=Wo(t,a),s=i[e+"AxisID"]||o[e]||e;r[s]=r[s]||Object.create(null),C(r[s],[{axis:e},n[s],c[t]])})}),Object.keys(r).forEach(t=>{const e=r[t];C(e,[ae.scales[e.type],ae.scale])}),r}function Yo(t){const e=t.options||(t.options={});e.plugins=b(e.plugins,{}),e.scales=$o(t,e)}function Xo(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function qo(t){return t=t||{},t.data=Xo(t.data),Yo(t),t}const Ko=new Map,Zo=new Set;function Go(t,e){let i=Ko.get(t);return i||(i=e(),Ko.set(t,i),Zo.add(i)),i}const Jo=(t,e,i)=>{const n=R(e,i);void 0!==n&&t.add(n)};class Qo{constructor(t){this._config=qo(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Xo(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Yo(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Go(t,()=>[["datasets."+t,""]])}datasetAnimationScopeKeys(t,e){return Go(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,"transitions."+e],["datasets."+t,""]])}datasetElementScopeKeys(t,e){return Go(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,"datasets."+t,"elements."+e,""]])}pluginScopeKeys(t){const e=t.id,i=this.type;return Go(`${i}-plugin-${e}`,()=>[["plugins."+e,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,o=this._cachedScopes(t,i),r=o.get(e);if(r)return r;const a=new Set;e.forEach(e=>{t&&(a.add(t),e.forEach(e=>Jo(a,t,e))),e.forEach(t=>Jo(a,n,t)),e.forEach(t=>Jo(a,ie[s]||{},t)),e.forEach(t=>Jo(a,ae,t)),e.forEach(t=>Jo(a,ne,t))});const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),Zo.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,ie[e]||{},ae.datasets[e]||{},{type:e},ae,ne]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=tr(this._resolverCache,t,n);let a=o;if(ir(o,e)){s.$shared=!1,i=E(i)?i():i;const e=this.createResolver(t,i,r);a=Ue(o,i,e)}for(const l of e)s[l]=a[l];return s}createResolver(t,e,i=[""],n){const{resolver:s}=tr(this._resolverCache,t,i);return f(e)?Ue(s,e,void 0,n):s}}function tr(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let o=n.get(s);if(!o){const t=He(e,i);o={resolver:t,subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},n.set(s,o)}return o}const er=t=>f(t)&&Object.getOwnPropertyNames(t).reduce((e,i)=>e||E(t[i]),!1);function ir(t,e){const{isScriptable:i,isIndexable:n}=$e(t);for(const s of e){const e=i(s),o=n(s),r=(o||e)&&t[s];if(e&&(E(r)||er(r))||o&&d(r))return!0}return!1}var nr="3.6.0";const sr=["top","bottom","left","right","chartArea"];function or(t,e){return"top"===t||"bottom"===t||-1===sr.indexOf(t)&&"x"===e}function rr(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function ar(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),_(i&&i.onComplete,[t],e)}function lr(t){const e=t.chart,i=e.options.animation;_(i&&i.onProgress,[t],e)}function cr(t){return xi()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const hr={},ur=t=>{const e=cr(t);return Object.values(hr).filter(t=>t.canvas===e).pop()};class dr{constructor(t,e){const i=this.config=new Qo(e),n=cr(t),s=ur(n);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||so(n)),this.platform.updateConfig(i);const a=this.platform.acquireContext(n,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=h(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jo,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=o(t=>this.update(t),r.resizeDelay||0),hr[this.id]=this,a&&l?(on.listen(this,"complete",ar),on.listen(this,"progress",lr),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return u(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ri(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return de(this.canvas,this.ctx),this}stop(){return on.stop(this),this}resize(t,e){on.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Ri(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),_(i.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){const t=this.options,e=t.scales||{};y(e,(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let s=[];e&&(s=s.concat(Object.keys(e).map(t=>{const i=e[t],n=Uo(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}}))),y(s,e=>{const s=e.options,o=s.id,r=Uo(o,s),a=b(s.type,e.dtype);void 0!==s.position&&or(s.position,r)===or(e.dposition)||(s.position=e.dposition),n[o]=!0;let l=null;if(o in i&&i[o].type===a)l=i[o];else{const t=Eo.getScale(a);l=new t({id:o,type:a,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(s,t)}),y(n,(t,e)=>{t||delete i[e]}),y(i,t=>{zs.configure(this,t,t.options),zs.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(rr("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i<n;i++){const n=e[i];let s=this.getDatasetMeta(i);const o=n.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=o,s.indexAxis=n.indexAxis||Vo(o,this.options),s.order=n.order||0,s.index=i,s.label=""+n.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const e=Eo.getController(o),{datasetElementType:n,dataElementType:r}=ae.datasets[o];Object.assign(e.prototype,{dataElementType:Eo.getElement(r),datasetElementType:n&&Eo.getElement(n)}),s.controller=new e(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){y(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext());y(this.scales,t=>{zs.removeBox(this,t)});const n=this._animationsDisabled=!i.animation;this.ensureScalesHaveIDs(),this.buildOrUpdateScales();const s=new Set(Object.keys(this._listeners)),o=new Set(i.events);if(j(s,o)&&!!this._responsiveListeners===i.responsive||(this.unbindEvents(),this.bindEvents()),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:t}=this.getDatasetMeta(l),e=!n&&-1===r.indexOf(t);t.buildOrUpdateElements(e),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=i.layout.autoPadding?a:0,this._updateLayout(a),n||y(r,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(rr("z","_idx")),this._lastEvent&&this._eventHandler(this._lastEvent,!0),this.render()}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;zs.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],y(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,E(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(on.has(this)?this.attached&&!on.running(this)&&on.start(this):(this.draw(),ar({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];t&&!s.visible||i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,s=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(n&&ge(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&be(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}getElementsAtEventForMode(t,e,i,n){const s=_s.modes[e];return"function"===typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter(t=>t&&t._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=Ee(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"===typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){const i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,n);L(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update(e=>e.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),on.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),de(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete hr[this.id]}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};y(this.options.events,t=>i(t,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){y(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},y(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map(({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),n=!v(i,e);n&&(this._active=i,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e){const{_active:i=[],options:n}=this,s=n.hover,o=e;let r=[],a=!1,l=null;return"mouseout"!==t.type&&(r=this.getElementsAtEventForMode(t,s.mode,s,o),l="click"===t.type?this._lastEvent:t),this._lastEvent=null,pe(t,this.chartArea,this._minPadding)&&(_(n.onHover,[t,r,this],this),"mouseup"!==t.type&&"click"!==t.type&&"contextmenu"!==t.type||_(n.onClick,[t,r,this],this)),a=!v(r,i),(a||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,a}}const fr=()=>y(dr.instances,t=>t._plugins.invalidate()),pr=!0;function gr(t,e,i){const{startAngle:n,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=e;let c=s/a;t.beginPath(),t.arc(o,r,a,n-c,i+c),l>s?(c=s/l,t.arc(o,r,l,i+c,n-c,!0)):t.arc(o,r,s,i+W,n-W),t.closePath(),t.clip()}function br(t){return Pe(t,["outerStart","outerEnd","innerStart","innerEnd"])}function mr(t,e,i,n){const s=br(t.options.borderRadius),o=(i-e)/2,r=Math.min(o,n*e/2),a=t=>{const e=(i-Math.min(o,t))*n/2;return rt(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:rt(s.innerStart,0,r),innerEnd:rt(s.innerEnd,0,r)}}function xr(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function _r(t,e,i,n,s){const{x:o,y:r,startAngle:a,pixelMargin:l,innerRadius:c}=e,h=Math.max(e.outerRadius+n+i-l,0),u=c>0?c+n+i+l:0;let d=0;const f=s-a;if(n){const t=c>0?c-n:0,e=h>0?h-n:0,i=(t+e)/2,s=0!==i?f*i/(i+n):f;d=(f-s)/2}const p=Math.max(.001,f*h-i/z)/h,g=(f-p)/2,b=a+g+d,m=s-g-d,{outerStart:x,outerEnd:_,innerStart:y,innerEnd:v}=mr(e,u,h,m-b),w=h-x,M=h-_,k=b+x/w,S=m-_/M,C=u+y,P=u+v,O=b+y/C,D=m-v/P;if(t.beginPath(),t.arc(o,r,h,k,S),_>0){const e=xr(M,S,o,r);t.arc(e.x,e.y,_,S,m+W)}const A=xr(P,m,o,r);if(t.lineTo(A.x,A.y),v>0){const e=xr(P,D,o,r);t.arc(e.x,e.y,v,m+W,D+Math.PI)}if(t.arc(o,r,u,m-v/u,b+y/u,!0),y>0){const e=xr(C,O,o,r);t.arc(e.x,e.y,y,O+Math.PI,b-W)}const R=xr(w,b,o,r);if(t.lineTo(R.x,R.y),x>0){const e=xr(w,k,o,r);t.arc(e.x,e.y,x,b-W,k)}t.closePath()}function yr(t,e,i,n){const{fullCircles:s,startAngle:o,circumference:r}=e;let a=e.endAngle;if(s){_r(t,e,i,n,o+I);for(let e=0;e<s;++e)t.fill();isNaN(r)||(a=o+r%I,r%I===0&&(a+=I))}return _r(t,e,i,n,a),t.fill(),a}function vr(t,e,i){const{x:n,y:s,startAngle:o,pixelMargin:r,fullCircles:a}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let h;for(i&&gr(t,e,o+I),t.beginPath(),t.arc(n,s,c,o+I,o,!0),h=0;h<a;++h)t.stroke();for(t.beginPath(),t.arc(n,s,l,o,o+I),h=0;h<a;++h)t.stroke()}function wr(t,e,i,n,s){const{options:o}=e,r="inner"===o.borderAlign;o.borderWidth&&(r?(t.lineWidth=2*o.borderWidth,t.lineJoin="round"):(t.lineWidth=o.borderWidth,t.lineJoin="bevel"),e.fullCircles&&vr(t,e,r),r&&gr(t,e,s),_r(t,e,i,n,s),t.stroke())}Object.defineProperties(dr,{defaults:{enumerable:pr,value:ae},instances:{enumerable:pr,value:hr},overrides:{enumerable:pr,value:ie},registry:{enumerable:pr,value:Eo},version:{enumerable:pr,value:nr},getChart:{enumerable:pr,value:ur},register:{enumerable:pr,value:(...t)=>{Eo.add(...t),fr()}},unregister:{enumerable:pr,value:(...t)=>{Eo.remove(...t),fr()}}});class Mr extends oo{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:o}=et(n,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,d=h>=I||ot(s,r,a),f=o>=l+u&&o<=c+u;return d&&f}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:l}=this.options,c=(n+s)/2,h=(o+r+l+a)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,s=(e.spacing||0)/2;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>I?Math.floor(i/I):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=0;if(n){o=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*o,Math.sin(e)*o),this.circumference>=z&&(o=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=yr(t,this,o,s);wr(t,this,o,s,r),t.restore()}}function kr(t,e,i=e){t.lineCap=b(i.borderCapStyle,e.borderCapStyle),t.setLineDash(b(i.borderDash,e.borderDash)),t.lineDashOffset=b(i.borderDashOffset,e.borderDashOffset),t.lineJoin=b(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=b(i.borderWidth,e.borderWidth),t.strokeStyle=b(i.borderColor,e.borderColor)}function Sr(t,e,i){t.lineTo(i.x,i.y)}function Cr(t){return t.stepped?me:t.tension||"monotone"===t.cubicInterpolationMode?xe:Sr}function Pr(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:n,start:l,loop:e.loop,ilen:c<l&&!h?n+c-l:c-l}}function Or(t,e,i,n){const{points:s,options:o}=e,{count:r,start:a,loop:l,ilen:c}=Pr(s,i,n),h=Cr(o);let u,d,f,{move:p=!0,reverse:g}=n||{};for(u=0;u<=c;++u)d=s[(a+(g?c-u:u))%r],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):h(t,f,d,g,o.stepped),f=d);return l&&(d=s[(a+(g?c:0))%r],h(t,f,d,g,o.stepped)),!!l}function Dr(t,e,i,n){const s=e.points,{count:o,start:r,ilen:a}=Pr(s,i,n),{move:l=!0,reverse:c}=n||{};let h,u,d,f,p,g,b=0,m=0;const x=t=>(r+(c?a-t:t))%o,_=()=>{f!==p&&(t.lineTo(b,p),t.lineTo(b,f),t.lineTo(b,g))};for(l&&(u=s[x(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=s[x(h)],u.skip)continue;const e=u.x,i=u.y,n=0|e;n===d?(i<f?f=i:i>p&&(p=i),b=(m*b+e)/++m):(_(),t.lineTo(e,i),d=n,m=0,f=p=i),g=i}_()}function Ar(t){const e=t.options,i=e.borderDash&&e.borderDash.length,n=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i;return n?Dr:Or}function Rr(t){return t.stepped?ji:t.tension||"monotone"===t.cubicInterpolationMode?zi:Ei}function Tr(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),kr(t,e.options),t.stroke(s)}function Lr(t,e,i,n){const{segments:s,options:o}=e,r=Ar(e);for(const a of s)kr(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}Mr.id="arc",Mr.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Mr.defaultRoutes={backgroundColor:"backgroundColor"};const Er="function"===typeof Path2D;function jr(t,e,i,n){Er&&!e.options.segment?Tr(t,e,i,n):Lr(t,e,i,n)}class zr extends oo{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;mi(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Ji(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],s=this.points,o=Ki(this,{property:e,start:n,end:n});if(!o.length)return;const r=[],a=Rr(i);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:h}=o[l],u=s[c],d=s[h];if(u===d){r.push(u);continue}const f=Math.abs((n-u[e])/(d[e]-u[e])),p=a(u,d,f,i.stepped);p[e]=t[e],r.push(p)}return 1===r.length?r[0]:r}pathSegment(t,e,i){const n=Ar(this);return n(t,this,e,i)}path(t,e,i){const n=this.segments,s=Ar(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const r of n)o&=s(t,this,r,{start:e,end:e+i-1});return!!o}draw(t,e,i,n){const s=this.options||{},o=this.points||[];o.length&&s.borderWidth&&(t.save(),jr(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ir(t,e,i,n){const s=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<s.radius+s.hitRadius}zr.id="line",zr.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},zr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},zr.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Fr extends oo{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Ir(this,t,"x",e)}inYRange(t,e){return Ir(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){t=t||this.options||{};let e=t.radius||0;e=Math.max(e,e&&t.hoverRadius||0);const i=e&&t.borderWidth||0;return 2*(e+i)}draw(t,e){const i=this.options;this.skip||i.radius<.1||!pe(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,fe(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Br(t,e){const{x:i,y:n,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,u;return t.horizontal?(u=r/2,a=Math.min(i,s),l=Math.max(i,s),c=n-u,h=n+u):(u=o/2,a=i-u,l=i+u,c=Math.min(n,s),h=Math.max(n,s)),{left:a,top:c,right:l,bottom:h}}function Vr(t,e,i,n){return t?0:rt(e,i,n)}function Wr(t,e,i){const n=t.options.borderWidth,s=t.borderSkipped,o=Oe(n);return{t:Vr(s.top,o.top,0,i),r:Vr(s.right,o.right,0,e),b:Vr(s.bottom,o.bottom,0,i),l:Vr(s.left,o.left,0,e)}}function Nr(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,o=De(s),r=Math.min(e,i),a=t.borderSkipped,l=n||f(s);return{topLeft:Vr(!l||a.top||a.left,o.topLeft,0,r),topRight:Vr(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Vr(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Vr(!l||a.bottom||a.right,o.bottomRight,0,r)}}function Hr(t){const e=Br(t),i=e.right-e.left,n=e.bottom-e.top,s=Wr(t,i/2,n/2),o=Nr(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:o},inner:{x:e.left+s.l,y:e.top+s.t,w:i-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function Ur(t,e,i,n){const s=null===e,o=null===i,r=s&&o,a=t&&!r&&Br(t,n);return a&&(s||e>=a.left&&e<=a.right)&&(o||i>=a.top&&i<=a.bottom)}function $r(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function Yr(t,e){t.rect(e.x,e.y,e.w,e.h)}function Xr(t,e,i={}){const n=t.x!==i.x?-e:0,s=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-n,r=(t.y+t.h!==i.y+i.h?e:0)-s;return{x:t.x+n,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}Fr.id="point",Fr.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Fr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class qr extends oo{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:n}}=this,{inner:s,outer:o}=Hr(this),r=$r(o.radius)?we:Yr;t.save(),o.w===s.w&&o.h===s.h||(t.beginPath(),r(t,Xr(o,e,s)),t.clip(),r(t,Xr(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),r(t,Xr(s,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return Ur(this,t,e,i)}inXRange(t,e){return Ur(this,t,null,e)}inYRange(t,e){return Ur(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+n)/2:e,y:s?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}qr.id="bar",qr.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},qr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Kr=Object.freeze({__proto__:null,ArcElement:Mr,LineElement:zr,PointElement:Fr,BarElement:qr});function Zr(t,e,i,n,s){const o=s.samples||n;if(o>=i)return t.slice(e,e+i);const r=[],a=(i-2)/(o-2);let l=0;const c=e+i-1;let h,u,d,f,p,g=e;for(r[l++]=t[g],h=0;h<o-2;h++){let n,s=0,o=0;const c=Math.floor((h+1)*a)+1+e,b=Math.min(Math.floor((h+2)*a)+1,i)+e,m=b-c;for(n=c;n<b;n++)s+=t[n].x,o+=t[n].y;s/=m,o/=m;const x=Math.floor(h*a)+1+e,_=Math.min(Math.floor((h+1)*a)+1,i)+e,{x:y,y:v}=t[g];for(d=f=-1,n=x;n<_;n++)f=.5*Math.abs((y-s)*(t[n].y-v)-(y-t[n].x)*(o-v)),f>d&&(d=f,u=t[n],p=n);r[l++]=u,g=p}return r[l++]=t[c],r}function Gr(t,e,i,n){let s,o,r,a,l,c,h,d,f,p,g=0,b=0;const m=[],x=e+i-1,_=t[e].x,y=t[x].x,v=y-_;for(s=e;s<e+i;++s){o=t[s],r=(o.x-_)/v*n,a=o.y;const e=0|r;if(e===l)a<f?(f=a,c=s):a>p&&(p=a,h=s),g=(b*g+o.x)/++b;else{const i=s-1;if(!u(c)&&!u(h)){const e=Math.min(c,h),n=Math.max(c,h);e!==d&&e!==i&&m.push({...t[e],x:g}),n!==d&&n!==i&&m.push({...t[n],x:g})}s>0&&i!==d&&m.push(t[i]),m.push(o),l=e,b=0,f=p=a,c=h=d=s}}return m}function Jr(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Qr(t){t.data.datasets.forEach(t=>{Jr(t)})}function ta(t,e){const i=e.length;let n,s=0;const{iScale:o}=t,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=rt(ze(e,o.axis,r).lo,0,i-1)),n=c?rt(ze(e,o.axis,a).hi+1,s,i)-s:i-s,{start:s,count:n}}var ea={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Qr(t);const n=t.width;t.data.datasets.forEach((e,s)=>{const{_data:o,indexAxis:r}=e,a=t.getDatasetMeta(s),l=o||e.data;if("y"===Te([r,t.options.indexAxis]))return;if("line"!==a.type)return;const c=t.scales[a.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:h,count:d}=ta(a,l);const f=i.threshold||4*n;if(d<=f)return void Jr(e);let p;switch(u(o)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":p=Zr(l,h,d,n,i);break;case"min-max":p=Gr(l,h,d,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=p})},destroy(t){Qr(t)}};function ia(t,e){const i=t.getDatasetMeta(e),n=i&&t.isDatasetVisible(e);return n?i.dataset:null}function na(t){const e=t.options,i=e.fill;let n=b(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}function sa(t,e,i){const n=na(t);if(f(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return p(s)&&Math.floor(s)===s?("-"!==n[0]&&"+"!==n[0]||(s=e+s),!(s===e||s<0||s>=i)&&s):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function oa(t){const{scale:e={},fill:i}=t;let n,s=null;return"start"===i?s=e.bottom:"end"===i?s=e.top:f(i)?s=e.getPixelForValue(i.value):e.getBasePixel&&(s=e.getBasePixel()),p(s)?(n=e.isHorizontal(),{x:n?s:null,y:n?null:s}):null}class ra{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:s,radius:o}=this;return e=e||{start:0,end:I},t.arc(n,s,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,s=t.angle;return{x:e+Math.cos(s)*n,y:i+Math.sin(s)*n,angle:s}}}function aa(t){const{scale:e,fill:i}=t,n=e.options,s=e.getLabels().length,o=[],r=n.reverse?e.max:e.min,a=n.reverse?e.min:e.max;let l,c,h;if(h="start"===i?r:"end"===i?a:f(i)?i.value:e.getBaseValue(),n.grid.circular)return c=e.getPointPositionForValue(0,r),new ra({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(h)});for(l=0;l<s;++l)o.push(e.getPointPositionForValue(l,h));return o}function la(t){const e=t.scale||{};return e.getPointPositionForValue?aa(t):oa(t)}function ca(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function ha(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,o=[];return e.segments.forEach(({start:t,end:e})=>{e=ca(t,e,s);const r=s[t],a=s[e];null!==n?(o.push({x:r.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:r.y}),o.push({x:i,y:a.y}))}),o}function ua(t){const{scale:e,index:i,line:n}=t,s=[],o=n.segments,r=n.points,a=da(e,i);a.push(ba({x:null,y:e.bottom},n));for(let l=0;l<o.length;l++){const t=o[l];for(let e=t.start;e<=t.end;e++)fa(s,r[e],a)}return new zr({points:s,options:{}})}function da(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let s=0;s<n.length;s++){const t=n[s];if(t.index===e)break;t.hidden||i.unshift(t.dataset)}return i}function fa(t,e,i){const n=[];for(let s=0;s<i.length;s++){const o=i[s],{first:r,last:a,point:l}=pa(o,e,"x");if(!(!l||r&&a))if(r)n.unshift(l);else if(t.push(l),!a)break}t.push(...n)}function pa(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const s=n[i],o=t.segments,r=t.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const t=o[c],e=r[t.start][i],n=r[t.end][i];if(s>=e&&s<=n){a=s===e,l=s===n;break}}return{first:a,last:l,point:n}}function ga(t){const{chart:e,fill:i,line:n}=t;if(p(i))return ia(e,i);if("stack"===i)return ua(t);if("shape"===i)return!0;const s=la(t);return s instanceof ra?s:ba(s,n)}function ba(t,e){let i=[],n=!1;return d(t)?(n=!0,i=t):i=ha(t,e),i.length?new zr({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function ma(t,e,i){const n=t[e];let s=n.fill;const o=[e];let r;if(!i)return s;while(!1!==s&&-1===o.indexOf(s)){if(!p(s))return s;if(r=t[s],!r)return!1;if(r.visible)return s;o.push(s),s=r.fill}return!1}function xa(t,e,i){t.beginPath(),e.path(t),t.lineTo(e.last().x,i),t.lineTo(e.first().x,i),t.closePath(),t.clip()}function _a(t,e,i,n){if(n)return;let s=e[t],o=i[t];return"angle"===t&&(s=st(s),o=st(o)),{property:t,start:s,end:o}}function ya(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function va(t,e,i){const n=t.segments,s=t.points,o=e.points,r=[];for(const a of n){let{start:t,end:n}=a;n=ca(t,n,s);const l=_a(i,s[t],s[n],a.loop);if(!e.segments){r.push({source:a,target:l,start:s[t],end:s[n]});continue}const c=Ki(e,l);for(const e of c){const t=_a(i,o[e.start],o[e.end],e.loop),n=qi(a,s,t);for(const s of n)r.push({source:s,target:e,start:{[i]:ya(l,t,"start",Math.max)},end:{[i]:ya(l,t,"end",Math.min)}})}}return r}function wa(t,e,i){const{top:n,bottom:s}=e.chart.chartArea,{property:o,start:r,end:a}=i||{};"x"===o&&(t.beginPath(),t.rect(r,n,a-r,s-n),t.clip())}function Ma(t,e,i,n){const s=e.interpolate(i,n);s&&t.lineTo(s.x,s.y)}function ka(t,e){const{line:i,target:n,property:s,color:o,scale:r}=e,a=va(i,n,s);for(const{source:l,target:c,start:h,end:u}of a){const{style:{backgroundColor:e=o}={}}=l,a=!0!==n;t.save(),t.fillStyle=e,wa(t,r,a&&_a(s,h,u)),t.beginPath();const d=!!i.pathSegment(t,l);let f;if(a){d?t.closePath():Ma(t,n,u,s);const e=!!n.pathSegment(t,c,{move:d,reverse:!0});f=d&&e,f||Ma(t,n,h,s)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function Sa(t,e){const{line:i,target:n,above:s,below:o,area:r,scale:a}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==s&&(xa(t,n,r.top),ka(t,{line:i,target:n,color:s,scale:a,property:l}),t.restore(),t.save(),xa(t,n,r.bottom)),ka(t,{line:i,target:n,color:o,scale:a,property:l}),t.restore()}function Ca(t,e,i){const n=ga(e),{line:s,scale:o,axis:r}=e,a=s.options,l=a.fill,c=a.backgroundColor,{above:h=c,below:u=c}=l||{};n&&s.points.length&&(ge(t,i),Sa(t,{line:s,target:n,above:h,below:u,area:i,scale:o,axis:r}),be(t))}var Pa={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,s=[];let o,r,a,l;for(r=0;r<n;++r)o=t.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof zr&&(l={visible:t.isDatasetVisible(r),index:r,fill:sa(a,r,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,s.push(l);for(r=0;r<n;++r)l=s[r],l&&!1!==l.fill&&(l.fill=ma(s,r,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,s=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let r=s.length-1;r>=0;--r){const e=s[r].$filler;e&&(e.line.updateControlPoints(o,e.axis),n&&Ca(t.ctx,e,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let s=n.length-1;s>=0;--s){const e=n[s].$filler;e&&Ca(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;n&&!1!==n.fill&&"beforeDatasetDraw"===i.drawTime&&Ca(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Oa=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}},Da=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Aa extends oo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=_(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=Re(i.font),s=n.size,o=this._computeTitleHeight(),{boxWidth:r,itemHeight:a}=Oa(i,s);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,s,r,a)+10):(c=this.maxHeight,l=this._fitCols(o,s,r,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+r;let h=t;s.textAlign="left",s.textBaseline="middle";let u=-1,d=-c;return this.legendItems.forEach((t,f)=>{const p=i+e/2+s.measureText(t.text).width;(0===f||l[l.length-1]+p+2*r>o)&&(h+=c,l[l.length-(f>0?0:1)]=0,d+=c,u++),a[f]={left:0,top:d,row:u,width:p,height:n},l[l.length-1]+=p+r}),h}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let h=r,u=0,d=0,f=0,p=0;return this.legendItems.forEach((t,o)=>{const g=i+e/2+s.measureText(t.text).width;o>0&&d+n+2*r>c&&(h+=u+r,l.push({width:u,height:d}),f+=u+r,p++,u=d=0),a[o]={left:f,top:d,col:p,width:g,height:n},u=Math.max(u,g),d+=n+r}),h+=u,l.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,o=Ni(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=a(i,this.left+n,this.right-this.lineWidths[s]);for(const l of e)s!==l.row&&(s=l.row,r=a(i,this.left+n,this.right-this.lineWidths[s])),l.top+=this.top+t+n,l.left=o.leftForLtr(o.x(r),l.width),r+=l.width+n}else{let s=0,r=a(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const l of e)l.col!==s&&(s=l.col,r=a(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),l.top=r,l.left+=this.left+n,l.left=o.leftForLtr(o.x(l.left),l.width),r+=l.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ge(t,this),this._draw(),be(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:o}=t,r=ae.color,c=Ni(t.rtl,this.left,this.width),h=Re(o.font),{color:u,padding:d}=o,f=h.size,p=f/2;let g;this.drawTitle(),n.textAlign=c.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=h.string;const{boxWidth:m,boxHeight:x,itemHeight:_}=Oa(o,f),y=function(t,e,i){if(isNaN(m)||m<=0||isNaN(x)||x<0)return;n.save();const s=b(i.lineWidth,1);if(n.fillStyle=b(i.fillStyle,r),n.lineCap=b(i.lineCap,"butt"),n.lineDashOffset=b(i.lineDashOffset,0),n.lineJoin=b(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=b(i.strokeStyle,r),n.setLineDash(b(i.lineDash,[])),o.usePointStyle){const o={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},r=c.xPlus(t,m/2),a=e+p;fe(n,o,r,a)}else{const o=e+Math.max((f-x)/2,0),r=c.leftForLtr(t,m),a=De(i.borderRadius);n.beginPath(),Object.values(a).some(t=>0!==t)?we(n,{x:r,y:o,w:m,h:x,radius:a}):n.rect(r,o,m,x),n.fill(),0!==s&&n.stroke()}n.restore()},v=function(t,e,i){_e(n,i.text,t,e+_/2,h,{strikethrough:i.hidden,textAlign:c.textAlign(i.textAlign)})},w=this.isHorizontal(),M=this._computeTitleHeight();g=w?{x:a(s,this.left+d,this.right-i[0]),y:this.top+d+M,line:0}:{x:this.left+d,y:a(s,this.top+M+d,this.bottom-e[0].height),line:0},Hi(this.ctx,t.textDirection);const k=_+d;this.legendItems.forEach((r,h)=>{n.strokeStyle=r.fontColor||u,n.fillStyle=r.fontColor||u;const f=n.measureText(r.text).width,b=c.textAlign(r.textAlign||(r.textAlign=o.textAlign)),x=m+p+f;let _=g.x,S=g.y;c.setWidth(this.width),w?h>0&&_+x+d>this.right&&(S=g.y+=k,g.line++,_=g.x=a(s,this.left+d,this.right-i[g.line])):h>0&&S+k>this.bottom&&(_=g.x=_+e[g.line].width+d,g.line++,S=g.y=a(s,this.top+M+d,this.bottom-e[g.line].height));const C=c.x(_);y(C,S,r),_=l(b,_+m+p,w?_+x:this.right,t.rtl),v(c.x(_),S,r),w?g.x+=x+d:g.y+=k}),Ui(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Re(e.font),n=Ae(e.padding);if(!e.display)return;const s=Ni(t.rtl,this.left,this.width),o=this.ctx,l=e.position,c=i.size/2,h=n.top+c;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+h,d=a(t.align,d,this.right-f);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);u=h+a(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const p=a(l,d,d+f);o.textAlign=s.textAlign(r(l)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,_e(o,e.text,p,u,i)}_computeTitleHeight(){const t=this.options.title,e=Re(t.font),i=Ae(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if(t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom)for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(n=s[i],t>=n.left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!Ra(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type){const n=this._hoveredItem,s=Da(n,i);n&&!s&&_(e.onLeave,[t,n,this],this),this._hoveredItem=i,i&&!s&&_(e.onHover,[t,i,this],this)}else i&&_(e.onClick,[t,i,this],this)}}function Ra(t,e){return!("mousemove"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}var Ta={id:"legend",_element:Aa,start(t,e,i){const n=t.legend=new Aa({ctx:t.ctx,options:i,chart:t});zs.configure(t,n,i),zs.addBox(t,n)},stop(t){zs.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;zs.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),e.hidden=!0):(s.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const r=t.controller.getStyle(i?0:void 0),a=Ae(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(a.width+a.height)/4,strokeStyle:r.borderColor,pointStyle:n||r.pointStyle,rotation:r.rotation,textAlign:s||r.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class La extends oo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=d(i.text)?i.text.length:1;this._padding=Ae(i.padding);const s=n*Re(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:o}=this,r=o.align;let l,c,h,u=0;return this.isHorizontal()?(c=a(r,i,s),h=e+t,l=s-i):("left"===o.position?(c=i+t,h=a(r,n,e),u=-.5*z):(c=s-t,h=a(r,e,n),u=.5*z),l=n-e),{titleX:c,titleY:h,maxWidth:l,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Re(e.font),n=i.lineHeight,s=n/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);_e(t,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:r(e.align),textBaseline:"middle",translation:[o,a]})}}function Ea(t,e){const i=new La({ctx:t.ctx,options:e,chart:t});zs.configure(t,i,e),zs.addBox(t,i),t.titleBlock=i}var ja={id:"title",_element:La,start(t,e,i){Ea(t,i)},stop(t){const e=t.titleBlock;zs.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;zs.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const za=new WeakMap;var Ia={id:"subtitle",start(t,e,i){const n=new La({ctx:t.ctx,options:i,chart:t});zs.configure(t,n,i),zs.addBox(t,n),za.set(t,n)},stop(t){zs.removeBox(t,za.get(t)),za.delete(t)},beforeUpdate(t,e,i){const n=za.get(t);zs.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Fa={average(t){if(!t.length)return!1;let e,i,n=0,s=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n+=t.x,s+=t.y,++o}}return{x:n/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,n,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){const n=t[i].element;if(n&&n.hasValue()){const t=n.getCenterPoint(),i=it(e,t);i<a&&(a=i,s=n)}}if(s){const t=s.tooltipPosition();o=t.x,r=t.y}return{x:o,y:r}}};function Ba(t,e){return e&&(d(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Va(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Wa(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function Na(t,e){const i=t._chart.ctx,{body:n,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=Re(e.bodyFont),c=Re(e.titleFont),h=Re(e.footerFont),u=o.length,d=s.length,f=n.length,p=Ae(e.padding);let g=p.height,b=0,m=n.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(m+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),m){const t=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*t+(m-f)*l.lineHeight+(m-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*h.lineHeight+(d-1)*e.footerSpacing);let x=0;const _=function(t){b=Math.max(b,i.measureText(t).width+x)};return i.save(),i.font=c.string,y(t.title,_),i.font=l.string,y(t.beforeBody.concat(t.afterBody),_),x=e.displayColors?r+2+e.boxPadding:0,y(n,t=>{y(t.before,_),y(t.lines,_),y(t.after,_)}),x=0,i.font=h.string,y(t.footer,_),i.restore(),b+=p.width,{width:b,height:g}}function Ha(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}function Ua(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||("right"===t&&s-o-r<0||void 0)}function $a(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),Ua(c,t,e,i)&&(c="center"),c}function Ya(t,e,i){const n=e.yAlign||Ha(t,i);return{xAlign:e.xAlign||$a(t,e,i,n),yAlign:n}}function Xa(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}function qa(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}function Ka(t,e,i,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=i,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=De(r);let p=Xa(e,a);const g=qa(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,d)+o:"right"===a&&(p+=Math.max(u,f)+o),{x:rt(p,0,n.width-e.width),y:rt(g,0,n.height-e.height)}}function Za(t,e,i){const n=Ae(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function Ga(t){return Ba([],Va(t))}function Ja(t,e,i){return Ee(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function Qa(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class tl extends oo{constructor(t){super(),this.opacity=0,this._active=[],this._chart=t._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this._chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,s=new dn(this._chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=Ja(this._chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),s=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let r=[];return r=Ba(r,Va(n)),r=Ba(r,Va(s)),r=Ba(r,Va(o)),r}getBeforeBody(t,e){return Ga(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return y(t,t=>{const e={before:[],lines:[],after:[]},s=Qa(i,t);Ba(e.before,Va(s.beforeLabel.call(this,t))),Ba(e.lines,s.label.call(this,t)),Ba(e.after,Va(s.afterLabel.call(this,t))),n.push(e)}),n}getAfterBody(t,e){return Ga(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,n=i.beforeFooter.apply(this,[t]),s=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let r=[];return r=Ba(r,Va(n)),r=Ba(r,Va(s)),r=Ba(r,Va(o)),r}_createItems(t){const e=this._active,i=this._chart.data,n=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;r<a;++r)l.push(Wa(this._chart,e[r]));return t.filter&&(l=l.filter((e,n,s)=>t.filter(e,n,s,i))),t.itemSort&&(l=l.sort((e,n)=>t.itemSort(e,n,i))),y(l,e=>{const i=Qa(t.callbacks,e);n.push(i.labelColor.call(this,e)),s.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))}),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=Fa[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=Na(this,i),r=Object.assign({},t,e),a=Ya(this._chart,i,r),l=Ka(i,r,a,this._chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this._chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:o,cornerRadius:r}=i,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=De(r),{x:u,y:d}=t,{width:f,height:p}=e;let g,b,m,x,_,y;return"center"===s?(_=d+p/2,"left"===n?(g=u,b=g-o,x=_+o,y=_-o):(g=u+f,b=g+o,x=_-o,y=_+o),m=g):(b="left"===n?u+Math.max(a,c)+o:"right"===n?u+f-Math.max(l,h)-o:this.caretX,"top"===s?(x=d,_=x-o,g=b-o,m=b+o):(x=d+p,_=x+o,g=b+o,m=b-o),y=x),{x1:g,x2:b,x3:m,y1:x,y2:_,y3:y}}drawTitle(t,e,i){const n=this.title,s=n.length;let o,r,a;if(s){const l=Ni(i.rtl,this.x,this.width);for(t.x=Za(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=Re(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,a=0;a<s;++a)e.fillText(n[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,a+1===s&&(t.y+=i.titleMarginBottom-r)}}_drawColorBox(t,e,i,n,s){const o=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:a,boxWidth:l,boxPadding:c}=s,h=Re(s.bodyFont),u=Za(this,"left",s),d=n.x(u),f=a<h.lineHeight?(h.lineHeight-a)/2:0,p=e.y+f;if(s.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=n.leftForLtr(d,l)+l/2,c=p+a/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,fe(t,e,i,c),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,fe(t,e,i,c)}else{t.lineWidth=o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=n.leftForLtr(d,l-c),i=n.leftForLtr(n.xPlus(d,1),l-c-2),r=De(o.borderRadius);Object.values(r).some(t=>0!==t)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,we(t,{x:e,y:p,w:l,h:a,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),we(t,{x:i,y:p+1,w:l-2,h:a-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,p,l,a),t.strokeRect(e,p,l,a),t.fillStyle=o.backgroundColor,t.fillRect(i,p+1,l-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:c}=i,h=Re(i.bodyFont);let u=h.lineHeight,d=0;const f=Ni(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+d),t.y+u/2),t.y+=u+s},g=f.textAlign(o);let b,m,x,_,v,w,M;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=Za(this,g,i),e.fillStyle=i.bodyColor,y(this.beforeBody,p),d=r&&"right"!==g?"center"===o?l/2+c:l+2+c:0,_=0,w=n.length;_<w;++_){for(b=n[_],m=this.labelTextColors[_],e.fillStyle=m,y(b.before,p),x=b.lines,r&&x.length&&(this._drawColorBox(e,t,_,f,i),u=Math.max(h.lineHeight,a)),v=0,M=x.length;v<M;++v)p(x[v]),u=h.lineHeight;y(b.after,p)}d=0,u=h.lineHeight,y(this.afterBody,p),t.y-=s}drawFooter(t,e,i){const n=this.footer,s=n.length;let o,r;if(s){const a=Ni(i.rtl,this.x,this.width);for(t.x=Za(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",o=Re(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,r=0;r<s;++r)e.fillText(n[r],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:s,yAlign:o}=this,{x:r,y:a}=t,{width:l,height:c}=i,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=De(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(r+h,a),"top"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+l-u,a),e.quadraticCurveTo(r+l,a,r+l,a+u),"center"===o&&"right"===s&&this.drawCaret(t,e,i,n),e.lineTo(r+l,a+c-f),e.quadraticCurveTo(r+l,a+c,r+l-f,a+c),"bottom"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+d,a+c),e.quadraticCurveTo(r,a+c,r,a+c-d),"center"===o&&"left"===s&&this.drawCaret(t,e,i,n),e.lineTo(r,a+h),e.quadraticCurveTo(r,a,r+h,a),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this._chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=Fa[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Na(this,t),r=Object.assign({},i,this._size),a=Ya(e,t,r),l=Ka(t,r,a,e);n._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Ae(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),Hi(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),Ui(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map(({datasetIndex:t,index:e})=>{const i=this._chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),s=!v(i,n),o=this._positionChanged(n,e);(s||o)&&(this._active=n,this._eventPosition=e,this.update(!0))}handleEvent(t,e){const i=this.options,n=this._active||[];let s=!1,o=[];"mouseout"!==t.type&&(o=this._chart.getElementsAtEventForMode(t,i.mode,i,e),i.reverse&&o.reverse());const r=this._positionChanged(o,t);return s=e||!v(o,n)||r,s&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=Fa[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}tl.positioners=Fa;var el={id:"tooltip",_element:tl,positioners:Fa,afterInit(t,e,i){i&&(t.tooltip=new tl({_chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip,i={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",i)&&(e&&e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i))},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:c,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:c,beforeBody:c,beforeLabel:c,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return u(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex),i=e.controller.getStyle(t.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex),i=e.controller.getStyle(t.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:c,afterBody:c,beforeFooter:c,footer:c,afterFooter:c}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},il=Object.freeze({__proto__:null,Decimation:ea,Filler:Pa,Legend:Ta,SubTitle:Ia,Title:ja,Tooltip:el});const nl=(t,e,i)=>"string"===typeof e?t.push(e)-1:isNaN(e)?null:i;function sl(t,e,i){const n=t.indexOf(e);if(-1===n)return nl(t,e,i);const s=t.lastIndexOf(e);return n!==s?i:n}const ol=(t,e)=>null===t?null:rt(Math.round(t),0,e);class rl extends Oo{constructor(t){super(t),this._startValue=void 0,this._valueRange=0}parse(t,e){if(u(t))return null;const i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:sl(i,t,b(e,t)),ol(e,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)n.push({value:o});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!==typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function al(t,e){const i=[],n=1e-14,{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:f}=t,p=o||1,g=h-1,{min:b,max:m}=e,x=!u(r),_=!u(a),y=!u(c),v=(m-b)/(d+1);let w,M,k,S,C=Y((m-b)/g/p)*p;if(C<n&&!x&&!_)return[{value:b},{value:m}];S=Math.ceil(m/C)-Math.floor(b/C),S>g&&(C=Y(S*C/g/p)*p),u(l)||(w=Math.pow(10,l),C=Math.ceil(C*w)/w),"ticks"===s?(M=Math.floor(b/C)*C,k=Math.ceil(m/C)*C):(M=b,k=m),x&&_&&o&&Z((a-r)/o,C/1e3)?(S=Math.round(Math.min((a-r)/C,h)),C=(a-r)/S,M=r,k=a):y?(M=x?r:M,k=_?a:k,S=c-1,C=(k-M)/S):(S=(k-M)/C,S=K(S,Math.round(S),C/1e3)?Math.round(S):Math.ceil(S));const P=Math.max(tt(C),tt(M));w=Math.pow(10,u(l)?P:l),M=Math.round(M*w)/w,k=Math.round(k*w)/w;let O=0;for(x&&(f&&M!==r?(i.push({value:r}),M<r&&O++,K(Math.round((M+O*C)*w)/w,r,ll(r,v,t))&&O++):M<r&&O++);O<S;++O)i.push({value:Math.round((M+O*C)*w)/w});return _&&f&&k!==a?i.length&&K(i[i.length-1].value,a,ll(a,v,t))?i[i.length-1].value=a:i.push({value:a}):_&&k!==a||i.push({value:k}),i}function ll(t,e,{horizontal:i,minRotation:n}){const s=J(n),o=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}rl.id="category",rl.defaults={ticks:{callback:rl.prototype.getLabelForValue}};class cl extends Oo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return u(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const o=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=$(n),e=$(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(n===s){let e=1;(s>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*s)),r(s+e),t||o(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},s=this._range||this,o=al(n,s);return"ticks"===t.bounds&&G(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Bi(t,this.chart.options.locale)}}class hl extends cl{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=p(t)?t:0,this.max=p(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=J(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function ul(t){const e=t/Math.pow(10,Math.floor(U(t)));return 1===e}function dl(t,e){const i=Math.floor(U(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),s=[];let o=g(t.min,Math.pow(10,Math.floor(U(e.min)))),r=Math.floor(U(o)),a=Math.floor(o/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{s.push({value:o,major:ul(o)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),o=Math.round(a*Math.pow(10,r)*l)/l}while(r<i||r===i&&a<n);const c=g(t.max,o);return s.push({value:c,major:ul(o)}),s}hl.id="linear",hl.defaults={ticks:{callback:lo.formatters.numeric}};class fl extends Oo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=cl.prototype.parse.apply(this,[t,e]);if(0!==i)return p(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=p(t)?Math.max(0,t):null,this.max=p(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,o=t=>n=e?n:t,r=(t,e)=>Math.pow(10,Math.floor(U(t))+e);i===n&&(i<=0?(s(1),o(10)):(s(r(i,-1)),o(r(n,1)))),i<=0&&s(r(n,-1)),n<=0&&o(r(i,1)),this._zero&&this.min!==this._suggestedMin&&i===r(this.min,0)&&s(r(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},i=dl(e,this);return"ticks"===t.bounds&&G(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return void 0===t?"0":Bi(t,this.chart.options.locale)}configure(){const t=this.min;super.configure(),this._startValue=U(t),this._valueRange=U(this.max)-U(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(U(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function pl(t){const e=t.ticks;if(e.display&&t.display){const t=Ae(e.backdropPadding);return b(e.font&&e.font.size,ae.font.size)+t.height}return 0}function gl(t,e,i){return i=d(i)?i:[i],{w:he(t,e.string,i),h:i.length*e.lineHeight}}function bl(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:t<n||t>s?{start:e-i,end:e}:{start:e,end:e+i}}function ml(t){const e={l:0,r:t.width,t:0,b:t.height-t.paddingTop},i={},n=[],s=[],o=t.getLabels().length;for(let r=0;r<o;r++){const o=t.options.pointLabels.setContext(t.getPointLabelContext(r));s[r]=o.padding;const a=t.getPointPosition(r,t.drawingArea+s[r]),l=Re(o.font),c=gl(t.ctx,l,t._pointLabels[r]);n[r]=c;const h=t.getIndexAngle(r),u=Q(h),d=bl(u,a.x,c.w,0,180),f=bl(u,a.y,c.h,90,270);d.start<e.l&&(e.l=d.start,i.l=h),d.end>e.r&&(e.r=d.end,i.r=h),f.start<e.t&&(e.t=f.start,i.t=h),f.end>e.b&&(e.b=f.end,i.b=h)}t._setReductions(t.drawingArea,e,i),t._pointLabelItems=xl(t,n,s)}function xl(t,e,i){const n=[],s=t.getLabels().length,o=t.options,r=pl(o),a=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max);for(let l=0;l<s;l++){const s=0===l?r/2:0,o=t.getPointPosition(l,a+s+i[l]),c=Q(t.getIndexAngle(l)),h=e[l],u=vl(o.y,h.h,c),d=_l(c),f=yl(o.x,h.w,d);n.push({x:o.x,y:u,textAlign:d,left:f,top:u,right:f+h.w,bottom:u+h.h})}return n}function _l(t){return 0===t||180===t?"center":t<180?"left":"right"}function yl(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function vl(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function wl(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let s=e-1;s>=0;s--){const e=n.setContext(t.getPointLabelContext(s)),o=Re(e.font),{x:r,y:a,textAlign:l,left:c,top:h,right:d,bottom:f}=t._pointLabelItems[s],{backdropColor:p}=e;if(!u(p)){const t=Ae(e.backdropPadding);i.fillStyle=p,i.fillRect(c-t.left,h-t.top,d-c+t.width,f-h+t.height)}_e(i,t._pointLabels[s],r,a+o.lineHeight/2,o,{color:e.color,textAlign:l,textBaseline:"middle"})}}function Ml(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,I);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;o<n;o++)i=t.getPointPosition(o,e),s.lineTo(i.x,i.y)}}function kl(t,e,i,n){const s=t.ctx,o=e.circular,{color:r,lineWidth:a}=e;!o&&!n||!r||!a||i<0||(s.save(),s.strokeStyle=r,s.lineWidth=a,s.setLineDash(e.borderDash),s.lineDashOffset=e.borderDashOffset,s.beginPath(),Ml(t,i,o,n),s.closePath(),s.stroke(),s.restore())}function Sl(t){return q(t)?t:0}function Cl(t,e,i){return Ee(t,{label:i,index:e,type:"pointLabel"})}fl.id="logarithmic",fl.defaults={ticks:{callback:lo.formatters.logarithmic,major:{enabled:!0}}};class Pl extends cl{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){this.width=this.maxWidth,this.height=this.maxHeight,this.paddingTop=pl(this.options)/2,this.xCenter=Math.floor(this.width/2),this.yCenter=Math.floor((this.height-this.paddingTop)/2),this.drawingArea=Math.min(this.height-this.paddingTop,this.width)/2}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=p(t)&&!isNaN(t)?t:0,this.max=p(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/pl(this.options))}generateTickLabels(t){cl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const i=_(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})}fit(){const t=this.options;t.display&&t.pointLabels.display?ml(this):this.setCenterPoint(0,0,0,0)}_setReductions(t,e,i){let n=e.l/Math.sin(i.l),s=Math.max(e.r-this.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),r=-Math.max(e.b-(this.height-this.paddingTop),0)/Math.cos(i.b);n=Sl(n),s=Sl(s),o=Sl(o),r=Sl(r),this.drawingArea=Math.max(t/2,Math.min(Math.floor(t-(n+s)/2),Math.floor(t-(o+r)/2))),this.setCenterPoint(n,s,o,r)}setCenterPoint(t,e,i,n){const s=this.width-e-this.drawingArea,o=t+this.drawingArea,r=i+this.drawingArea,a=this.height-this.paddingTop-n-this.drawingArea;this.xCenter=Math.floor((o+s)/2+this.left),this.yCenter=Math.floor((r+a)/2+this.top+this.paddingTop)}getIndexAngle(t){const e=I/this.getLabels().length,i=this.options.startAngle||0;return st(t*e+J(i))}getDistanceFromCenterForValue(t){if(u(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(u(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return Cl(this.getContext(),t,i)}}getPointPosition(t,e){const i=this.getIndexAngle(t)-W;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:n,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Ml(this,this.getDistanceFromCenterForValue(this._endValue),e,this.getLabels().length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:n}=e,s=this.getLabels().length;let o,r,a;if(e.pointLabels.display&&wl(this,s),n.display&&this.ticks.forEach((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);const i=n.setContext(this.getContext(e-1));kl(this,i,r,s)}}),i.display){for(t.save(),o=this.getLabels().length-1;o>=0;o--){const n=i.setContext(this.getPointLabelContext(o)),{color:s,lineWidth:l}=n;l&&s&&(t.lineWidth=l,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((n,r)=>{if(0===r&&!e.reverse)return;const a=i.setContext(this.getContext(r)),l=Re(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=Ae(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}_e(t,n.label,0,-s,l,{color:a.color})}),t.restore()}drawTitle(){}}Pl.id="radialLinear",Pl.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:lo.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5}},Pl.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Pl.descriptors={angleLines:{_fallback:"grid"}};const Ol={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Dl=Object.keys(Ol);function Al(t,e){return t-e}function Rl(t,e){if(u(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:o}=t._parseOpts;let r=e;return"function"===typeof n&&(r=n(r)),p(r)||(r="string"===typeof n?i.parse(r,n):i.parse(r)),null===r?null:(s&&(r="week"!==s||!q(o)&&!0!==o?i.startOf(r,s):i.startOf(r,"isoWeek",o)),+r)}function Tl(t,e,i,n){const s=Dl.length;for(let o=Dl.indexOf(t);o<s-1;++o){const t=Ol[Dl[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(s*t.size))<=n)return Dl[o]}return Dl[s-1]}function Ll(t,e,i,n,s){for(let o=Dl.length-1;o>=Dl.indexOf(i);o--){const i=Dl[o];if(Ol[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return Dl[i?Dl.indexOf(i):0]}function El(t){for(let e=Dl.indexOf(t)+1,i=Dl.length;e<i;++e)if(Ol[Dl[e]].common)return Dl[e]}function jl(t,e,i){if(i){if(i.length){const{lo:n,hi:s}=je(i,e),o=i[n]>=e?i[n]:i[s];t[o]=!0}}else t[e]=!0}function zl(t,e,i,n){const s=t._adapter,o=+s.startOf(e[0].value,n),r=e[e.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,n))l=i[a],l>=0&&(e[l].major=!0);return e}function Il(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,n.push({value:a,major:!1});return 0!==o&&i?zl(t,n,s,i):n}class Fl extends Oo{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new hs._date(t.adapters.date);C(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Rl(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();function a(t){o||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}o&&r||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=p(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=p(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=this.max,r=Fe(n,s,o);return this._unit=e.unit||(i.autoSkip?Tl(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):Ll(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?El(this._unit):void 0,this.initOffsets(n),t.reverse&&r.reverse(),Il(this,r,this._majorUnit)}initOffsets(t){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=rt(n,0,o),s=rt(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||Tl(s.minUnit,e,i,this._getLabelCapacity(e)),r=b(s.stepSize,1),a="week"===o&&s.isoWeekday,l=q(a)||!0===a,c={};let h,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":o),t.diff(i,e,o)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+o);const f="data"===n.ticks.source&&this.getDataTimestamps();for(h=d,u=0;h<i;h=+t.add(h,r,o),u++)jl(c,h,f);return h!==i&&"ticks"!==n.bounds&&1!==u||jl(c,h,f),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const s=this.options,o=s.time.displayFormats,r=this._unit,a=this._majorUnit,l=r&&o[r],c=a&&o[a],h=i[e],u=a&&c&&h&&h.major,d=this._adapter.format(t,n||(u?c:l)),f=s.ticks.callback;return f?_(f,[d,e,i],this):d}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,n=J(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(n),o=Math.sin(n),r=this._resolveTickFontOptions(0).size;return{w:i*s+r*o,h:i*o+r*s}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,Il(this,[t],this._majorUnit),n),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(Rl(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ne(t.sort(Al))}}function Bl(t,e,i){let n,s,o,r,a=0,l=t.length-1;i?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=ze(t,"pos",e)),({pos:n,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=ze(t,"time",e)),({time:n,pos:o}=t[a]),({time:s,pos:r}=t[l]));const c=s-n;return c?o+(r-o)*(e-n)/c:o}Fl.id="time",Fl.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Vl extends Fl{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Bl(e,this.min),this._tableRange=Bl(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,l,c;for(o=0,r=t.length;o<r;++o)l=t[o],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;o<r;++o)c=n[o+1],a=n[o-1],l=n[o],Math.round((c+a)/2)!==l&&s.push({time:l,pos:o/(r-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Bl(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Bl(this._table,i*this._tableRange+this._minPos,!0)}}Vl.id="timeseries",Vl.defaults=Fl.defaults;var Wl=Object.freeze({__proto__:null,CategoryScale:rl,LinearScale:hl,LogarithmicScale:fl,RadialLinearScale:Pl,TimeScale:Fl,TimeSeriesScale:Vl});const Nl=[as,Kr,il,Wl]},"9e69":function(t,e,i){var n=i("2b3e"),s=n.Symbol;t.exports=s},a029:function(t,e,i){var n=i("087d"),s=i("2dcb"),o=i("32f4"),r=i("d327"),a=Object.getOwnPropertySymbols,l=a?function(t){var e=[];while(t)n(e,o(t)),t=s(t);return e}:r;t.exports=l},a2be:function(t,e,i){var n=i("d612"),s=i("4284"),o=i("c584"),r=1,a=2;function l(t,e,i,l,c,h){var u=i&r,d=t.length,f=e.length;if(d!=f&&!(u&&f>d))return!1;var p=h.get(t),g=h.get(e);if(p&&g)return p==e&&g==t;var b=-1,m=!0,x=i&a?new n:void 0;h.set(t,e),h.set(e,t);while(++b<d){var _=t[b],y=e[b];if(l)var v=u?l(y,_,b,e,t,h):l(_,y,b,t,e,h);if(void 0!==v){if(v)continue;m=!1;break}if(x){if(!s(e,(function(t,e){if(!o(x,e)&&(_===t||c(_,t,i,l,h)))return x.push(e)}))){m=!1;break}}else if(_!==y&&!c(_,y,i,l,h)){m=!1;break}}return h["delete"](t),h["delete"](e),m}t.exports=l},a2db:function(t,e,i){var n=i("9e69"),s=n?n.prototype:void 0,o=s?s.valueOf:void 0;function r(t){return o?Object(o.call(t)):{}}t.exports=r},a524:function(t,e,i){var n=i("4245");function s(t){return n(this,t).has(t)}t.exports=s},a919:function(t,e,i){var n=i("ddc6"),s={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},o=n(s);t.exports=o},a994:function(t,e,i){var n=i("7d1f"),s=i("32f4"),o=i("ec69");function r(t){return n(t,o,s)}t.exports=r},aaec:function(t,e){var i="\\ud800-\\udfff",n="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",r=n+s+o,a="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+i+r+a+"]");function h(t){return c.test(t)}t.exports=h},ac41:function(t,e){function i(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}t.exports=i},b047:function(t,e){function i(t){return function(e){return t(e)}}t.exports=i},b1e5:function(t,e,i){var n=i("a994"),s=1,o=Object.prototype,r=o.hasOwnProperty;function a(t,e,i,o,a,l){var c=i&s,h=n(t),u=h.length,d=n(e),f=d.length;if(u!=f&&!c)return!1;var p=u;while(p--){var g=h[p];if(!(c?g in e:r.call(e,g)))return!1}var b=l.get(t),m=l.get(e);if(b&&m)return b==e&&m==t;var x=!0;l.set(t,e),l.set(e,t);var _=c;while(++p<u){g=h[p];var y=t[g],v=e[g];if(o)var w=c?o(v,y,g,e,t,l):o(y,v,g,t,e,l);if(!(void 0===w?y===v||a(y,v,i,o,l):w)){x=!1;break}_||(_="constructor"==g)}if(x&&!_){var M=t.constructor,k=e.constructor;M==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof M&&M instanceof M&&"function"==typeof k&&k instanceof k||(x=!1)}return l["delete"](t),l["delete"](e),x}t.exports=a},b20a:function(t,e,i){var n=i("6ac0"),s=i("4caa"),o=i("ea72"),r="['’]",a=RegExp(r,"g");function l(t){return function(e){return n(o(s(e).replace(a,"")),t,"")}}t.exports=l},b218:function(t,e){var i=9007199254740991;function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}t.exports=n},b48c:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.ScatterChart=e.BubbleChart=e.RadarChart=e.PolarAreaChart=e.PieChart=e.LineChart=e.DoughnutChart=e.BarChart=e.defineChartComponent=void 0;const o=i("0801");var r=i("0801");Object.defineProperty(e,"defineChartComponent",{enumerable:!0,get:function(){return r.defineChartComponent}}),s(i("8429"),e),e.BarChart=o.defineChartComponent("bar-chart","bar"),e.DoughnutChart=o.defineChartComponent("doughnut-chart","doughnut"),e.LineChart=o.defineChartComponent("line-chart","line"),e.PieChart=o.defineChartComponent("pie-chart","pie"),e.PolarAreaChart=o.defineChartComponent("polar-chart","polarArea"),e.RadarChart=o.defineChartComponent("radar-chart","radar"),e.BubbleChart=o.defineChartComponent("bubble-chart","bubble"),e.ScatterChart=o.defineChartComponent("scatter-chart","scatter"),e.default={BarChart:e.BarChart,DoughnutChart:e.DoughnutChart,LineChart:e.LineChart,PieChart:e.PieChart,PolarAreaChart:e.PolarAreaChart,RadarChart:e.RadarChart,BubbleChart:e.BubbleChart,ScatterChart:e.ScatterChart,defineChartComponent:o.defineChartComponent}},b4c0:function(t,e,i){var n=i("cb5a");function s(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]}t.exports=s},b5a7:function(t,e,i){var n=i("0b07"),s=i("2b3e"),o=n(s,"DataView");t.exports=o},bba4:function(t,e,i){var n=i("e9a7"),s=i("b20a"),o=s((function(t,e,i){return e=e.toLowerCase(),t+(i?n(e):e)}));t.exports=o},bbc0:function(t,e,i){var n=i("6044"),s="__lodash_hash_undefined__",o=Object.prototype,r=o.hasOwnProperty;function a(t){var e=this.__data__;if(n){var i=e[t];return i===s?void 0:i}return r.call(e,t)?e[t]:void 0}t.exports=a},c05f:function(t,e,i){var n=i("7b97"),s=i("1310");function o(t,e,i,r,a){return t===e||(null==t||null==e||!s(t)&&!s(e)?t!==t&&e!==e:n(t,e,i,r,o,a))}t.exports=o},c098:function(t,e){var i=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function s(t,e){var s=typeof t;return e=null==e?i:e,!!e&&("number"==s||"symbol"!=s&&n.test(t))&&t>-1&&t%1==0&&t<e}t.exports=s},c2b6:function(t,e,i){var n=i("f8af"),s=i("5d89"),o=i("6f6c"),r=i("a2db"),a=i("c8fe"),l="[object Boolean]",c="[object Date]",h="[object Map]",u="[object Number]",d="[object RegExp]",f="[object Set]",p="[object String]",g="[object Symbol]",b="[object ArrayBuffer]",m="[object DataView]",x="[object Float32Array]",_="[object Float64Array]",y="[object Int8Array]",v="[object Int16Array]",w="[object Int32Array]",M="[object Uint8Array]",k="[object Uint8ClampedArray]",S="[object Uint16Array]",C="[object Uint32Array]";function P(t,e,i){var P=t.constructor;switch(e){case b:return n(t);case l:case c:return new P(+t);case m:return s(t,i);case x:case _:case y:case v:case w:case M:case k:case S:case C:return a(t,i);case h:return new P;case u:case p:return new P(t);case d:return o(t);case f:return new P;case g:return r(t)}}t.exports=P},c32f:function(t,e,i){var n=i("2b10");function s(t,e,i){var s=t.length;return i=void 0===i?s:i,!e&&i>=s?t:n(t,e,i)}t.exports=s},c3fc:function(t,e,i){var n=i("42a2"),s=i("1310"),o="[object Set]";function r(t){return s(t)&&n(t)==o}t.exports=r},c584:function(t,e){function i(t,e){return t.has(e)}t.exports=i},c869:function(t,e,i){var n=i("0b07"),s=i("2b3e"),o=n(s,"Set");t.exports=o},c87c:function(t,e){var i=Object.prototype,n=i.hasOwnProperty;function s(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(i.index=t.index,i.input=t.input),i}t.exports=s},c8fe:function(t,e,i){var n=i("f8af");function s(t,e){var i=e?n(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}t.exports=s},cb5a:function(t,e,i){var n=i("9638");function s(t,e){var i=t.length;while(i--)if(n(t[i][0],e))return i;return-1}t.exports=s},cc45:function(t,e,i){var n=i("1a2d"),s=i("b047"),o=i("99d3"),r=o&&o.isMap,a=r?s(r):n;t.exports=a},ce86:function(t,e,i){var n=i("9e69"),s=i("7948"),o=i("6747"),r=i("ffd6"),a=1/0,l=n?n.prototype:void 0,c=l?l.toString:void 0;function h(t){if("string"==typeof t)return t;if(o(t))return s(t,h)+"";if(r(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-a?"-0":e}t.exports=h},d02c:function(t,e,i){var n=i("5e2e"),s=i("79bc"),o=i("7b83"),r=200;function a(t,e){var i=this.__data__;if(i instanceof n){var a=i.__data__;if(!s||a.length<r-1)return a.push([t,e]),this.size=++i.size,this;i=this.__data__=new o(a)}return i.set(t,e),this.size=i.size,this}t.exports=a},d094:function(t,e){var i="\\ud800-\\udfff",n="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",r=n+s+o,a="\\ufe0e\\ufe0f",l="["+i+"]",c="["+r+"]",h="\\ud83c[\\udffb-\\udfff]",u="(?:"+c+"|"+h+")",d="[^"+i+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",b=u+"?",m="["+a+"]?",x="(?:"+g+"(?:"+[d,f,p].join("|")+")"+m+b+")*",_=m+b+x,y="(?:"+[d+c+"?",c,f,p,l].join("|")+")",v=RegExp(h+"(?="+h+")|"+y+_,"g");function w(t){return t.match(v)||[]}t.exports=w},d194:function(t,e,i){var n=i("c32f"),s=i("aaec"),o=i("126d"),r=i("76dd");function a(t){return function(e){e=r(e);var i=s(e)?o(e):void 0,a=i?i[0]:e.charAt(0),l=i?n(i,1).join(""):e.slice(1);return a[t]()+l}}t.exports=a},d327:function(t,e){function i(){return[]}t.exports=i},d370:function(t,e,i){var n=i("253c"),s=i("1310"),o=Object.prototype,r=o.hasOwnProperty,a=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(t){return s(t)&&r.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},d612:function(t,e,i){var n=i("7b83"),s=i("7ed2"),o=i("dc0f");function r(t){var e=-1,i=null==t?0:t.length;this.__data__=new n;while(++e<i)this.add(t[e])}r.prototype.add=r.prototype.push=s,r.prototype.has=o,t.exports=r},d7ee:function(t,e,i){var n=i("c3fc"),s=i("b047"),o=i("99d3"),r=o&&o.isSet,a=r?s(r):n;t.exports=a},da03:function(t,e,i){var n=i("2b3e"),s=n["__core-js_shared__"];t.exports=s},dc0f:function(t,e){function i(t){return this.__data__.has(t)}t.exports=i},dc57:function(t,e){var i=Function.prototype,n=i.toString;function s(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=s},ddc6:function(t,e){function i(t){return function(e){return null==t?void 0:t[e]}}t.exports=i},e1bd:function(t,e,i){"use strict";i.r(e),i.d(e,"nanoid",(function(){return a})),i.d(e,"customAlphabet",(function(){return r})),i.d(e,"customRandom",(function(){return o})),i.d(e,"urlAlphabet",(function(){return n})),i.d(e,"random",(function(){return s}));let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let s=t=>crypto.getRandomValues(new Uint8Array(t)),o=(t,e,i)=>{let n=(2<<Math.log(t.length-1)/Math.LN2)-1,s=-~(1.6*n*e/t.length);return()=>{let o="";while(1){let r=i(s),a=s;while(a--)if(o+=t[r[a]&n]||"",o.length===e)return o}}},r=(t,e)=>o(t,e,s),a=(t=21)=>{let e="",i=crypto.getRandomValues(new Uint8Array(t));while(t--){let n=63&i[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e}},e24b:function(t,e,i){var n=i("49f4"),s=i("1efc"),o=i("bbc0"),r=i("7a48"),a=i("2524");function l(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype["delete"]=s,l.prototype.get=o,l.prototype.has=r,l.prototype.set=a,t.exports=l},e5383:function(t,e,i){(function(t){var n=i("2b3e"),s=e&&!e.nodeType&&e,o=s&&"object"==typeof t&&t&&!t.nodeType&&t,r=o&&o.exports===s,a=r?n.Buffer:void 0,l=a?a.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var i=t.length,n=l?l(i):new t.constructor(i);return t.copy(n),n}t.exports=c}).call(this,i("62e4")(t))},e740:function(t,e,i){var n=i("b20a"),s=i("8103"),o=n((function(t,e,i){return t+(i?" ":"")+s(e)}));t.exports=o},e9a7:function(t,e,i){var n=i("76dd"),s=i("8103");function o(t){return s(n(t).toLowerCase())}t.exports=o},ea72:function(t,e,i){var n=i("7559"),s=i("7e8e"),o=i("76dd"),r=i("f4d9");function a(t,e,i){return t=o(t),e=i?void 0:e,void 0===e?s(t)?r(t):n(t):t.match(e)||[]}t.exports=a},eac5:function(t,e){var i=Object.prototype;function n(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||i;return t===n}t.exports=n},ec69:function(t,e,i){var n=i("6fcd"),s=i("03dd"),o=i("30c9");function r(t){return o(t)?n(t):s(t)}t.exports=r},ec8c:function(t,e){function i(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}t.exports=i},edfa:function(t,e){function i(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i}t.exports=i},efb6:function(t,e,i){var n=i("5e2e");function s(){this.__data__=new n,this.size=0}t.exports=s},f4d9:function(t,e){var i="\\ud800-\\udfff",n="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",r=n+s+o,a="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",c="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",u="\\u2000-\\u206f",d=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",g=c+h+u+d,b="['’]",m="["+g+"]",x="["+r+"]",_="\\d+",y="["+a+"]",v="["+l+"]",w="[^"+i+g+_+a+l+f+"]",M="\\ud83c[\\udffb-\\udfff]",k="(?:"+x+"|"+M+")",S="[^"+i+"]",C="(?:\\ud83c[\\udde6-\\uddff]){2}",P="[\\ud800-\\udbff][\\udc00-\\udfff]",O="["+f+"]",D="\\u200d",A="(?:"+v+"|"+w+")",R="(?:"+O+"|"+w+")",T="(?:"+b+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+b+"(?:D|LL|M|RE|S|T|VE))?",E=k+"?",j="["+p+"]?",z="(?:"+D+"(?:"+[S,C,P].join("|")+")"+j+E+")*",I="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",F="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",B=j+E+z,V="(?:"+[y,C,P].join("|")+")"+B,W=RegExp([O+"?"+v+"+"+T+"(?="+[m,O,"$"].join("|")+")",R+"+"+L+"(?="+[m,O+A,"$"].join("|")+")",O+"?"+A+"+"+T,O+"+"+L,F,I,_,V].join("|"),"g");function N(t){return t.match(W)||[]}t.exports=N},f8af:function(t,e,i){var n=i("2474");function s(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}t.exports=s},fa21:function(t,e,i){var n=i("7530"),s=i("2dcb"),o=i("eac5");function r(t){return"function"!=typeof t.constructor||o(t)?{}:n(s(t))}t.exports=r},fba5:function(t,e,i){var n=i("cb5a");function s(t){return n(this.__data__,t)>-1}t.exports=s},ffd6:function(t,e,i){var n=i("3729"),s=i("1310"),o="[object Symbol]";function r(t){return"symbol"==typeof t||s(t)&&n(t)==o}t.exports=r}}]);
  //# sourceMappingURL=chunk-d0adc622.89c44029.js.map