1/*! For license information please see montere-764.a3fd768dd5b12a2ff9cb.js.LICENSE.txt */ 2(self.webpackChunkmontere=self.webpackChunkmontere||[]).push([[764],{8790:function(t){t.exports=function(){"use strict";const t="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function e(e,i,n){const a=n||(t=>Array.prototype.slice.call(t));let o=!1,s=[];return function(...n){s=a(n),o||(o=!0,t.call(window,(()=>{o=!1,e.apply(i,s)})))}}function i(t,e){let i;return function(){return e?(clearTimeout(i),i=setTimeout(t,e)):t(),e}}const n=t=>"start"===t?"left":"end"===t?"right":"center",a=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,o=(t,e,i)=>"right"===t?i:"center"===t?(e+i)/2:e;var s=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const a=e.listeners[n],o=e.duration;a.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){const e=this;e._request||(e._running=!0,e._request=t.call(window,(()=>{e._update(),e._request=null,e._running&&e._refresh()})))}_update(t=Date.now()){const e=this;let i=0;e._charts.forEach(((n,a)=>{if(!n.running||!n.items.length)return;const o=n.items;let s,r=o.length-1,c=!1;for(;r>=0;--r)s=o[r],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(t),c=!0):(o[r]=o[o.length-1],o.pop());c&&(a.draw(),e._notify(a,n,t,"progress")),o.length||(n.running=!1,e._notify(a,n,t,"complete"),n.initial=!1),i+=o.length})),e._lastDate=t,0===i&&(e._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)}};const r={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},c="0123456789ABCDEF",l=t=>c[15&t],d=t=>c[(240&t)>>4]+c[15&t],f=t=>(240&t)>>4==(15&t);function h(t){return t+.5|0}const u=(t,e,i)=>Math.max(Math.min(t,i),e);function g(t){return u(h(2.55*t),0,255)}function b(t){return u(h(255*t),0,255)}function p(t){return u(h(t/2.55)/100,0,1)}function m(t){return u(h(100*t),0,100)}const x=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function y(t,e,i){const n=e*Math.min(i,1-i),a=(e,a=(e+t/30)%12)=>i-n*Math.max(Math.min(a-3,9-a,1),-1);return[a(0),a(8),a(4)]}function v(t,e,i){const n=(n,a=(n+t/60)%6)=>i-i*e*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function w(t,e,i){const n=y(t,1,.5);let a;for(e+i>1&&(a=1/(e+i),e*=a,i*=a),a=0;a<3;a++)n[a]*=1-e-i,n[a]+=e;return n}function M(t){const e=t.r/255,i=t.g/255,n=t.b/255,a=Math.max(e,i,n),o=Math.min(e,i,n),s=(a+o)/2;let r,c,l;return a!==o&&(l=a-o,c=s>.5?l/(2-a-o):l/(a+o),r=a===e?(i-n)/l+(i<n?6:0):a===i?(n-e)/l+2:(e-i)/l+4,r=60*r+.5),[0|r,c||0,s]}function k(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(b)}function S(t,e,i){return k(y,t,e,i)}function P(t){return(t%360+360)%360}const D={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"},C={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",K
vendor: 4,136 bytes, line 2
2ocTate:"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"};let O;function T(t,e,i){if(t){let n=M(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=S(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function A(t,e){return t?Object.assign(e||{},t):t}function R(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=b(t[3]))):(e=A(t,{r:0,g:0,b:0,a:1})).a=b(e.a),e}function L(t){return"r"===t.charAt(0)?function(t){const e=x.exec(t);let i,n,a,o=255;if(e){if(e[7]!==i){const t=+e[7];o=255&(e[8]?g(t):255*t)}return i=+e[1],n=+e[3],a=+e[5],i=255&(e[2]?g(i):i),n=255&(e[4]?g(n):n),a=255&(e[6]?g(a):a),{r:i,g:n,b:a,a:o}}}(t):function(t){const e=_.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?g(+e[5]):b(+e[5]));const a=P(+e[2]),o=+e[3]/100,s=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return k(w,t,e,i)}(a,o,s):"hsv"===e[1]?function(t,e,i){return k(v,t,e,i)}(a,o,s):S(a,o,s),{r:i[0],g:i[1],b:i[2],a:n}}(t)}class E{constructor(t){if(t instanceof E)return t;const e=typeof t;let i;var n,a,o;"object"===e?i=R(t):"string"===e&&(o=(n=t).length,"#"===n[0]&&(4===o||5===o?a={r:255&17*r[n[1]],g:255&17*r[n[2]],b:255&17*r[n[3]],a:5===o?17*r[n[4]]:255}:7!==o&&9!==o||(a={r:r[n[1]]<<4|r[n[2]],g:r[n[3]]<<4|r[n[4]],b:r[n[5]]<<4|r[n[6]],a:9===o?r[n[7]]<<4|r[n[8]]:255})),i=a||function(t){O||(O=function(){const t={},e=Object.keys(C),i=Object.keys(D);let n,a,o,s,r;for(n=0;n<e.length;n++){for(s=r=e[n],a=0;a<i.length;a++)o=i[a],r=r.replace(o,D[o]);o=parseInt(C[s],16),t[r]=[o>>16&255,o>>8&255,255&o]}return t}(),O.transparent=[0,0,0,0]);const e=O[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||L(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=A(this._rgb);return t&&(t.a=p(t.a)),t}set rgb(t){this._rgb=R(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${p(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?function(t){var e=function(t){return f(t.r)&&f(t.g)&&f(t.b)&&f(t.a)}(t)?l:d;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}(this._rgb):this._rgb}
2hslString(){return this._valid?function(t){if(!t)return;const e=M(t),i=e[0],n=m(e[1]),a=m(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${a}%, ${p(t.a)})`:`hsl(${i}, ${n}%, ${a}%)`}(this._rgb):this._rgb}mix(t,e){const i=this;if(t){const n=i.rgb,a=t.rgb;let o;const s=e===o?.5:e,r=2*s-1,c=n.a-a.a,l=((r*c==-1?r:(r+c)/(1+r*c))+1)/2;o=1-l,n.r=255&l*n.r+o*a.r+.5,n.g=255&l*n.g+o*a.g+.5,n.b=255&l*n.b+o*a.b+.5,n.a=s*n.a+(1-s)*a.a,i.rgb=n}return i}clone(){return new E(this.rgb)}alpha(t){return this._rgb.a=b(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=h(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.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 T(this._rgb,2,t),this}darken(t){return T(this._rgb,2,-t),this}saturate(t){return T(this._rgb,1,t),this}desaturate(t){return T(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=M(t);i[0]=P(i[0]+e),i=S(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function I(t){return new E(t)}const F=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function z(t){return F(t)?t:I(t)}function B(t){return F(t)?t:I(t).saturate(.5).darken(.1).hexString()}function V(){}const W=function(){let t=0;return function(){return t++}}();function H(t){return null==t}function N(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 j(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const $=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Y(t,e){return $(t)?t:e}function q(t,e){return void 0===t?e:t}const U=(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 K(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function G(t,e,i,n){let a,o,s;if(N(t))if(o=t.length,n)for(a=o-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<o;a++)e.call(i,t[a],a);else if(j(t))for(s=Object.keys(t),o=s.length,a=0;a<o;a++)e.call(i,t[s[a]],s[a])}function Z(t,e){let i,n,a,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(a=t[i],o=e[i],a.datasetIndex!==o.datasetIndex||a.index!==o.index)return!1;return!0}function Q(t){if(N(t))return t.map(Q);if(j(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let a=0;for(;a<n;++a)e[i[a]]=Q(t[i[a]]);return e}return t}function J(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function tt(t,e,i,n){if(!J(t))return;const a=e[t],o=i[t];j(a)&&j(o)?et(a,o,n):e[t]=Q(o)}function et(t,e,i){const n=N(e)?e:[e],a=n.length;if(!j(t))return t;const o=(i=i||{}).merger||tt;for(let s=0;s<a;++s){if(!j(e=n[s]))continue;const a=Object.keys(e);for(let n=0,s=a.length;n<s;++n)o(a[n],t,e,i)}return t}function it(t,e){return et(t,e,{merger:nt})}function nt(t,e,i){if(!J(t))return;const n=e[t],a=i[t];j(n)&&j(a)?it(n,a):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Q(a))}function at(t,e){const i=t.indexOf(".",e);return-1===i?t.length:i}function ot(t,e){if(""===e)return t;let i=0,n=at(e,i);for(;t&&n>i;)t=t[e.substr(i,n-i)],i=n+1,n=at(e,i);return t}function st(t){return t.charAt(0).toUpperCase()+t.slice(1)}const rt=t=>void 0!==t,ct=t=>"function"==typeof t,lt=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},dt=Object.create(null),ft=Object.create(null);function ht(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;e<n;++e){const n=i[e];t=t[n]||(t[n]=Object.create(null))}return t}function ut(t,e,i){return"string"==typeof e?et(ht(t,e),i):et(ht(t,""),e)}var gt=new class{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={}
vendor: 9,926 bytes, line 2
2,this.hoverBackgroundColor=(t,e)=>B(e.backgroundColor),this.hoverBorderColor=(t,e)=>B(e.borderColor),this.hoverColor=(t,e)=>B(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 ut(this,t,e)}get(t){return ht(this,t)}describe(t,e){return ut(ft,t,e)}override(t,e){return ut(dt,t,e)}route(t,e,i,n){const a=ht(this,t),o=ht(this,i),s="_"+e;Object.defineProperties(a,{[s]:{value:a[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=o[n];return j(t)?Object.assign({},e,t):q(t,e)},set(t){this[s]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});const bt=Math.PI,pt=2*bt,mt=pt+bt,xt=Number.POSITIVE_INFINITY,_t=bt/180,yt=bt/2,vt=bt/4,wt=2*bt/3,Mt=Math.log10,kt=Math.sign;function St(t){const e=Math.pow(10,Math.floor(Mt(t))),i=t/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function Pt(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 Dt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ct(t,e,i){return Math.abs(t-e)<i}function Ot(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function Tt(t,e,i){let n,a,o;for(n=0,a=t.length;n<a;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function At(t){return t*(bt/180)}function Rt(t){return t*(180/bt)}function Lt(t){if(!$(t))return;let e=1,i=0;for(;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,a=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*bt&&(o+=pt),{angle:o,distance:a}}function It(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ft(t,e){return(t-e+mt)%pt-bt}function zt(t){return(t%pt+pt)%pt}function Bt(t,e,i,n){const a=zt(t),o=zt(e),s=zt(i),r=zt(o-a),c=zt(s-a),l=zt(a-o),d=zt(a-s);return a===o||a===s||n&&o===s||r>c&&l<d}function Vt(t,e,i){return Math.max(e,Math.min(i,t))}function Wt(t){return Vt(t,-32768,32767)}function Ht(t){return!t||H(t.size)||H(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Nt(t,e,i,n,a){let o=e[a];return o||(o=e[a]=t.measureText(a).width,i.push(a)),o>n&&(n=o),n}function jt(t,e,i,n){let a=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(a=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let s=0;const r=i.length;let c,l,d,f,h;for(c=0;c<r;c++)if(f=i[c],null!=f&&!0!==N(f))s=Nt(t,a,o,s,f);else if(N(f))for(l=0,d=f.length;l<d;l++)h=f[l],null==h||N(h)||(s=Nt(t,a,o,s,h));t.restore();const u=o.length/2;if(u>i.length){for(c=0;c<u;c++)delete a[o[c]];o.splice(0,u)}return s}function $t(t,e,i){const n=t.currentDevicePixelRatio,a=0!==i?Math.max(i/2,.5):0;return Math.round((e-a)*n)/n+a}function Yt(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function qt(t,e,i,n){let a,o,s,r,c;const l=e.pointStyle,d=e.rotation,f=e.radius;let h=(d||0)*_t;if(l&&"object"==typeof l&&(a=l.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(i,n),t.rotate(h),t.drawImage(l,-l.width/2,-l.height/2,l.width,l.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),l){default:t.arc(i,n,f,0,pt),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(h)*f,n-Math.cos(h)*f),h+=wt,t.lineTo(i+Math.sin(h)*f,n-Math.cos(h)*f),h+=wt,t.lineTo(i+Math.sin(h)*f,n-Math.cos(h)*f),t.closePath();break;case"rectRounded":c=.516*f,r=f-c,o=Math.cos(h+vt)*r,s=Math.sin(h+vt)*r,t.arc(i-o,n-s,c,h-bt,h-yt),t.arc(i+s,n-o,c,h-yt,h),t.arc(i+o,n+s,c,h,h+yt),t.arc(i-s,n+o,c,h+yt,h+bt),t.closePath();break;case"rect":if(!d){r=Math.SQRT1_2*f,t.rect(i-r,n-r,2*r,2*r);break}h+=vt;case"rectRot":o=Math.cos(h)*f,s=Math.sin(h)*f,t.moveTo(i-o,n-s),t.lineTo(i+s,n-o),t.lineTo(i+o,n+s),t.lineTo(i-s,n+o),t.closePath();break;case"crossRot":h+=vt;case"cross":o=Math.cos(h)*f,s=Math.sin(h)*f,t.moveTo(i-o,n-s),t.lineTo(i+o,n+s),t.moveTo(i+s,n-o),t.lineTo(i-s,n+o);break;case"star":o=Math.cos(h)*f,s=Math.sin(h)*f,t.moveTo(i-o,n-s),t.lineTo(i+o,n+s),t.moveTo(i+s,n-o),t.lineTo(i-s,n+o),h+=vt,o=Math.cos(h)*f,s=Math.sin(h)*f,t.moveTo(i-o,n-s),t.lineTo(i+o,n+s),t.moveTo(i+s,n-o),t.lineTo(i-s,n+o);break;case"line":o=Math.cos(h)*f,s=Math.sin(h)*f,t.moveTo(i-o,n-s),t.lineTo(i+o,n+s);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(h)*f,n+Math.sin(h)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function Ut(t,e,i){return i=i||.5,t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Xt(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Kt(t){t.restore()}function Gt(t,e,i,n,a){if(!e)return t.lineTo(i.x,i.y);if("middle"===a){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===a!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Zt(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 Qt(t,e,i,n,a,o={}){const s=N(e)?e:[e],r=o.strokeWidth>0&&""!==o.strokeColor;let c,l;for(t.save(),o.translation&&t.translate(o.translation[0],o.translation[1]),H(o.rotation)||t.rotate(o.rotation),t.font=a.string,o.color&&(t.fillStyle=o.color),o.textAlign&&(t.textAlign=o.textAlign),o.textBaseline&&(t.textBaseline=o.textBaseline),c=0;c<s.length;++c){if(l=s[c],r&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),H(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(l,i,n,o.maxWidth)),t.fillText(l,i,n,o.maxWidth),o.strikethrough||o.underline){const e=t.measureText(l),a=i-e.actualBoundingBoxLeft,s=i+e.actualBoundingBoxRight,r=n-e.actualBoundingBoxAscent,c=n+e.actualBoundingBoxDescent,d=o.strikethrough?(r+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,d),t.lineTo(s,d),t.stroke()}n+=a.lineHeight}t.restore()}function Jt(t,e){const{x:i,y:n,w:a,h:o,radius:s}=e;t.arc(i+s.topLeft,n+s.topLeft,s.topLeft,-yt,bt,!0),t.lineTo(i,n+o-s.bottomLeft),t.arc(i+s.bottomLeft,n+o-s.bottomLeft,s.bottomLeft,bt,yt,!0),t.lineTo(i+a-s.bottomRight,n+o),t.arc(i+a-s.bottomRight,n+o-s.bottomRight,s.bottomRight,yt,0,!0),t.lineTo(i+a,n+s.topRight),t.arc(i+a-s.topRight,n+s.topRight,s.topRight,0,-yt,!0),t.lineTo(i+s.topLeft,n)}function te(t,e,i){i=i||(i=>t[i]<e);let n,a=t.length-1,o=0;for(;a-o>1;)n=o+a>>1,i(n)?o=n:a=n;return{lo:o,hi:a}}const ee=(t,e,i)=>te(t,i,(n=>t[n][e]<i)),ie=(t,e,i)=>te(t,i,(n=>t[n][e]>=i));function ne(t,e,i){let n=0,a=t.length;for(;n<a&&t[n]<e;)n++;for(;a>n&&t[a-1]>i;)a--;return n>0||a<t.length?t.slice(n,a):t}const ae=["push","pop","shift","splice","unshift"];function oe(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),ae.forEach((e=>{const i="_onData"+st(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const a=n.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),a}})})))}function se(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,a=n.indexOf(e);-1!==a&&n.splice(a,1),n.length>0||(ae.forEach((e=>{delete t[e]})),delete t._chartjs)}function re(t){const e=new Set;let i,n;for(i=0,n=t.length;i<n;++i)e.add(t[i]);if(e.size===n)return t;const a=[];return e.forEach((t=>{a.push(t)})),a}function ce(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function le(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 de=t=>window.getComputedStyle(t,null);function fe(t,e){return de(t).getPropertyValue(e)}const he=["top","right","bottom","left"];function ue(t,e,i){const n={};i=i?"-"+i:"";for(let a=0;a<4;a++){const o=he[a];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function ge(t,e){const{canvas:i,currentDevicePixelRatio:n}=e,a=de(i),o="border-box"===a.boxSizing,s=ue(a,"padding"),r=ue(a,"border","width"),{x:c,y:l,box:d}=function(t,e){const i=t.native||t,n=i.touches,a=n&&n.length?n[0]:i,{offsetX:o,offsetY:s}=a;let r,c,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(o,s,i.target))r=o,c=s;else{const t=e.getBoundingClientRect();r=a.clientX-t.left,c=a.clientY-t.top,l=!0}return{x:r,y:c,box:l}}(t,i),f=s.left+(d&&r.left),h=s.top+(d&&r.top);let{width:u,height:g}=e;return o&&(u-=s.width+r.width,g-=s.height+r.height),{x:Math.round((c-f)/u*i.width/n),y:Math.round((l-h)/g*i.height/n)}}const be=t=>Math.round(10*t)/10;function pe(t,e,i,n){const a=de(t),o=ue(a,"margin"),s=le(a.maxWidth,t,"clientWidth")||xt,r=le(a.maxHeight,t,"clientHeight")||xt,c=function(t,e,i){let n,a;if(void 0===e||void 0===i){const o=ce(t);if(o){const t=o.getBoundingClientRect(),s=de(o),r=ue(s,"border","width"),c=ue(s,"padding");e=t.width-c.width-r.width,i=t.height-c.height-r.height,n=le(s.maxWidth,o,"clientWidth"),a=le(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||xt,maxHeight:a||xt}}(t,e,i);let{width:l,height:d}=c;if("content-box"===a.boxSizing){const t=ue(a,"border","width"),e=ue(a,"padding");l-=e.width+t.width,d-=e.height+t.height}return l=Math.max(0,l-o.width),d=Math.max(0,n?Math.floor(l/n):d-o.height),l=be(Math.min(l,s,c.maxWidth)),d=be(Math.min(d,r,c.maxHeight)),l&&!d&&(d=be(l/2)),{width:l,height:d}}function me(t,e,i){const n=e||1,a=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=a/n,t.width=o/n;const s=t.canvas;return s.style&&(i||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||s.height!==a||s.width!==o)&&(t.currentDevicePixelRatio=n,s.height=a,s.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const xe=function(){let t=!1;
2try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function _e(t,e){const i=fe(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ye(t,e){return"native"in t?{x:t.x,y:t.y}:ge(t,e)}function ve(t,e,i,n){const{controller:a,data:o,_sorted:s}=t,r=a._cachedMeta.iScale;if(r&&e===r.axis&&s&&o.length){const t=r._reversePixels?ie:ee;if(!n)return t(o,e,i);if(a._sharedOptions){const n=o[0],a="function"==typeof n.getRange&&n.getRange(e);if(a){const n=t(o,e,i-a),s=t(o,e,i+a);return{lo:n.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function we(t,e,i,n,a){const o=t.getSortedVisibleDatasetMetas(),s=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:c,hi:l}=ve(o[t],e,s,a);for(let t=c;t<=l;++t){const e=r[t];e.skip||n(e,i,t)}}}function Me(t,e,i,n){const a=[];return Ut(e,t.chartArea,t._minPadding)?(we(t,i,e,(function(t,i,o){t.inRange(e.x,e.y,n)&&a.push({element:t,datasetIndex:i,index:o})}),!0),a):a}function ke(t,e,i,n,a){const o=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const a=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}(i);let s=Number.POSITIVE_INFINITY,r=[];return Ut(e,t.chartArea,t._minPadding)?(we(t,i,e,(function(i,c,l){if(n&&!i.inRange(e.x,e.y,a))return;const d=i.getCenterPoint(a);if(!Ut(d,t.chartArea,t._minPadding))return;const f=o(e,d);f<s?(r=[{element:i,datasetIndex:c,index:l}],s=f):f===s&&r.push({element:i,datasetIndex:c,index:l})})),r):r}function Se(t,e,i,n){const a=ye(e,t),o=[],s=i.axis,r="x"===s?"inXRange":"inYRange";let c=!1;return function(t,e){const i=t.getSortedVisibleDatasetMetas();let n,a,o;for(let t=0,s=i.length;t<s;++t){({index:n,data:a}=i[t]);for(let t=0,i=a.length;t<i;++t)o=a[t],o.skip||e(o,n,t)}}(t,((t,e,i)=>{t[r](a[s],n)&&o.push({element:t,datasetIndex:e,index:i}),t.inRange(a.x,a.y,n)&&(c=!0)})),i.intersect&&!c?[]:o}var Pe={modes:{index(t,e,i,n){const a=ye(e,t),o=i.axis||"x",s=i.intersect?Me(t,a,o,n):ke(t,a,o,!1,n),r=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,i=t.data[e];i&&!i.skip&&r.push({element:i,datasetIndex:t.index,index:e})})),r):[]},dataset(t,e,i,n){const a=ye(e,t),o=i.axis||"xy";let s=i.intersect?Me(t,a,o,n):ke(t,a,o,!1,n);if(s.length>0){const e=s[0].datasetIndex,i=t.getDatasetMeta(e).data;s=[];for(let t=0;t<i.length;++t)s.push({element:i[t],datasetIndex:e,index:t})}return s},point:(t,e,i,n)=>Me(t,ye(e,t),i.axis||"xy",n),nearest:(t,e,i,n)=>ke(t,ye(e,t),i.axis||"xy",i.intersect,n),x:(t,e,i,n)=>(i.axis="x",Se(t,e,i,n)),y:(t,e,i,n)=>(i.axis="y",Se(t,e,i,n))}};const De=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Ce=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Oe(t,e){const i=(""+t).match(De);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}function Te(t,e){const i={},n=j(e),a=n?Object.keys(e):e,o=j(t)?n?i=>q(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of a)i[t]=+o(t)||0;return i}function Ae(t){return Te(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Re(t){return Te(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Le(t){const e=Ae(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ee(t,e){t=t||{},e=e||gt.font;let i=q(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=q(t.style,e.style);n&&!(""+n).match(Ce)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const a={family:q(t.family,e.family),lineHeight:Oe(q(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:q(t.weight,e.weight),string:""};return a.string=Ht(a),a}function Ie(t,e,i,n){let a,o,s,r=!0;for(a=0,o=t.length;a<o;++a)if(s=t[a],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),r=!1),void 0!==i&&N(s)&&(s=s[i%s.length],r=!1),void 0!==s))return n&&!r&&(n.cacheable=!1),s}function Fe(t,e){const{min:i,max:n}=t;return{min:i-Math.abs(X(e,i)),max:n+X(e,n)}}const ze=["left","top","right","bottom"];function Be(t,e){return t.filter((t=>t.pos===e))}function Ve(t,e){return t.filter((t=>-1===ze.indexOf(t.pos)&&t.box.axis===e))}function We(t,e){return t.sort(((t,i)=>{const n=e?i:t,a=e?t:i;return n.weight===a.weight?n.index-a.index:n.weight-a.weight}))}function He(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Ne(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 je(t,e,i){const n=i.box,a=t.maxPadding;j(i.pos)||(i.size&&(t[i.pos]-=i.size),i.size=i.horizontal?n.height:n.width,t[i.pos]+=i.size),n.getPadding&&Ne(a,n.getPadding());const o=Math.max(0,e.outerWidth-He(a,t,"left","right")),s=Math.max(0,e.outerHeight-He(a,t,"top","bottom")),r=o!==t.w,c=s!==t.h;return t.w=o,t.h=s,i.horizontal?{same:r,other:c}:{same:c,other:r}}function $e(t,e){const i=e.maxPadding;return function(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}(t?["left","right"]:["top","bottom"])}function Ye(t,e,i){const n=[];let a,o,s,r,c,l;for(a=0,o=t.length,c=0;a<o;++a){s=t[a],r=s.box,r.update(s.width||e.w,s.height||e.h,$e(s.horizontal,e));const{same:o,other:d}=je(e,i,s);c|=o&&n.length,l=l||d,r.fullSize||n.push(s)}return c&&Ye(n,e,i)||l}function qe(t,e,i){const n=i.padding;let a,o,s,r,c=e.x,l=e.y;for(a=0,o=t.length;a<o;
2++a)s=t[a],r=s.box,s.horizontal?(r.left=r.fullSize?n.left:e.left,r.right=r.fullSize?i.outerWidth-n.right:e.left+e.w,r.top=l,r.bottom=l+r.height,r.width=r.right-r.left,l=r.bottom):(r.left=c,r.right=c+r.width,r.top=r.fullSize?n.top:e.top,r.bottom=r.fullSize?i.outerHeight-n.right:e.top+e.h,r.height=r.bottom-r.top,c=r.right);e.x=c,e.y=l}gt.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var Ue={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 a=Le(t.options.layout.padding),o=Math.max(e-a.width,0),s=Math.max(i-a.height,0),r=function(t){const e=function(t){const e=[];let i,n,a;for(i=0,n=(t||[]).length;i<n;++i)a=t[i],e.push({index:i,box:a,pos:a.position,horizontal:a.isHorizontal(),weight:a.weight});return e}(t),i=We(e.filter((t=>t.box.fullSize)),!0),n=We(Be(e,"left"),!0),a=We(Be(e,"right")),o=We(Be(e,"top"),!0),s=We(Be(e,"bottom")),r=Ve(e,"x"),c=Ve(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:a.concat(c).concat(s).concat(r),chartArea:Be(e,"chartArea"),vertical:n.concat(a).concat(c),horizontal:o.concat(s).concat(r)}}(t.boxes),c=r.vertical,l=r.horizontal;G(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,f=Object.freeze({outerWidth:e,outerHeight:i,padding:a,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/d,hBoxMaxHeight:s/2}),h=Object.assign({},a);Ne(h,Le(n));const u=Object.assign({maxPadding:h,w:o,h:s,x:a.left,y:a.top},a);!function(t,e){let i,n,a;for(i=0,n=t.length;i<n;++i)a=t[i],a.horizontal?(a.width=a.box.fullSize&&e.availableWidth,a.height=e.hBoxMaxHeight):(a.width=e.vBoxMaxWidth,a.height=a.box.fullSize&&e.availableHeight)}(c.concat(l),f),Ye(r.fullSize,u,f),Ye(c,u,f),Ye(l,u,f)&&Ye(c,u,f),function(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")}(u),qe(r.leftAndTop,u,f),u.x+=u.w,u.y+=u.h,qe(r.rightAndBottom,u,f),t.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},G(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(u.w,u.h)}))}};class Xe{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}}class Ke extends Xe{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}}const Ge={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ze=t=>null===t||""===t,Qe=!!xe&&{passive:!0};function Je(t,e,i){t.canvas.removeEventListener(e,i,Qe)}function ti(t,e,i){const n=t.canvas,a=n&&ce(n)||n,o=new MutationObserver((t=>{const e=ce(a);t.forEach((t=>{for(let n=0;n<t.addedNodes.length;n++){const o=t.addedNodes[n];o!==a&&o!==e||i(t.target)}}))}));return o.observe(document,{childList:!0,subtree:!0}),o}function ei(t,e,i){const n=t.canvas,a=n&&ce(n);if(!a)return;const o=new MutationObserver((t=>{t.forEach((t=>{for(let e=0;e<t.removedNodes.length;e++)if(t.removedNodes[e]===n){i();break}}))}));return o.observe(a,{childList:!0}),o}const ii=new Map;let ni=0;function ai(){const t=window.devicePixelRatio;t!==ni&&(ni=t,ii.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function oi(t,i,n){const a=t.canvas,o=a&&ce(a);if(!o)return;const s=e(((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()}),window),r=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||s(i,n)}));return r.observe(o),function(t,e){ii.size||window.addEventListener("resize",ai),ii.set(t,e)}(t,s),r}
2function si(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){ii.delete(t),ii.size||window.removeEventListener("resize",ai)}(t)}function ri(t,i,n){const a=t.canvas,o=e((e=>{null!==t.ctx&&n(function(t,e){const i=Ge[t.type]||t.type,{x:n,y:a}=ge(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==a?a:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Qe)}(a,i,o),o}class ci extends Xe{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),a=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Ze(a)){const e=_e(t,"width");void 0!==e&&(t.width=e)}if(Ze(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=_e(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach((t=>{const n=i[t];H(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.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),a={attach:ti,detach:ei,resize:oi}[e]||ri;n[e]=a(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];n&&(({attach:si,detach:si,resize:si}[e]||Je)(t,e,n),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return pe(t,e,i,n)}isAttached(t){const e=ce(t);return!(!e||!ce(e))}}var li=Object.freeze({__proto__:null,BasePlatform:Xe,BasicPlatform:Ke,DomPlatform:ci});const di=t=>0===t||1===t,fi=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*pt/i),hi=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*pt/i)+1,ui={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*yt),easeOutSine:t=>Math.sin(t*yt),easeInOutSine:t=>-.5*(Math.cos(bt*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=>di(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=>di(t)?t:fi(t,.075,.3),easeOutElastic:t=>di(t)?t:hi(t,.075,.3),easeInOutElastic(t){const e=.1125;return di(t)?t:t<.5?.5*fi(2*t,e,.45):.5+.5*hi(2*t-1,e,.45)},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-ui.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*ui.easeInBounce(2*t):.5*ui.easeOutBounce(2*t-1)+.5},gi="transparent",bi={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=z(t||gi),a=n.valid&&z(e||gi);return a&&a.valid?a.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class pi{constructor(t,e,i,n){const a=e[i];n=Ie([t.to,n,a,t.from]);const o=Ie([t.from,a,n]);this._active=!0,this._fn=t.fn||bi[t.type||typeof o],this._easing=ui[t.easing]||ui.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){const n=this;if(n._active){n._notify(!1);const a=n._target[n._prop],o=i-n._start,s=n._duration-o;n._start=i,n._duration=Math.floor(Math.max(s,t.duration)),n._total+=o,n._loop=!!t.loop,n._to=Ie([t.to,e,a,t.from]),n._from=Ie([t.from,a,e])}}cancel(){const t=this;t._active&&(t.tick(Date.now()),t._active=!1,t._notify(!1))}tick(t){const e=this,i=t-e._start,n=e._duration,a=e._prop,o=e._from,s=e._loop,r=e._to;let c;if(e._active=o!==r&&(s||i<n),!e._active)return e._target[a]=r,void e._notify(!0);i<0?e._target[a]=o:(c=i/n%2,c=s&&c>1?2-c:c,c=e._easing(Math.min(1,Math.max(0,c))),e._target[a]=e._fn(o,r,c))}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 t=0;t<i.length;t++)i[t][e]()}}gt.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 mi=Object.keys(gt.animation);gt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),gt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),gt.describe("animations",{_fallback:"animation"}),gt.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 xi{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!j(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!j(n))return;const a={};for(const t of mi)a[t]=n[t];
2(N(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,a)}))}))}_animateOptions(t,e){const i=e.options,n=function(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}(t,i);if(!n)return[];const a=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const a=t[n[e]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),a}_createAnimations(t,e){const i=this._properties,n=[],a=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let r;for(r=o.length-1;r>=0;--r){const c=o[r];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(t,e));continue}const l=e[c];let d=a[c];const f=i.get(c);if(d){if(f&&d.active()){d.update(f,l,s);continue}d.cancel()}f&&f.duration?(a[c]=d=new pi(f,t,c,l),n.push(d)):t[c]=l}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?(s.add(this._chart,i),!0):void 0}}function _i(t,e){const i=t&&t.options||{},n=i.reverse,a=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:a,end:n?a:o}}function yi(t,e){const i=[],n=t._getSortedDatasetMetas(e);let a,o;for(a=0,o=n.length;a<o;++a)i.push(n[a].index);return i}function vi(t,e,i,n){const a=t.keys,o="single"===n.mode;let s,r,c,l;if(null!==e){for(s=0,r=a.length;s<r;++s){if(c=+a[s],c===i){if(n.all)continue;break}l=t.values[c],$(l)&&(o||0===e||kt(e)===kt(l))&&(e+=l)}return e}}function wi(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Mi(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function ki(t,e,i){for(const n of e.getMatchingVisibleMetas("bar").reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Si(t,e){const{chart:i,_cachedMeta:n}=t,a=i._stacks||(i._stacks={}),{iScale:o,vScale:s,index:r}=n,c=o.axis,l=s.axis,d=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,s,n),f=e.length;let h;for(let t=0;t<f;++t){const i=e[t],{[c]:n,[l]:o}=i;h=(i._stacks||(i._stacks={}))[l]=Mi(a,d,n),h[r]=o,h._top=ki(h,s,!0),h._bottom=ki(h,s,!1)}}function Pi(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Di(t,e){const i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const n of e){const e=n._stacks;if(!e||void 0===e[i]||void 0===e[i][t.index])return;delete e[i][t.index]}}}const Ci=t=>"reset"===t||"none"===t,Oi=(t,e)=>e?t:Object.assign({},t);class Ti{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,e=t._cachedMeta;t.configure(),t.linkScales(),e._stacked=wi(e.vScale,e),t.addElements()}updateIndex(t){this.index!==t&&Di(this._cachedMeta),this.index=t}linkScales(){const t=this,e=t.chart,i=t._cachedMeta,n=t.getDataset(),a=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,o=i.xAxisID=q(n.xAxisID,Pi(e,"x")),s=i.yAxisID=q(n.yAxisID,Pi(e,"y")),r=i.rAxisID=q(n.rAxisID,Pi(e,"r")),c=i.indexAxis,l=i.iAxisID=a(c,o,s,r),d=i.vAxisID=a(c,s,o,r);i.xScale=t.getScaleForId(o),i.yScale=t.getScaleForId(s),i.rScale=t.getScaleForId(r),i.iScale=t.getScaleForId(l),i.vScale=t.getScaleForId(d)}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&&se(this._data,this),t._stacked&&Di(t)}_dataCheck(){const t=this,e=t.getDataset(),i=e.data||(e.data=[]),n=t._data;if(j(i))t._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,a,o;for(n=0,a=e.length;n<a;++n)o=e[n],i[n]={x:o,y:t[o]};return i}(i);else if(n!==i){if(n){se(n,t);const e=t._cachedMeta;Di(e),e._parsed=[]}i&&Object.isExtensible(i)&&oe(i,t),t._syncList=[],t._data=i}}addElements(){const t=this,e=t._cachedMeta;t._dataCheck(),t.datasetElementType&&(e.dataset=new t.datasetElementType)}buildOrUpdateElements(t){const e=this,i=e._cachedMeta,n=e.getDataset();let a=!1;e._dataCheck();const o=i._stacked;i._stacked=wi(i.vScale,i),i.stack!==n.stack&&(a=!0,Di(i),i.stack=n.stack),e._resyncElements(t),(a||o!==i._stacked)&&Si(e,i._parsed)}configure(){const t=this,e=t.chart.config,i=e.datasetScopeKeys(t._type),n=e.getOptionScopes(t.getDataset(),i,!0);t.options=e.createResolver(n,t.getContext()),t._parsing=t.options.parsing}parse(t,e){const i=this,{_cachedMeta:n,_data:a}=i,{iScale:o,_stacked:s}=n,r=o.axis;let c,l,d,f=0===t&&e===a.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===i._parsing)n._parsed=a,n._sorted=!0,d=a;else{d=N(a[t])?i.parseArrayData(n,a,t,e):j(a[t])?i.parseObjectData(n,a,t,e):i.parsePrimitiveData(n,a,t,e);const o=()=>null===l[r]||h&&l[r]<h[r];for(c=0;c<e;++c)n._parsed[c+t]=l=d[c],f&&(o()&&(f=!1),h=l);n._sorted=f}s&&Si(i,d)}
2parsePrimitiveData(t,e,i,n){const{iScale:a,vScale:o}=t,s=a.axis,r=o.axis,c=a.getLabels(),l=a===o,d=new Array(n);let f,h,u;for(f=0,h=n;f<h;++f)u=f+i,d[f]={[s]:l||a.parse(c[u],u),[r]:o.parse(e[u],u)};return d}parseArrayData(t,e,i,n){const{xScale:a,yScale:o}=t,s=new Array(n);let r,c,l,d;for(r=0,c=n;r<c;++r)l=r+i,d=e[l],s[r]={x:a.parse(d[0],l),y:o.parse(d[1],l)};return s}parseObjectData(t,e,i,n){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:r="y"}=this._parsing,c=new Array(n);let l,d,f,h;for(l=0,d=n;l<d;++l)f=l+i,h=e[f],c[l]={x:a.parse(ot(h,s),f),y:o.parse(ot(h,r),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,a=this._cachedMeta,o=e[t.axis];return vi({keys:yi(n,!0),values:e._stacks[t.axis]},o,a.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const a=i[e.axis];let o=null===a?NaN:a;const s=n&&i._stacks[e.axis];n&&s&&(n.values=s,t.min=Math.min(t.min,o),t.max=Math.max(t.max,o),o=vi(n,a,this._cachedMeta.index,{all:!0})),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this,n=i._cachedMeta,a=n._parsed,o=n._sorted&&t===n.iScale,s=a.length,r=i._getOtherScale(t),c=e&&n._stacked&&{keys:yi(i.chart,!0),values:null},l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=function(t){const{min:e,max:i,minDefined:n,maxDefined:a}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:a?i:Number.POSITIVE_INFINITY}}(r);let h,u,g,b;function p(){return g=a[h],u=g[t.axis],b=g[r.axis],!$(u)||d>b||f<b}for(h=0;h<s&&(p()||(i.updateRangeFromParsed(l,t,g,c),!o));++h);if(o)for(h=s-1;h>=0;--h)if(!p()){i.updateRangeFromParsed(l,t,g,c);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,a,o;for(n=0,a=e.length;n<a;++n)o=e[n][t.axis],$(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,a=this.getParsed(t);return{label:i?""+i.getLabelForValue(a[i.axis]):"",value:n?""+n.getLabelForValue(a[n.axis]):""}}_update(t){const e=this,i=e._cachedMeta;e.configure(),e._cachedDataOpts={},e.update(t||"default"),i._clip=function(t){let e,i,n,a;return j(t)?(e=t.top,i=t.right,n=t.bottom,a=t.left):e=i=n=a=t,{top:e,right:i,bottom:n,left:a}}(q(e.options.clip,function(t,e,i){if(!1===i)return!1;const n=_i(t,i),a=_i(e,i);return{top:a.end,right:n.end,bottom:a.start,left:n.start}}(i.xScale,i.yScale,e.getMaxOverflow())))}update(t){}draw(){const t=this,e=t._ctx,i=t.chart,n=t._cachedMeta,a=n.data||[],o=i.chartArea,s=[],r=t._drawStart||0,c=t._drawCount||a.length-r;let l;for(n.dataset&&n.dataset.draw(e,o,r,c),l=r;l<r+c;++l){const t=a[l];t.active?s.push(t):t.draw(e,o)}for(l=0;l<s.length;++l)s[l].draw(e,o)}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,a=n.getDataset();let o;if(t>=0&&t<n._cachedMeta.data.length){const e=n._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,i){return Object.assign(Object.create(t),{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(n.getContext(),t,e)),o.parsed=n.getParsed(t),o.raw=a.data[t],o.index=o.dataIndex=t}else o=n.$context||(n.$context=function(t,e){return Object.assign(Object.create(t),{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(n.chart.getContext(),n.index)),o.dataset=a,o.index=o.datasetIndex=n.index;return o.active=!!e,o.mode=i,o}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=this,a="active"===e,o=n._cachedDataOpts,s=t+"-"+e,r=o[s],c=n.enableOptionSharing&&rt(i);if(r)return Oi(r,c);const l=n.chart.config,d=l.datasetElementScopeKeys(n._type,t),f=a?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(n.getDataset(),d),u=Object.keys(gt.elements[t]),g=l.resolveNamedOptions(h,u,(()=>n.getContext(i,a)),f);return g.$shared&&(g.$shared=c,o[s]=Object.freeze(Oi(g,c))),g}_resolveAnimations(t,e,i){const n=this,a=n.chart,o=n._cachedDataOpts,s=`animation-${e}
2`,r=o[s];if(r)return r;let c;if(!1!==a.options.animation){const a=n.chart.config,o=a.datasetAnimationScopeKeys(n._type,e),s=a.getOptionScopes(n.getDataset(),o);c=a.createResolver(s,n.getContext(t,i,e))}const l=new xi(a,c&&c.animations);return c&&c._cacheable&&(o[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ci(t)||this.chart._animationsDisabled}updateElement(t,e,i,n){Ci(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Ci(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const a=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(a)||a})}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,i=e._data,n=e._cachedMeta.data;for(const[t,i,n]of e._syncList)e[t](i,n);e._syncList=[];const a=n.length,o=i.length,s=Math.min(o,a);s&&e.parse(0,s),o>a?e._insertElements(a,o-a,t):o<a&&e._removeElements(o,a-o)}_insertElements(t,e,i=!0){const n=this,a=n._cachedMeta,o=a.data,s=t+e;let r;const c=t=>{for(t.length+=e,r=t.length-1;r>=s;r--)t[r]=t[r-e]};for(c(o),r=t;r<s;++r)o[r]=new n.dataElementType;n._parsing&&c(a._parsed),n.parse(t,e),i&&n.updateElements(o,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&&Di(i,n)}i.data.splice(t,e)}_onDataPush(){const t=arguments.length;this._syncList.push(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._syncList.push(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._syncList.push(["_removeElements",0,1])}_onDataSplice(t,e){this._syncList.push(["_removeElements",t,e]),this._syncList.push(["_insertElements",t,arguments.length-2])}_onDataUnshift(){this._syncList.push(["_insertElements",0,arguments.length])}}Ti.defaults={},Ti.prototype.datasetElementType=null,Ti.prototype.dataElementType=null;class Ai{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 Dt(this.x)&&Dt(this.y)}getProps(t,e){const i=this,n=this.$animations;if(!e||!n)return i;const a={};return t.forEach((t=>{a[t]=n[t]&&n[t].active()?n[t]._to:i[t]})),a}}Ai.defaults={},Ai.defaultRoutes=void 0;const Ri=new Map;function Li(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=Ri.get(i);return n||(n=new Intl.NumberFormat(t,e),Ri.set(i,n)),n}(e,i).format(t)}const Ei={values:t=>N(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let a,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)&&(a="scientific"),o=function(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}(t,i)}const s=Mt(Math.abs(o)),r=Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:a,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(c,this.options.ticks.format),Li(t,n,c)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(Mt(t)));return 1===n||2===n||5===n?Ei.numeric.call(this,t,e,i):""}};var Ii={formatters:Ei};function Fi(t,e,i,n,a){const o=q(n,0),s=Math.min(q(a,t.length),t.length);let r,c,l,d=0;for(i=Math.ceil(i),a&&(r=a-n,i=r/Math.floor(r/i)),l=o;l<0;)d++,l=Math.round(o+d*i);for(c=Math.max(o,0);c<s;c++)c===l&&(e.push(t[c]),d++,l=Math.round(o+d*i))}gt.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:Ii.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),gt.route("scale.ticks","color","","color"),gt.route("scale.grid","color","","borderColor"),gt.route("scale.grid","borderColor","","borderColor"),gt.route("scale.title","color","","color"),gt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),gt.describe("scales",{_fallback:"scale"});
2const zi=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function Bi(t,e){const i=[],n=t.length/e,a=t.length;let o=0;for(;o<a;o+=n)i.push(t[Math.floor(o)]);return i}function Vi(t,e,i){const n=t.ticks.length,a=Math.min(e,n-1),o=t._startPixel,s=t._endPixel,r=1e-6;let c,l=t.getPixelForTick(a);if(!(i&&(c=1===n?Math.max(l-o,s-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(a-1))/2,l+=a<e?c:-c,l<o-r||l>s+r)))return l}function Wi(t){return t.drawTicks?t.tickLength:0}function Hi(t,e){if(!t.display)return 0;const i=Ee(t.font,e),n=Le(t.padding);return(N(t.text)?t.text.length:1)*i.lineHeight+n.height}function Ni(t,e,i){let a=n(t);return(i&&"right"!==e||!i&&"right"===e)&&(a=(t=>"left"===t?"right":"right"===t?"left":t)(a)),a}class ji extends Ai{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){const e=this;e.options=t.setContext(e.getContext()),e.axis=t.axis,e._userMin=e.parse(t.min),e._userMax=e.parse(t.max),e._suggestedMin=e.parse(t.suggestedMin),e._suggestedMax=e.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=Y(t,Number.POSITIVE_INFINITY),e=Y(e,Number.NEGATIVE_INFINITY),i=Y(i,Number.POSITIVE_INFINITY),n=Y(n,Number.NEGATIVE_INFINITY),{min:Y(t,i),max:Y(e,n),minDefined:$(t),maxDefined:$(e)}}getMinMax(t){const e=this;let i,{min:n,max:a,minDefined:o,maxDefined:s}=e.getUserBounds();if(o&&s)return{min:n,max:a};const r=e.getMatchingVisibleMetas();for(let c=0,l=r.length;c<l;++c)i=r[c].controller.getMinMax(e,t),o||(n=Math.min(n,i.min)),s||(a=Math.max(a,i.max));return{min:Y(n,Y(a,n)),max:Y(a,Y(n,a))}}getPadding(){const t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.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(){K(this.options.beforeUpdate,[this])}update(t,e,i){const n=this,a=n.options.ticks,o=a.sampleSize;n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),n.ticks=null,n._labelSizes=null,n._gridLineItems=null,n._labelItems=null,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n._maxLength=n.isHorizontal()?n.width+i.left+i.right:n.height+i.top+i.bottom,n._dataLimitsCached||(n.beforeDataLimits(),n.determineDataLimits(),n.afterDataLimits(),n._range=Fe(n,n.options.grace),n._dataLimitsCached=!0),n.beforeBuildTicks(),n.ticks=n.buildTicks()||[],n.afterBuildTicks();const s=o<n.ticks.length;n._convertTicksToLabels(s?Bi(n.ticks,o):n.ticks),n.configure(),n.beforeCalculateLabelRotation(),n.calculateLabelRotation(),n.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(n.ticks=function(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),a=t._maxLength/i;return Math.floor(Math.min(n,a))}(t),a=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],o=a.length,s=a[0],r=a[o-1],c=[];if(o>n)return function(t,e,i,n){let a,o=0,s=i[0];for(n=Math.ceil(n),a=0;a<t.length;a++)a===s&&(e.push(t[a]),o++,s=i[o*n])}(e,c,a,o/n),c;
2const l=function(t,e,i){const n=function(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}(t),a=e.length/i;if(!n)return Math.max(a,1);const o=Pt(n);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>a)return e}return Math.max(a,1)}(a,e,n);if(o>0){let t,i;const n=o>1?Math.round((r-s)/(o-1)):null;for(Fi(e,c,l,H(n)?0:s-n,s),t=0,i=o-1;t<i;t++)Fi(e,c,l,a[t],a[t+1]);return Fi(e,c,l,r,H(n)?e.length:r+n),c}return Fi(e,c,l),c}(n,n.ticks),n._labelSizes=null),s&&n._convertTicksToLabels(n.ticks),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate()}configure(){const t=this;let e,i,n=t.options.reverse;t.isHorizontal()?(e=t.left,i=t.right):(e=t.top,i=t.bottom,n=!n),t._startPixel=e,t._endPixel=i,t._reversePixels=n,t._length=i-e,t._alignToPixels=t.options.alignToPixels}afterUpdate(){K(this.options.afterUpdate,[this])}beforeSetDimensions(){K(this.options.beforeSetDimensions,[this])}setDimensions(){const t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0}afterSetDimensions(){K(this.options.afterSetDimensions,[this])}_callHooks(t){const e=this;e.chart.notifyPlugins(t,e.getContext()),K(e.options[t],[e])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){K(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this,i=e.options.ticks;let n,a,o;for(n=0,a=t.length;n<a;n++)o=t[n],o.label=K(i.callback,[o.value,n,t],e);for(n=0;n<a;n++)H(t[n].label)&&(t.splice(n,1),a--,n--)}afterTickToLabelConversion(){K(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){K(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this,e=t.options,i=e.ticks,n=t.ticks.length,a=i.minRotation||0,o=i.maxRotation;let s,r,c,l=a;if(!t._isVisible()||!i.display||a>=o||n<=1||!t.isHorizontal())return void(t.labelRotation=a);const d=t._getLabelSizes(),f=d.widest.width,h=d.highest.height,u=Vt(t.chart.width-f,0,t.maxWidth);s=e.offset?t.maxWidth/n:u/(n-1),f+6>s&&(s=u/(n-(e.offset?.5:1)),r=t.maxHeight-Wi(e.grid)-i.padding-Hi(e.title,t.chart.options.font),c=Math.sqrt(f*f+h*h),l=Rt(Math.min(Math.asin(Math.min((d.highest.height+6)/s,1)),Math.asin(Math.min(r/c,1))-Math.asin(h/c))),l=Math.max(a,Math.min(o,l))),t.labelRotation=l}afterCalculateLabelRotation(){K(this.options.afterCalculateLabelRotation,[this])}beforeFit(){K(this.options.beforeFit,[this])}fit(){const t=this,e={width:0,height:0},{chart:i,options:{ticks:n,title:a,grid:o}}=t,s=t._isVisible(),r=t.isHorizontal();if(s){const s=Hi(a,i.options.font);if(r?(e.width=t.maxWidth,e.height=Wi(o)+s):(e.height=t.maxHeight,e.width=Wi(o)+s),n.display&&t.ticks.length){const{first:i,last:a,widest:o,highest:s}=t._getLabelSizes(),c=2*n.padding,l=At(t.labelRotation),d=Math.cos(l),f=Math.sin(l);if(r){const i=n.mirror?0:f*o.width+d*s.height;e.height=Math.min(t.maxHeight,e.height+i+c)}else{const i=n.mirror?0:d*o.width+f*s.height;e.width=Math.min(t.maxWidth,e.width+i+c)}t._calculatePadding(i,a,f,d)}}t._handleMargins(),r?(t.width=t._length=i.width-t._margins.left-t._margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=i.height-t._margins.top-t._margins.bottom)}_calculatePadding(t,e,i,n){const a=this,{ticks:{align:o,padding:s},position:r}=a.options,c=0!==a.labelRotation,l="top"!==r&&"x"===a.axis;if(a.isHorizontal()){const r=a.getPixelForTick(0)-a.left,d=a.right-a.getPixelForTick(a.ticks.length-1);let f=0,h=0;c?l?(f=n*t.width,h=i*e.height):(f=i*t.height,h=n*e.width):"start"===o?h=e.width:"end"===o?f=t.width:(f=t.width/2,h=e.width/2),a.paddingLeft=Math.max((f-r+s)*a.width/(a.width-r),0),a.paddingRight=Math.max((h-d+s)*a.width/(a.width-d),0)}else{let i=e.height/2,n=t.height/2;"start"===o?(i=0,n=t.height):"end"===o&&(i=e.height,n=0),a.paddingTop=i+s,a.paddingBottom=n+s}}_handleMargins(){const t=this;t._margins&&(t._margins.left=Math.max(t.paddingLeft,t._margins.left),t._margins.top=Math.max(t.paddingTop,t._margins.top),t._margins.right=Math.max(t.paddingRight,t._margins.right),t._margins.bottom=Math.max(t.paddingBottom,t._margins.bottom))}afterFit(){K(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){const e=this;e.beforeTickToLabelConversion(),e.generateTickLabels(t),e.afterTickToLabelConversion()}_getLabelSizes(){const t=this;let e=t._labelSizes;if(!e){const i=t.options.ticks.sampleSize;let n=t.ticks;i<n.length&&(n=Bi(n,i)),t._labelSizes=e=t._computeLabelSizes(n,n.length)}return e}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:n}=this,a=[],o=[];let s,r,c,l,d,f,h,u,g,b,p,m=0,x=0;for(s=0;s<e;++s){if(l=t[s].label,d=this._resolveTickFontOptions(s),i.font=f=d.string,h=n[f]=n[f]||{data:{},gc:[]},u=d.lineHeight,g=b=0,H(l)||N(l)){if(N(l))for(r=0,c=l.length;r<c;++r)p=l[r],H(p)||N(p)||(g=Nt(i,h.data,h.gc,g,p),b+=u)}else g=Nt(i,h.data,h.gc,g,l),b=u;a.push(g),o.push(b),m=Math.max(g,m),x=Math.max(b,x)}!function(t,e){G(t,(t=>{const i=t.gc,n=i.length/2;let a;if(n>e){for(a=0;a<n;++a)delete t.data[i[a]];i.splice(0,n)}}))}(n,e);const _=a.indexOf(m),y=o.indexOf(x),v=t=>({width:a[t]||0,height:o[t]||0});return{first:v(0),last:v(e-1),widest:v(_),highest:v(y),widths:a,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){const e=this;e._reversePixels&&(t=1-t);const i=e._startPixel+t*e._length;return Wt(e._alignToPixels?$t(e.chart,i,0):i)}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,i=e.ticks||[];if(t>=0&&t<i.length){const n=i[t];
2return n.$context||(n.$context=function(t,e,i){return Object.assign(Object.create(t),{tick:i,index:e,type:"tick"})}(e.getContext(),t,n))}return e.$context||(e.$context=(n=e.chart.getContext(),a=e,Object.assign(Object.create(n),{scale:a,type:"scale"})));var n,a}_tickSize(){const t=this,e=t.options.ticks,i=At(t.labelRotation),n=Math.abs(Math.cos(i)),a=Math.abs(Math.sin(i)),o=t._getLabelSizes(),s=e.autoSkipPadding||0,r=o?o.widest.width+s:0,c=o?o.highest.height+s:0;return t.isHorizontal()?c*n>r*a?r/n:c/a:c*a<r*n?c/n:r/a}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this,i=e.axis,n=e.chart,a=e.options,{grid:o,position:s}=a,r=o.offset,c=e.isHorizontal(),l=e.ticks.length+(r?1:0),d=Wi(o),f=[],h=o.setContext(e.getContext()),u=h.drawBorder?h.borderWidth:0,g=u/2,b=function(t){return $t(n,t,u)};let p,m,x,_,y,v,w,M,k,S,P,D;if("top"===s)p=b(e.bottom),v=e.bottom-d,M=p-g,S=b(t.top)+g,D=t.bottom;else if("bottom"===s)p=b(e.top),S=t.top,D=b(t.bottom)-g,v=p+g,M=e.top+d;else if("left"===s)p=b(e.right),y=e.right-d,w=p-g,k=b(t.left)+g,P=t.right;else if("right"===s)p=b(e.left),k=t.left,P=b(t.right)-g,y=p+g,w=e.left+d;else if("x"===i){if("center"===s)p=b((t.top+t.bottom)/2+.5);else if(j(s)){const t=Object.keys(s)[0],i=s[t];p=b(e.chart.scales[t].getPixelForValue(i))}S=t.top,D=t.bottom,v=p+g,M=v+d}else if("y"===i){if("center"===s)p=b((t.left+t.right)/2);else if(j(s)){const t=Object.keys(s)[0],i=s[t];p=b(e.chart.scales[t].getPixelForValue(i))}y=p-g,w=y-d,k=t.left,P=t.right}for(m=0;m<l;++m){const t=o.setContext(e.getContext(m)),i=t.lineWidth,a=t.color,s=o.borderDash||[],l=t.borderDashOffset,d=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],g=t.tickBorderDashOffset;x=Vi(e,m,r),void 0!==x&&(_=$t(n,x,i),c?y=w=k=P=_:v=M=S=D=_,f.push({tx1:y,ty1:v,tx2:w,ty2:M,x1:k,y1:S,x2:P,y2:D,width:i,color:a,borderDash:s,borderDashOffset:l,tickWidth:d,tickColor:h,tickBorderDash:u,tickBorderDashOffset:g}))}return e._ticksLength=l,e._borderValue=p,f}_computeLabelItems(t){const e=this,i=e.axis,n=e.options,{position:a,ticks:o}=n,s=e.isHorizontal(),r=e.ticks,{align:c,crossAlign:l,padding:d,mirror:f}=o,h=Wi(n.grid),u=h+d,g=f?-d:u,b=-At(e.labelRotation),p=[];let m,x,_,y,v,w,M,k,S,P,D,C,O="middle";if("top"===a)w=e.bottom-g,M=e._getXAxisLabelAlignment();else if("bottom"===a)w=e.top+g,M=e._getXAxisLabelAlignment();else if("left"===a){const t=e._getYAxisLabelAlignment(h);M=t.textAlign,v=t.x}else if("right"===a){const t=e._getYAxisLabelAlignment(h);M=t.textAlign,v=t.x}else if("x"===i){if("center"===a)w=(t.top+t.bottom)/2+u;else if(j(a)){const t=Object.keys(a)[0],i=a[t];w=e.chart.scales[t].getPixelForValue(i)+u}M=e._getXAxisLabelAlignment()}else if("y"===i){if("center"===a)v=(t.left+t.right)/2-u;else if(j(a)){const t=Object.keys(a)[0],i=a[t];v=e.chart.scales[t].getPixelForValue(i)}M=e._getYAxisLabelAlignment(h).textAlign}"y"===i&&("start"===c?O="top":"end"===c&&(O="bottom"));const T=e._getLabelSizes();for(m=0,x=r.length;m<x;++m){_=r[m],y=_.label;const t=o.setContext(e.getContext(m));k=e.getPixelForTick(m)+o.labelOffset,S=e._resolveTickFontOptions(m),P=S.lineHeight,D=N(y)?y.length:1;const i=D/2,n=t.color,c=t.textStrokeColor,d=t.textStrokeWidth;let h;if(s?(v=k,C="top"===a?"near"===l||0!==b?-D*P+P/2:"center"===l?-T.highest.height/2-i*P+P:-T.highest.height+P/2:"near"===l||0!==b?P/2:"center"===l?T.highest.height/2-i*P:T.highest.height-D*P,f&&(C*=-1)):(w=k,C=(1-D)*P/2),t.showLabelBackdrop){const e=Le(t.backdropPadding),i=T.heights[m],n=T.widths[m];let a=w+C-e.top,o=v-e.left;switch(O){case"middle":a-=i/2;break;case"bottom":a-=i}switch(M){case"center":o-=n/2;break;case"right":o-=n}h={left:o,top:a,width:n+e.width,height:i+e.height,color:t.backdropColor}}p.push({rotation:b,label:y,font:S,color:n,strokeColor:c,strokeWidth:d,textOffset:C,textAlign:M,textBaseline:O,translation:[v,w],backdrop:h})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-At(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align&&(i="right"),i}_getYAxisLabelAlignment(t){const e=this,{position:i,ticks:{crossAlign:n,mirror:a,padding:o}}=e.options,s=t+o,r=e._getLabelSizes().widest.width;let c,l;return"left"===i?a?(c="left",l=e.right+o):(l=e.right-s,"near"===n?c="right":"center"===n?(c="center",l-=r/2):(c="left",l=e.left)):"right"===i?a?(c="right",l=e.left+o):(l=e.left+s,"near"===n?c="left":"center"===n?(c="center",l+=r/2):(c="right",l=e.right)):c="right",{textAlign:c,x:l}}_computeLabelArea(){const t=this;if(t.options.ticks.mirror)return;const e=t.chart,i=t.options.position;return"left"===i||"right"===i?{top:0,left:t.left,bottom:e.height,right:t.right}
2:"top"===i||"bottom"===i?{top:t.top,left:0,bottom:t.bottom,right:e.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:n,width:a,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,a,o),t.restore())}getLineWidthForValue(t){const e=this,i=e.options.grid;if(!e._isVisible()||!i.display)return 0;const n=e.ticks.findIndex((e=>e.value===t));return n>=0?i.setContext(e.getContext(n)).lineWidth:0}drawGrid(t){const e=this,i=e.options.grid,n=e.ctx,a=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));let o,s;const r=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(i.display)for(o=0,s=a.length;o<s;++o){const t=a[o];i.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),i.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 t=this,{chart:e,ctx:i,options:{grid:n}}=t,a=n.setContext(t.getContext()),o=n.drawBorder?a.borderWidth:0;if(!o)return;const s=n.setContext(t.getContext(0)).lineWidth,r=t._borderValue;let c,l,d,f;t.isHorizontal()?(c=$t(e,t.left,o)-o/2,l=$t(e,t.right,s)+s/2,d=f=r):(d=$t(e,t.top,o)-o/2,f=$t(e,t.bottom,s)+s/2,c=l=r),i.save(),i.lineWidth=a.borderWidth,i.strokeStyle=a.borderColor,i.beginPath(),i.moveTo(c,d),i.lineTo(l,f),i.stroke(),i.restore()}drawLabels(t){const e=this;if(!e.options.ticks.display)return;const i=e.ctx,n=e._computeLabelArea();n&&Xt(i,n);const a=e._labelItems||(e._labelItems=e._computeLabelItems(t));let o,s;for(o=0,s=a.length;o<s;++o){const t=a[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)),Qt(i,n,0,t.textOffset,e,t)}n&&Kt(i)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const o=Ee(i.font),s=Le(i.padding),r=i.align;let c=o.lineHeight/2;"bottom"===e?(c+=s.bottom,N(i.text)&&(c+=o.lineHeight*(i.text.length-1))):c+=s.top;const{titleX:l,titleY:d,maxWidth:f,rotation:h}=function(t,e,i,n){const{top:o,left:s,bottom:r,right:c}=t;let l,d,f,h=0;return t.isHorizontal()?(d=a(n,s,c),f=zi(t,i,e),l=c-s):(d=zi(t,i,e),f=a(n,r,o),h="left"===i?-yt:yt),{titleX:d,titleY:f,maxWidth:l,rotation:h}}(this,c,e,r);Qt(t,i.text,0,0,o,{color:i.color,maxWidth:f,rotation:h,textAlign:Ni(r,e,n),textBaseline:"middle",translation:[l,d]})}draw(t){const e=this;e._isVisible()&&(e.drawBackground(),e.drawGrid(t),e.drawBorder(),e.drawTitle(),e.drawLabels(t))}_layers(){const t=this,e=t.options,i=e.ticks&&e.ticks.z||0,n=e.grid&&e.grid.z||0;return t._isVisible()&&t.draw===ji.prototype.draw?[{z:n,draw(e){t.drawBackground(),t.drawGrid(e),t.drawTitle()}},{z:n+1,draw(){t.drawBorder()}},{z:i,draw(e){t.drawLabels(e)}}]:[{z:i,draw(e){t.draw(e)}}]}getMatchingVisibleMetas(t){const e=this,i=e.chart.getSortedVisibleDatasetMetas(),n=e.axis+"AxisID",a=[];let o,s;for(o=0,s=i.length;o<s;++o){const s=i[o];s[n]!==e.id||t&&s.type!==t||a.push(s)}return a}_resolveTickFontOptions(t){return Ee(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this,e=t._resolveTickFontOptions(0).lineHeight;return(t.isHorizontal()?t.width:t.height)/e}}function $i(t,e=[""],i=t,n,a=(()=>t[0])){rt(n)||(n=en("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:a,override:a=>$i([a,...t],e,i,n)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Ki(i,n,(()=>function(t,e,i,n){let a;for(const o of e)if(a=en(Ui(o,t),i),rt(a))return Xi(t,a)?Ji(i,n,t,a):a}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>nn(t).includes(e),ownKeys:t=>nn(t),set:(t,e,i)=>((t._storage||(t._storage=a()))[e]=i,delete t[e],delete t._keys,!0)})}function Yi(t,e,i,n){const a={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:qi(t,n),setContext:e=>Yi(t,e,i,n),override:a=>Yi(t.override(a),e,i,n)};return new Proxy(a,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ki(t,e,(()=>
2function(t,e,i){const{_proxy:n,_context:a,_subProxy:o,_descriptors:s}=t;let r=n[e];return ct(r)&&s.isScriptable(e)&&(r=function(t,e,i,n){const{_proxy:a,_context:o,_subProxy:s,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+[...r].join("->")+"->"+t);return r.add(t),e=e(o,s||n),r.delete(t),j(e)&&(e=Ji(a._scopes,a,t,e)),e}(e,r,t,i)),N(r)&&r.length&&(r=function(t,e,i,n){const{_proxy:a,_context:o,_subProxy:s,_descriptors:r}=i;if(rt(o.index)&&n(t))e=e[o.index%e.length];else if(j(e[0])){const i=e,n=a._scopes.filter((t=>t!==i));e=[];for(const c of i){const i=Ji(n,a,t,c);e.push(Yi(i,o,s&&s[t],r))}}return e}(e,r,t,s.isIndexable)),Xi(e,r)&&(r=Yi(r,a,o&&o[e],s)),r}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function qi(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:a=e.allKeys}=t;return{allKeys:a,scriptable:i,indexable:n,isScriptable:ct(i)?i:()=>i,isIndexable:ct(n)?n:()=>n}}const Ui=(t,e)=>t?t+st(e):e,Xi=(t,e)=>j(e)&&"adapters"!==t;function Ki(t,e,i){let n=t[e];return rt(n)||(n=i(),rt(n)&&(t[e]=n)),n}function Gi(t,e,i){return ct(t)?t(e,i):t}const Zi=(t,e)=>!0===t?e:"string"==typeof t?ot(e,t):void 0;function Qi(t,e,i,n){for(const a of e){const e=Zi(i,a);if(e){t.add(e);const a=Gi(e._fallback,i,e);if(rt(a)&&a!==i&&a!==n)return a}else if(!1===e&&rt(n)&&i!==n)return null}return!1}function Ji(t,e,i,n){const a=e._rootScopes,o=Gi(e._fallback,i,n),s=[...t,...a],r=new Set;r.add(n);let c=tn(r,s,i,o||i);return null!==c&&(!rt(o)||o===i||(c=tn(r,s,o,c),null!==c))&&$i([...r],[""],a,o,(()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const a=n[e];return N(a)&&j(i)?i:a}(e,i,n)))}function tn(t,e,i,n){for(;i;)i=Qi(t,e,i,n);return i}function en(t,e){for(const i of e){if(!i)continue;const e=i[t];if(rt(e))return e}}function nn(t){let e=t._keys;return e||(e=t._keys=function(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[...e]}(t._scopes)),e}const an=Number.EPSILON||1e-14,on=(t,e)=>e<t.length&&!t[e].skip&&t[e],sn=t=>"x"===t?"y":"x";function rn(t,e,i,n){const a=t.skip?e:t,o=e,s=i.skip?e:i,r=It(o,a),c=It(s,o);let l=r/(r+c),d=c/(r+c);l=isNaN(l)?0:l,d=isNaN(d)?0:d;const f=n*l,h=n*d;return{previous:{x:o.x-f*(s.x-a.x),y:o.y-f*(s.y-a.y)},next:{x:o.x+h*(s.x-a.x),y:o.y+h*(s.y-a.y)}}}function cn(t,e="x"){const i=sn(e),n=t.length,a=Array(n).fill(0),o=Array(n);let s,r,c,l=on(t,0);for(s=0;s<n;++s)if(r=c,c=l,l=on(t,s+1),c){if(l){const t=l[e]-c[e];a[s]=0!==t?(l[i]-c[i])/t:0}o[s]=r?l?kt(a[s-1])!==kt(a[s])?0:(a[s-1]+a[s])/2:a[s-1]:a[s]}!function(t,e,i){const n=t.length;let a,o,s,r,c,l=on(t,0);for(let d=0;d<n-1;++d)c=l,l=on(t,d+1),c&&l&&(Ct(e[d],0,an)?i[d]=i[d+1]=0:(a=i[d]/e[d],o=i[d+1]/e[d],r=Math.pow(a,2)+Math.pow(o,2),r<=9||(s=3/Math.sqrt(r),i[d]=a*s*e[d],i[d+1]=o*s*e[d])))}(t,a,o),function(t,e,i="x"){const n=sn(i),a=t.length;let o,s,r,c=on(t,0);for(let l=0;l<a;++l){if(s=r,r=c,c=on(t,l+1),!r)continue;const a=r[i],d=r[n];s&&(o=(a-s[i])/3,r[`cp1${i}`]=a-o,r[`cp1${n}`]=d-o*e[l]),c&&(o=(c[i]-a)/3,r[`cp2${i}`]=a+o,r[`cp2${n}`]=d+o*e[l])}}(t,o,e)}function ln(t,e,i){return Math.max(Math.min(t,i),e)}function dn(t,e,i,n,a){let o,s,r,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)cn(t,a);else{let i=n?t[t.length-1]:t[0];for(o=0,s=t.length;o<s;++o)r=t[o],c=rn(i,r,t[Math.min(o+1,s-(n?0:1))%s],e.tension),r.cp1x=c.previous.x,r.cp1y=c.previous.y,r.cp2x=c.next.x,r.cp2y=c.next.y,i=r}e.capBezierPoints&&function(t,e){let i,n,a,o,s,r=Ut(t[0],e);for(i=0,n=t.length;i<n;++i)s=o,o=r,r=i<n-1&&Ut(t[i+1],e),o&&(a=t[i],s&&(a.cp1x=ln(a.cp1x,e.left,e.right),a.cp1y=ln(a.cp1y,e.top,e.bottom)),r&&(a.cp2x=ln(a.cp2x,e.left,e.right),a.cp2y=ln(a.cp2y,e.top,e.bottom)))}(t,i)}function fn(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function hn(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 un(t,e,i,n){const a={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},s=fn(t,a,i),r=fn(a,o,i),c=fn(o,e,i),l=fn(s,r,i),d=fn(r,c,i);return fn(l,d,i)}function gn(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function bn(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 pn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function mn(t){return"angle"===t?{between:Bt,compare:Ft,normalize:zt}:{between:(t,e,i)=>t>=Math.min(e,i)&&t<=Math.max(i,e),compare:(t,e)=>t-e,normalize:t=>t}}function xn({start:t,end:e,count:i,loop:n,style:a}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:a}}function _n(t,e,i){if(!i)return[t];const{property:n,start:a,end:o}=i,s=e.length,{compare:r,between:c,normalize:l}=mn(n),{start:d,end:f,loop:h,style:u}
2=function(t,e,i){const{property:n,start:a,end:o}=i,{between:s,normalize:r}=mn(n),c=e.length;let l,d,{start:f,end:h,loop:u}=t;if(u){for(f+=c,h+=c,l=0,d=c;l<d&&s(r(e[f%c][n]),a,o);++l)f--,h--;f%=c,h%=c}return h<f&&(h+=c),{start:f,end:h,loop:u,style:t.style}}(t,e,i),g=[];let b,p,m,x=!1,_=null;for(let t=d,i=d;t<=f;++t)p=e[t%s],p.skip||(b=l(p[n]),b!==m&&(x=c(b,a,o),null===_&&(x||c(a,m,b)&&0!==r(a,m))&&(_=0===r(b,a)?t:i),null!==_&&(!x||0===r(o,b)||c(o,m,b))&&(g.push(xn({start:_,end:t,loop:h,count:s,style:u})),_=null),i=t,m=b));return null!==_&&g.push(xn({start:_,end:f,loop:h,count:s,style:u})),g}function yn(t,e){const i=[],n=t.segments;for(let a=0;a<n.length;a++){const o=_n(n[a],t.points,e);o.length&&i.push(...o)}return i}function vn(t,e){const i=t.points,n=t.options.spanGaps,a=i.length;if(!a)return[];const o=!!t._loop,{start:s,end:r}=function(t,e,i,n){let a=0,o=e-1;if(i&&!n)for(;a<e&&!t[a].skip;)a++;for(;a<e&&t[a].skip;)a++;for(a%=e,i&&(o+=a);o>a&&t[o%e].skip;)o--;return o%=e,{start:a,end:o}}(i,a,o,n);return function(t,e,i){return i&&i.setContext&&e?function(t,e,i){const n=e.length,a=[];let o=t[0].start,s=o;for(const r of t){let t,c,l=e[o%n];for(s=o+1;s<=r.end;s++){const d=e[s%n];c=wn(i.setContext({type:"segment",p0:l,p1:d})),Mn(c,t)&&(a.push({start:o,end:s-1,loop:r.loop,style:t}),t=c,o=s-1),l=d,t=c}o<s-1&&(a.push({start:o,end:s-1,loop:r.loop,style:c}),o=s-1)}return a}(t,e,i):t}(!0===n?[{start:s,end:r,loop:o}]:function(t,e,i,n){const a=t.length,o=[];let s,r=e,c=t[e];for(s=e+1;s<=i;++s){const i=t[s%a];i.skip||i.stop?c.skip||(n=!1,o.push({start:e%a,end:(s-1)%a,loop:n}),e=r=i.stop?s:null):(r=s,c.skip&&(e=s)),c=i}return null!==r&&o.push({start:e%a,end:r%a,loop:n}),o}(i,s,r<s?r+a:r,!!t._fullLoop&&0===s&&r===a-1),i,e)}function wn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Mn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var kn=Object.freeze({__proto__:null,easingEffects:ui,color:z,getHoverColor:B,noop:V,uid:W,isNullOrUndef:H,isArray:N,isObject:j,isFinite:$,finiteOrDefault:Y,valueOrDefault:q,toPercentage:U,toDimension:X,callback:K,each:G,_elementsEqual:Z,clone:Q,_merger:tt,merge:et,mergeIf:it,_mergerIf:nt,_deprecated:function(t,e,i,n){void 0!==e&&console.warn(t+': "'+i+'" is deprecated. Please use "'+n+'" instead')},resolveObjectKey:ot,_capitalize:st,defined:rt,isFunction:ct,setsEqual:lt,toFontString:Ht,_measureText:Nt,_longestText:jt,_alignPixel:$t,clearCanvas:Yt,drawPoint:qt,_isPointInArea:Ut,clipArea:Xt,unclipArea:Kt,_steppedLineTo:Gt,_bezierCurveTo:Zt,renderText:Qt,addRoundedRectPath:Jt,_lookup:te,_lookupByKey:ee,_rlookupByKey:ie,_filterBetween:ne,listenArrayEvents:oe,unlistenArrayEvents:se,_arrayUnique:re,_createResolver:$i,_attachContext:Yi,_descriptors:qi,splineCurve:rn,splineCurveMonotone:cn,_updateBezierControlPoints:dn,_getParentNode:ce,getStyle:fe,getRelativePosition:ge,getMaximumSize:pe,retinaScale:me,supportsEventListenerOptions:xe,readUsedSize:_e,fontString:function(t,e,i){return e+" "+t+"px "+i},requestAnimFrame:t,throttled:e,debounce:i,_toLeftRightCenter:n,_alignStartEnd:a,_textX:o,_pointInLine:fn,_steppedInterpolation:hn,_bezierInterpolation:un,formatNumber:Li,toLineHeight:Oe,_readValueToProps:Te,toTRBL:Ae,toTRBLCorners:Re,toPadding:Le,toFont:Ee,resolve:Ie,_addGrace:Fe,PI:bt,TAU:pt,PITAU:mt,INFINITY:xt,RAD_PER_DEG:_t,HALF_PI:yt,QUARTER_PI:vt,TWO_THIRDS_PI:wt,log10:Mt,sign:kt,niceNum:St,_factorize:Pt,isNumber:Dt,almostEquals:Ct,almostWhole:Ot,_setMinAndMaxByKey:Tt,toRadians:At,toDegrees:Rt,_decimalPlaces:Lt,getAngleFromPoint:Et,distanceBetweenPoints:It,_angleDiff:Ft,_normalizeAngle:zt,_angleBetween:Bt,_limitValue:Vt,_int16Range:Wt,getRtlAdapter:gn,overrideTextDirection:bn,restoreTextDirection:pn,_boundSegment:_n,_boundSegments:yn,_computeSegments:vn});class Sn{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=this,i=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(i)&&(n=e.register(i));const a=e.items,o=t.id,s=e.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);
2return o in a||(a[o]=t,function(t,e,i){const n=et(Object.create(null),[i?gt.get(i):{},gt.get(e),t.defaults]);gt.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const n=i.split("."),a=n.pop(),o=[t].concat(n).join("."),s=e[i].split("."),r=s.pop(),c=s.join(".");gt.route(o,a,c,r)}))}(e,t.defaultRoutes),t.descriptors&>.describe(e,t.descriptors)}(t,s,n),e.override&>.override(t.id,t.overrides)),s}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 gt[n]&&(delete gt[n][i],this.override&&delete dt[i])}}var Pn=new class{constructor(){this.controllers=new Sn(Ti,"datasets",!0),this.elements=new Sn(Ai,"elements"),this.plugins=new Sn(Object,"plugins"),this.scales=new Sn(ji,"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){const n=this;[...e].forEach((e=>{const a=i||n._getRegistryForType(e);i||a.isForType(e)||a===n.plugins&&e.id?n._exec(t,a,e):G(e,(e=>{const a=i||n._getRegistryForType(e);n._exec(t,a,e)}))}))}_exec(t,e,i){const n=st(t);K(i["before"+n],[],i),e[t](i),K(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}};class Dn{constructor(){this._init=[]}notify(t,e,i,n){const a=this;"beforeInit"===e&&(a._init=a._createDescriptors(t,!0),a._notify(a._init,t,"install"));const o=n?a._descriptors(t).filter(n):a._descriptors(t),s=a._notify(o,t,e,i);return"destroy"===e&&(a._notify(o,t,"stop"),a._notify(a._init,t,"uninstall")),s}_notify(t,e,i,n){n=n||{};for(const a of t){const t=a.plugin;if(!1===K(t[i],[e,n,a.options],t)&&n.cancelable)return!1}return!0}invalidate(){H(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=q(i.options&&i.options.plugins,{}),a=function(t){const e=[],i=Object.keys(Pn.plugins.items);for(let t=0;t<i.length;t++)e.push(Pn.getPlugin(i[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const i=n[t];-1===e.indexOf(i)&&e.push(i)}return e}(i);return!1!==n||e?function(t,e,i,n){const a=[],o=t.getContext();for(let s=0;s<e.length;s++){const r=e[s],c=Cn(i[r.id],n);null!==c&&a.push({plugin:r,options:On(t.config,r,c,o)})}return a}(t,a,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 Cn(t,e){return e||!1!==t?!0===t?{}:t:null}function On(t,e,i,n){const a=t.pluginScopeKeys(e),o=t.getOptionScopes(i,a);return t.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Tn(t,e){const i=gt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function An(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function Rn(t){const e=t.options||(t.options={});e.plugins=q(e.plugins,{}),e.scales=function(t,e){const i=dt[t.type]||{scales:{}},n=e.scales||{},a=Tn(t.type,e),o=Object.create(null),s=Object.create(null);
2return Object.keys(n).forEach((t=>{const e=n[t],r=An(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(r,a),l=i.scales||{};o[r]=o[r]||t,s[t]=it(Object.create(null),[{axis:r},e,l[r],l[c]])})),t.data.datasets.forEach((i=>{const a=i.type||t.type,r=i.indexAxis||Tn(a,e),c=(dt[a]||{}).scales||{};Object.keys(c).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),a=i[e+"AxisID"]||o[e]||e;s[a]=s[a]||Object.create(null),it(s[a],[{axis:e},n[a],c[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];it(e,[gt.scales[e.type],gt.scale])})),s}(t,e)}function Ln(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const En=new Map,In=new Set;function Fn(t,e){let i=En.get(t);return i||(i=e(),En.set(t,i),In.add(i)),i}const zn=(t,e,i)=>{const n=ot(e,i);void 0!==n&&t.add(n)};class Bn{constructor(t){this._config=function(t){return(t=t||{}).data=Ln(t.data),Rn(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}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=Ln(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(),Rn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Fn(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Fn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Fn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Fn(`${this.type}-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:a}=this,o=this._cachedScopes(t,i),s=o.get(e);if(s)return s;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>zn(r,t,e)))),e.forEach((t=>zn(r,n,t))),e.forEach((t=>zn(r,dt[a]||{},t))),e.forEach((t=>zn(r,gt,t))),e.forEach((t=>zn(r,ft,t)))}));const c=[...r];return In.has(e)&&o.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,dt[e]||{},gt.datasets[e]||{},{type:e},gt,ft]}resolveNamedOptions(t,e,i,n=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Vn(this._resolverCache,t,n);let r=o;(function(t,e){const{isScriptable:i,isIndexable:n}=qi(t);for(const a of e)if(i(a)&&ct(t[a])||n(a)&&N(t[a]))return!0;return!1})(o,e)&&(a.$shared=!1,r=Yi(o,i=ct(i)?i():i,this.createResolver(t,i,s)));for(const t of e)a[t]=r[t];return a}createResolver(t,e,i=[""],n){const{resolver:a}=Vn(this._resolverCache,t,i);return j(e)?Yi(a,e,void 0,n):a}}function Vn(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const a=i.join();let o=n.get(a);return o||(o={resolver:$i(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(a,o)),o}const Wn=["top","bottom","left","right","chartArea"];function Hn(t,e){return"top"===t||"bottom"===t||-1===Wn.indexOf(t)&&"x"===e}function Nn(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function jn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),K(i&&i.onComplete,[t],e)}function $n(t){const e=t.chart,i=e.options.animation;K(i&&i.onProgress,[t],e)}function Yn(){return"undefined"!=typeof window&&"undefined"!=typeof document}function qn(t){return Yn()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Un={},Xn=t=>{const e=qn(t);return Object.values(Un).filter((t=>t.canvas===e)).pop()};class Kn{constructor(t,e){const n=this;this.config=e=new Bn(e);const a=qn(t),o=Xn(a);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas can be reused.");const r=e.createResolver(e.chartOptionScopes(),n.getContext());this.platform=n._initializePlatform(a,e);const c=n.platform.acquireContext(a,r.aspectRatio),l=c&&c.canvas,d=l&&l.height,f=l&&l.width;this.id=W(),this.ctx=c,this.canvas=l,this.width=f,this.height=d,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.scale=void 0,this._plugins=new Dn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=i((()=>this.update("resize")),r.resizeDelay||0),Un[n.id]=n,c&&l?(s.listen(n,"complete",jn),s.listen(n,"progress",$n),n._initialize(),n.attached&&n.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:a}=this;return H(t)?e&&a?a: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(){const t=this;return t.notifyPlugins("beforeInit"),t.options.responsive?t.resize():me(t,t.options.devicePixelRatio),t.bindEvents(),t.notifyPlugins("afterInit"),t}_initializePlatform(t,e){return e.platform?new e.platform:!Yn()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?new Ke:new ci}clear(){return Yt(this.canvas,this.ctx),this}stop(){return s.stop(this),this}resize(t,e){s.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this,n=i.options,a=i.canvas,o=n.maintainAspectRatio&&i.aspectRatio,s=i.platform.getMaximumSize(a,t,e,o),r=n.devicePixelRatio||i.platform.getDevicePixelRatio();i.width=s.width,i.height=s.height,i._aspectRatio=i.aspectRatio,me(i,r,!0)&&(i.notifyPlugins("resize",{size:s}),K(n.onResize,[i,s],i),i.attached&&i._doResize()&&i.render())}ensureScalesHaveIDs(){G(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this,e=t.options,i=e.scales,n=t.scales,a=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];
2i&&(o=o.concat(Object.keys(i).map((t=>{const e=i[t],n=An(t,e),a="r"===n,o="x"===n;return{options:e,dposition:a?"chartArea":o?"bottom":"left",dtype:a?"radialLinear":o?"category":"linear"}})))),G(o,(i=>{const o=i.options,s=o.id,r=An(s,o),c=q(o.type,i.dtype);void 0!==o.position&&Hn(o.position,r)===Hn(i.dposition)||(o.position=i.dposition),a[s]=!0;let l=null;s in n&&n[s].type===c?l=n[s]:(l=new(Pn.getScale(c))({id:s,type:c,ctx:t.ctx,chart:t}),n[l.id]=l),l.init(o,e)})),G(a,((t,e)=>{t||delete n[e]})),G(n,(e=>{Ue.configure(t,e,e.options),Ue.addBox(t,e)}))}_updateMetasets(){const t=this,e=t._metasets,i=t.data.datasets.length,n=e.length;if(e.sort(((t,e)=>t.index-e.index)),n>i){for(let e=i;e<n;++e)t._destroyDatasetMeta(e);e.splice(i,n-i)}t._sortedMetasets=e.slice(0).sort(Nn("order","index"))}_removeUnreferencedMetasets(){const t=this,{_metasets:e,data:{datasets:i}}=t;e.length>i.length&&delete t._stacks,e.forEach(((e,n)=>{0===i.filter((t=>t===e._dataset)).length&&t._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=this,e=[],i=t.data.datasets;let n,a;for(t._removeUnreferencedMetasets(),n=0,a=i.length;n<a;n++){const a=i[n];let o=t.getDatasetMeta(n);const s=a.type||t.config.type;if(o.type&&o.type!==s&&(t._destroyDatasetMeta(n),o=t.getDatasetMeta(n)),o.type=s,o.indexAxis=a.indexAxis||Tn(s,t.options),o.order=a.order||0,o.index=n,o.label=""+a.label,o.visible=t.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const i=Pn.getController(s),{datasetElementType:a,dataElementType:r}=gt.datasets[s];Object.assign(i.prototype,{dataElementType:Pn.getElement(r),datasetElementType:a&&Pn.getElement(a)}),o.controller=new i(t,n),e.push(o.controller)}}return t._updateMetasets(),e}_resetElements(){const t=this;G(t.data.datasets,((e,i)=>{t.getDatasetMeta(i).controller.reset()}),t)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this,i=e.config;i.update(),e._options=i.createResolver(i.chartOptionScopes(),e.getContext()),G(e.scales,(t=>{Ue.removeBox(e,t)}));const n=e._animationsDisabled=!e.options.animation;e.ensureScalesHaveIDs(),e.buildOrUpdateScales();const a=new Set(Object.keys(e._listeners)),o=new Set(e.options.events);if(lt(a,o)&&!!this._responsiveListeners===e.options.responsive||(e.unbindEvents(),e.bindEvents()),e._plugins.invalidate(),!1===e.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=e.buildOrUpdateControllers();e.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,i=e.data.datasets.length;t<i;t++){const{controller:i}=e.getDatasetMeta(t),a=!n&&-1===s.indexOf(i);i.buildOrUpdateElements(a),r=Math.max(+i.getMaxOverflow(),r)}e._minPadding=r,e._updateLayout(r),n||G(s,(t=>{t.reset()})),e._updateDatasets(t),e.notifyPlugins("afterUpdate",{mode:t}),e._layers.sort(Nn("z","_idx")),e._lastEvent&&e._eventHandler(e._lastEvent,!0),e.render()}_updateLayout(t){const e=this;if(!1===e.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ue.update(e,e.width,e.height,t);const i=e.chartArea,n=i.width<=0||i.height<=0;e._layers=[],G(e.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),e._layers.push(...t._layers()))}),e),e._layers.forEach(((t,e)=>{t._idx=e})),e.notifyPlugins("afterLayout")}_updateDatasets(t){const e=this,i="function"==typeof t;if(!1!==e.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let n=0,a=e.data.datasets.length;n<a;++n)e._updateDataset(n,i?t({datasetIndex:n}):t);e.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this,n=i.getDatasetMeta(t),a={meta:n,index:t,mode:e,cancelable:!0};!1!==i.notifyPlugins("beforeDatasetUpdate",a)&&(n.controller._update(e),a.cancelable=!1,i.notifyPlugins("afterDatasetUpdate",a))}render(){const t=this;!1!==t.notifyPlugins("beforeRender",{cancelable:!0})&&(s.has(t)?t.attached&&!s.running(t)&&s.start(t):(t.draw(),jn({chart:t})))}draw(){const t=this;let e;if(t._resizeBeforeDraw){const{width:e,height:i}=t._resizeBeforeDraw;t._resize(e,i),t._resizeBeforeDraw=null}if(t.clear(),t.width<=0||t.height<=0)return;if(!1===t.notifyPlugins("beforeDraw",{cancelable:!0}))return;const i=t._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(t.chartArea);for(t._drawDatasets();e<i.length;++e)i[e].draw(t.chartArea);t.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let n,a;for(n=0,a=e.length;n<a;++n){const a=e[n];t&&!a.visible||i.push(a)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){const t=this;if(!1===t.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=t.getSortedVisibleDatasetMetas();for(let i=e.length-1;i>=0;--i)t._drawDataset(e[i]);t.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this,i=e.ctx,n=t._clip,a=e.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==e.notifyPlugins("beforeDatasetDraw",o)&&(Xt(i,{left:!1===n.left?0:a.left-n.left,right:!1===n.right?e.width:a.right+n.right,top:!1===n.top?0:a.top-n.top,bottom:!1===n.bottom?e.height:a.bottom+n.bottom}),t.controller.draw(),Kt(i),o.cancelable=!1,e.notifyPlugins("afterDatasetDraw",o))}getElementsAtEventForMode(t,e,i,n){const a=Pe.modes[e];return"function"==typeof a?a(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={chart:this,type:"chart"})}
2getVisibleDatasetCount(){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){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateDatasetVisibility(t,e){const i=this,n=e?"show":"hide",a=i.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,n);i.setDatasetVisibility(t,e),o.update(a,{visible:e}),i.update((e=>e.datasetIndex===t?n:void 0))}hide(t){this._updateDatasetVisibility(t,!1)}show(t){this._updateDatasetVisibility(t,!0)}_destroyDatasetMeta(t){const e=this,i=e._metasets&&e._metasets[t];i&&i.controller&&(i.controller._destroy(),delete e._metasets[t])}destroy(){const t=this,{canvas:e,ctx:i}=t;let n,a;for(t.stop(),s.remove(t),n=0,a=t.data.datasets.length;n<a;++n)t._destroyDatasetMeta(n);t.config.clearCache(),e&&(t.unbindEvents(),Yt(e,i),t.platform.releaseContext(i),t.canvas=null,t.ctx=null),t.notifyPlugins("destroy"),delete Un[t.id]}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this,e=t._listeners,i=t.platform,n=function(e,i,n){e.offsetX=i,e.offsetY=n,t._eventHandler(e)};G(t.options.events,(a=>((n,a)=>{i.addEventListener(t,n,a),e[n]=a})(a,n)))}bindResponsiveEvents(){const t=this;t._responsiveListeners||(t._responsiveListeners={});const e=t._responsiveListeners,i=t.platform,n=(n,a)=>{i.addEventListener(t,n,a),e[n]=a},a=(n,a)=>{e[n]&&(i.removeEventListener(t,n,a),delete e[n])},o=(e,i)=>{t.canvas&&t.resize(e,i)};let s;const r=()=>{a("attach",r),t.attached=!0,t.resize(),n("resize",o),n("detach",s)};s=()=>{t.attached=!1,a("resize",o),n("attach",r)},i.isAttached(t.canvas)?r():s()}unbindEvents(){const t=this;G(t._listeners,((e,i)=>{t.platform.removeEventListener(t,i,e)})),t._listeners={},G(t._responsiveListeners,((e,i)=>{t.platform.removeEventListener(t,i,e)})),t._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let a,o,s,r;for("dataset"===e&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+n+"DatasetHoverStyle"]()),s=0,r=t.length;s<r;++s){o=t[s];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,i=e._active||[],n=t.map((({datasetIndex:t,index:i})=>{const n=e.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[i],index:i}}));!Z(n,i)&&(e._active=n,e._updateHoverStyles(n,i))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this,a=n.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),s=o(e,t),r=i?t:o(t,e);s.length&&n.updateHoverStyle(s,a.mode,!1),r.length&&a.mode&&n.updateHoverStyle(r,a.mode,!0)}_eventHandler(t,e){const i=this,n={event:t,replay:e,cancelable:!0},a=e=>(e.options.events||this.options.events).includes(t.type);if(!1===i.notifyPlugins("beforeEvent",n,a))return;const o=i._handleEvent(t,e);return n.cancelable=!1,i.notifyPlugins("afterEvent",n,a),(o||n.changed)&&i.render(),i}_handleEvent(t,e){const i=this,{_active:n=[],options:a}=i,o=a.hover,s=e;let r=[],c=!1,l=null;return"mouseout"!==t.type&&(r=i.getElementsAtEventForMode(t,o.mode,o,s),l="click"===t.type?i._lastEvent:t),i._lastEvent=null,Ut(t,i.chartArea,i._minPadding)&&(K(a.onHover,[t,r,i],i),"mouseup"!==t.type&&"click"!==t.type&&"contextmenu"!==t.type||K(a.onClick,[t,r,i],i)),c=!Z(r,n),(c||e)&&(i._active=r,i._updateHoverStyles(r,n,e)),i._lastEvent=l,c}}const Gn=()=>G(Kn.instances,(t=>t._plugins.invalidate())),Zn=!0;function Qn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(Kn,{defaults:{enumerable:Zn,value:gt},instances:{enumerable:Zn,value:Un},overrides:{enumerable:Zn,value:dt},registry:{enumerable:Zn,value:Pn},version:{enumerable:Zn,value:"3.3.2"},getChart:{enumerable:Zn,value:Xn},register:{enumerable:Zn,value:(...t)=>{Pn.add(...t),Gn()}},unregister:{enumerable:Zn,value:(...t)=>{Pn.remove(...t),Gn()}}});class Jn{constructor(t){this.options=t||{}}formats(){return Qn()}parse(t,e){return Qn()}format(t,e){return Qn()}
2add(t,e,i){return Qn()}diff(t,e,i){return Qn()}startOf(t,e,i){return Qn()}endOf(t,e){return Qn()}}Jn.override=function(t){Object.assign(Jn.prototype,t)};var ta={_date:Jn};function ea(t){const e=function(t){if(!t._cache.$bar){const e=t.getMatchingVisibleMetas("bar");let i=[];for(let n=0,a=e.length;n<a;n++)i=i.concat(e[n].controller.getAllParsedValues(t));t._cache.$bar=re(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(t);let i,n,a,o,s=t._length;const r=()=>{32767!==a&&-32768!==a&&(rt(o)&&(s=Math.min(s,Math.abs(a-o)||s)),o=a)};for(i=0,n=e.length;i<n;++i)a=t.getPixelForValue(e[i]),r();for(o=void 0,i=0,n=t.ticks.length;i<n;++i)a=t.getPixelForTick(i),r();return s}function ia(t,e,i,n){return N(t)?function(t,e,i,n){const a=i.parse(t[0],n),o=i.parse(t[1],n),s=Math.min(a,o),r=Math.max(a,o);let c=s,l=r;Math.abs(s)>Math.abs(r)&&(c=r,l=s),e[i.axis]=l,e._custom={barStart:c,barEnd:l,start:a,end:o,min:s,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function na(t,e,i,n){const a=t.iScale,o=t.vScale,s=a.getLabels(),r=a===o,c=[];let l,d,f,h;for(l=i,d=i+n;l<d;++l)h=e[l],f={},f[a.axis]=r||a.parse(s[l],l),c.push(ia(h,f,o,l));return c}function aa(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}class oa extends Ti{parsePrimitiveData(t,e,i,n){return na(t,e,i,n)}parseArrayData(t,e,i,n){return na(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:r="y"}=this._parsing,c="x"===a.axis?s:r,l="x"===o.axis?s:r,d=[];let f,h,u,g;for(f=i,h=i+n;f<h;++f)g=e[f],u={},u[a.axis]=a.parse(ot(g,c),f),d.push(ia(ot(g,l),u,o,f));return d}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const a=i._custom;a&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,a=this.getParsed(t),o=a._custom,s=aa(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(a[n.axis]);return{label:""+i.getLabelForValue(a[i.axis]),value:s}}initialize(){const t=this;t.enableOptionSharing=!0,super.initialize(),t._cachedMeta.stack=t.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,n){const a=this,o="reset"===n,s=a._cachedMeta.vScale,r=s.getBasePixel(),c=s.isHorizontal(),l=a._getRuler(),d=a.resolveDataElementOptions(e,n),f=a.getSharedOptions(d),h=a.includeOptions(n,f);a.updateSharedOptions(f,n,d);for(let d=e;d<e+i;d++){const e=a.getParsed(d),i=o||H(e[s.axis])?{base:r,head:r}:a._calculateBarValuePixels(d),u=a._calculateBarIndexPixels(d,l),g=(e._stacks||{})[s.axis],b={horizontal:c,base:i.base,enableBorderRadius:!g||aa(e._custom)||a.index===g._top||a.index===g._bottom,x:c?i.head:u.center,y:c?u.center:i.head,height:c?u.size:void 0,width:c?void 0:u.size};h&&(b.options=f||a.resolveDataElementOptions(d,n)),a.updateElement(t[d],d,b,n)}}_getStacks(t,e){const i=this._cachedMeta.iScale,n=i.getMatchingVisibleMetas(this._type),a=i.options.stacked,o=n.length,s=[];let r,c;for(r=0;r<o;++r){if(c=n[r],void 0!==e){const t=c.controller.getParsed(e)[c.controller._cachedMeta.vScale.axis];if(H(t)||isNaN(t))continue}if((!1===a||-1===s.indexOf(c.stack)||void 0===a&&void 0===c.stack)&&s.push(c.stack),c.index===t)break}return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),a=void 0!==e?n.indexOf(e):-1;return-1===a?n.length-1:a}_getRuler(){const t=this,e=t.options,i=t._cachedMeta,n=i.iScale,a=[];let o,s;for(o=0,s=i.data.length;o<s;++o)a.push(n.getPixelForValue(t.getParsed(o)[n.axis],o));const r=e.barThickness;return{min:r||ea(n),pixels:a,start:n._startPixel,end:n._endPixel,stackCount:t._getStackCount(),scale:n,grouped:e.grouped,ratio:r?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(t){const e=this,{vScale:i,_stacked:n}=e._cachedMeta,{base:a,minBarLength:o}=e.options,s=e.getParsed(t),r=s._custom,c=aa(r);let l,d,f=s[i.axis],h=0,u=n?e.applyStack(i,s,n):f;u!==f&&(h=u-f,u=f),c&&(f=r.barStart,u=r.barEnd-r.barStart,0!==f&&kt(f)!==kt(r.barEnd)&&(h=0),h+=f);const g=H(a)||c?h:a;let b=i.getPixelForValue(g);l=this.chart.getDataVisibility(t)?i.getPixelForValue(h+u):b,d=l-b,void 0!==o&&Math.abs(d)<o&&(d=d<0?-o:o,0===f&&(b-=d/2),l=b+d);const p=a||0;if(b===i.getPixelForValue(p)){const t=i.getLineWidthForValue(p)/2;d>0?(b+=t,d-=t):d<0&&(b-=t,d+=t)}return{size:d,base:b,head:l,center:l+d/2}}_calculateBarIndexPixels(t,e){const i=this,n=e.scale,a=i.options,o=a.skipNull,s=q(a.maxBarThickness,1/0);let r,c;if(e.grouped){const n=o?i._getStackCount(t):e.stackCount,l="flex"===a.barThickness?function(t,e,
2i,n){const a=e.pixels,o=a[t];let s=t>0?a[t-1]:null,r=t<a.length-1?a[t+1]:null;const c=i.categoryPercentage;null===s&&(s=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-s);const l=o-(o-Math.min(s,r))/2*c;return{chunk:Math.abs(r-s)/2*c/n,ratio:i.barPercentage,start:l}}(t,e,a,n):function(t,e,i,n){const a=i.barThickness;let o,s;return H(a)?(o=e.min*i.categoryPercentage,s=i.barPercentage):(o=a*n,s=1),{chunk:o/n,ratio:s,start:e.pixels[t]-o/2}}(t,e,a,n),d=i._getStackIndex(i.index,i._cachedMeta.stack,o?t:void 0);r=l.start+l.chunk*d+l.chunk/2,c=Math.min(s,l.chunk*l.ratio)}else r=n.getPixelForValue(i.getParsed(t)[n.axis],t),c=Math.min(s,e.min*e.ratio);return{base:r-c/2,head:r+c/2,center:r,size:c}}draw(){const t=this,e=t.chart,i=t._cachedMeta,n=i.vScale,a=i.data,o=a.length;let s=0;for(Xt(e.ctx,e.chartArea);s<o;++s)null!==t.getParsed(s)[n.axis]&&a[s].draw(t._ctx);Kt(e.ctx)}}oa.id="bar",oa.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},oa.overrides={interaction:{mode:"index"},scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class sa extends Ti{initialize(){this.enableOptionSharing=!0,super.initialize()}parseObjectData(t,e,i,n){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:r="y"}=this._parsing,c=[];let l,d,f;for(l=i,d=i+n;l<d;++l)f=e[l],c.push({x:a.parse(ot(f,s),l),y:o.parse(ot(f,r),l),_custom:f&&f.r&&+f.r});return c}getMaxOverflow(){const{data:t,_parsed:e}=this._cachedMeta;let i=0;for(let n=t.length-1;n>=0;--n)i=Math.max(i,t[n].size()/2,e[n]._custom);return i>0&&i}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,a=this.getParsed(t),o=i.getLabelForValue(a.x),s=n.getLabelForValue(a.y),r=a._custom;return{label:e.label,value:"("+o+", "+s+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const a=this,o="reset"===n,{iScale:s,vScale:r}=a._cachedMeta,c=a.resolveDataElementOptions(e,n),l=a.getSharedOptions(c),d=a.includeOptions(n,l),f=s.axis,h=r.axis;for(let c=e;c<e+i;c++){const e=t[c],i=!o&&a.getParsed(c),l={},u=l[f]=o?s.getPixelForDecimal(.5):s.getPixelForValue(i[f]),g=l[h]=o?r.getBasePixel():r.getPixelForValue(i[h]);l.skip=isNaN(u)||isNaN(g),d&&(l.options=a.resolveDataElementOptions(c,n),o&&(l.options.radius=0)),a.updateElement(e,c,l,n)}a.updateSharedOptions(l,n,c)}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const a=n.radius;return"active"!==e&&(n.radius=0),n.radius+=q(i&&i._custom,a),n}}sa.id="bubble",sa.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},sa.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class ra extends Ti{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;let a,o;for(a=t,o=t+e;a<o;++a)n._parsed[a]=+i[a]}_getRotation(){return At(this.options.rotation-90)}_getCircumference(){return At(this.options.circumference)}_getRotationExtents(){let t=pt,e=-pt;const i=this;for(let n=0;n<i.chart.data.datasets.length;++n)if(i.chart.isDatasetVisible(n)){const a=i.chart.getDatasetMeta(n).controller,o=a._getRotation(),s=a._getCircumference();t=Math.min(t,o),e=Math.max(e,o+s)}return{rotation:t,circumference:e-t}}update(t){const e=this,i=e.chart,{chartArea:n}=i,a=e._cachedMeta,o=a.data,s=e.getMaxBorderWidth()+e.getMaxOffset(o),r=Math.max((Math.min(n.width,n.height)-s)/2,0),c=Math.min(U(e.options.cutout,r),1),l=e._getRingWeight(e.index),{circumference:d,rotation:f}=e._getRotationExtents(),{ratioX:h,ratioY:u,offsetX:g,offsetY:b}=function(t,e,i){let n=1,a=1,o=0,s=0;if(e<pt){const r=t,c=r+e,l=Math.cos(r),d=Math.sin(r),f=Math.cos(c),h=Math.sin(c),u=(t,e,n)=>Bt(t,r,c,!0)?1:Math.max(e,e*i,n,n*i),g=(t,e,n)=>Bt(t,r,c,!0)?-1:Math.min(e,e*i,n,n*i),b=u(0,l,f),p=u(yt,d,h),m=g(bt,l,f),x=g(bt+yt,d,h);n=(b-m)/2,a=(p-x)/2,o=-(b+m)/2,s=-(p+x)/2}return{ratioX:n,ratioY:a,offsetX:o,offsetY:s}}(f,d,c),p=(n.width-s)/h,m=(n.height-s)/u,x=Math.max(Math.min(p,m)/2,0),_=X(e.options.radius,x),y=(_-Math.max(_*c,0))/e._getVisibleDatasetWeightTotal();e.offsetX=g*_,e.offsetY=b*_,a.total=e.calculateTotal(),e.outerRadius=_-y*e._getRingWeightOffset(e.index),e.innerRadius=Math.max(e.outerRadius-y*l,0),e.updateElements(o,0,o.length,t)}_circumference(t,e){const i=this,n=i.options,a=i._cachedMeta,o=i._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===a._parsed[t]?0:i.calculateCircumference(a._parsed[t]*o/pt)}updateElements(t,e,i,n){const a=this,o="reset"===n,s=a.chart,r=s.chartArea,c=s.options.animation,l=(r.left+r.right)/2,d=(r.top+r.bottom)/2,f=o&&c.animateScale,h=f?0:a.innerRadius,u=f?0:a.outerRadius,g=a.resolveDataElementOptions(e,n),b=a.getSharedOptions(g),p=a.includeOptions(n,b);let m,x=a._getRotation();for(m=0;m<e;++m)x+=a._circumference(m,o);for(m=e;m<e+i;++m){const e=a._circumference(m,o),i=t[m],s={x:l+a.offsetX,y:d+a.offsetY,startAngle:x,endAngle:x+e,circumference:e,outerRadius:u,innerRadius:h};
2p&&(s.options=b||a.resolveDataElementOptions(m,n)),x+=e,a.updateElement(i,m,s,n)}a.updateSharedOptions(b,n,g)}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const e=t._parsed[i];null!==e&&!isNaN(e)&&this.chart.getDataVisibility(i)&&(n+=Math.abs(e))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?pt*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],a=Li(e._parsed[t],i.options.locale);return{label:n[t]||"",value:a}}getMaxBorderWidth(t){const e=this;let i=0;const n=e.chart;let a,o,s,r,c;if(!t)for(a=0,o=n.data.datasets.length;a<o;++a)if(n.isDatasetVisible(a)){s=n.getDatasetMeta(a),t=s.data,r=s.controller,r!==e&&r.configure();break}if(!t)return 0;for(a=0,o=t.length;a<o;++a)c=r.resolveDataElementOptions(a),"inner"!==c.borderAlign&&(i=Math.max(i,c.borderWidth||0,c.hoverBorderWidth||0));return i}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(q(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ra.id="doughnut",ra.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",indexAxis:"r"},ra.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(((e,i)=>{const n=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,hidden:!t.getDataVisibility(i),index:i}})):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return N(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class ca extends Ti{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this,i=e._cachedMeta,{dataset:n,data:a=[],_dataset:o}=i,s=e.chart._animationsDisabled;let{start:r,count:c}=function(t,e,i){const n=e.length;let a=0,o=n;if(t._sorted){const{iScale:s,_parsed:r}=t,c=s.axis,{min:l,max:d,minDefined:f,maxDefined:h}=s.getUserBounds();f&&(a=Vt(Math.min(ee(r,s.axis,l).lo,i?n:ee(e,c,s.getPixelForValue(l)).lo),0,n-1)),o=h?Vt(Math.max(ee(r,s.axis,d).hi+1,i?0:ee(e,c,s.getPixelForValue(d)).hi+1),a,n)-a:n-a}return{start:a,count:o}}(i,a,s);e._drawStart=r,e._drawCount=c,function(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,a={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=a,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,a),o}(i)&&(r=0,c=a.length),n._decimated=!!o._decimated,n.points=a;const l=e.resolveDatasetElementOptions(t);e.options.showLine||(l.borderWidth=0),l.segment=e.options.segment,e.updateElement(n,void 0,{animated:!s,options:l},t),e.updateElements(a,r,c,t)}updateElements(t,e,i,n){const a=this,o="reset"===n,{iScale:s,vScale:r,_stacked:c}=a._cachedMeta,l=a.resolveDataElementOptions(e,n),d=a.getSharedOptions(l),f=a.includeOptions(n,d),h=s.axis,u=r.axis,g=a.options.spanGaps,b=Dt(g)?g:Number.POSITIVE_INFINITY,p=a.chart._animationsDisabled||o||"none"===n;let m=e>0&&a.getParsed(e-1);for(let l=e;l<e+i;++l){const e=t[l],i=a.getParsed(l),g=p?e:{},x=H(i[u]),_=g[h]=s.getPixelForValue(i[h],l),y=g[u]=o||x?r.getBasePixel():r.getPixelForValue(c?a.applyStack(r,i,c):i[u],l);g.skip=isNaN(_)||isNaN(y)||x,g.stop=l>0&&i[h]-m[h]>b,g.parsed=i,f&&(g.options=d||a.resolveDataElementOptions(l,n)),p||a.updateElement(e,l,g,n),m=i}a.updateSharedOptions(d,n,l)}getMaxOverflow(){const t=this,e=t._cachedMeta,i=e.dataset,n=i.options&&i.options.borderWidth||0,a=e.data||[];if(!a.length)return n;const o=a[0].size(t.resolveDataElementOptions(0)),s=a[a.length-1].size(t.resolveDataElementOptions(a.length-1));return Math.max(n,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ca.id="line",ca.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},ca.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class la extends Ti{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||[],a=Li(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:a}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this,e=t.chart,i=e.chartArea,n=e.options,a=Math.min(i.right-i.left,i.bottom-i.top),o=Math.max(a/2,0),s=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();t.outerRadius=o-s*t.index,t.innerRadius=t.outerRadius-s}updateElements(t,e,i,n){const a=this,o="reset"===n,s=a.chart,r=a.getDataset(),c=s.options.animation,l=a._cachedMeta.rScale,d=l.xCenter,f=l.yCenter,h=l.getIndexAngle(0)-.5*bt;let u,g=h;const b=360/a.countVisibleElements();for(u=0;
2u<e;++u)g+=a._computeAngle(u,n,b);for(u=e;u<e+i;u++){const e=t[u];let i=g,p=g+a._computeAngle(u,n,b),m=s.getDataVisibility(u)?l.getDistanceFromCenterForValue(r.data[u]):0;g=p,o&&(c.animateScale&&(m=0),c.animateRotate&&(i=p=h));const x={x:d,y:f,innerRadius:0,outerRadius:m,startAngle:i,endAngle:p,options:a.resolveDataElementOptions(u,n)};a.updateElement(e,u,x,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)?At(this.resolveDataElementOptions(t,e).angle||i):0}}la.id="polarArea",la.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},la.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(((e,i)=>{const n=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,hidden:!t.getDataVisibility(i),index:i}})):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>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 da extends ra{}da.id="pie",da.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class fa extends Ti{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,i=e._cachedMeta,n=i.dataset,a=i.data||[],o=i.iScale.getLabels();if(n.points=a,"resize"!==t){const i=e.resolveDatasetElementOptions(t);e.options.showLine||(i.borderWidth=0);const s={_loop:!0,_fullLoop:o.length===a.length,options:i};e.updateElement(n,void 0,s,t)}e.updateElements(a,0,a.length,t)}updateElements(t,e,i,n){const a=this,o=a.getDataset(),s=a._cachedMeta.rScale,r="reset"===n;for(let c=e;c<e+i;c++){const e=t[c],i=a.resolveDataElementOptions(c,n),l=s.getPointPositionForValue(c,o.data[c]),d=r?s.xCenter:l.x,f=r?s.yCenter:l.y,h={x:d,y:f,angle:l.angle,skip:isNaN(d)||isNaN(f),options:i};a.updateElement(e,c,h,n)}}}fa.id="radar",fa.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},fa.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ha extends ca{}ha.id="scatter",ha.defaults={showLine:!1,fill:!1},ha.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var ua=Object.freeze({__proto__:null,BarController:oa,BubbleController:sa,DoughnutController:ra,LineController:ca,PolarAreaController:la,PieController:da,RadarController:fa,ScatterController:ha});function ga(t,e,i){const{startAngle:n,pixelMargin:a,x:o,y:s,outerRadius:r,innerRadius:c}=e;let l=a/r;t.beginPath(),t.arc(o,s,r,n-l,i+l),c>a?(l=a/c,t.arc(o,s,c,i+l,n-l,!0)):t.arc(o,s,a,i+yt,n-yt),t.closePath(),t.clip()}function ba(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function pa(t,e,i,n){const{x:a,y:o,startAngle:s,pixelMargin:r,innerRadius:c}=e,l=Math.max(e.outerRadius+i-r,0),d=c>0?c+i+r:0,f=n-s,h=(f-Math.max(.001,f*l-i/bt)/l)/2,u=s+h,g=n-h,{outerStart:b,outerEnd:p,innerStart:m,innerEnd:x}=function(t,e,i,n){const a=Te(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(i-e)/2,s=Math.min(o,n*e/2),r=t=>{const e=(i-Math.min(o,t))*n/2;return Vt(t,0,Math.min(o,e))};return{outerStart:r(a.outerStart),outerEnd:r(a.outerEnd),innerStart:Vt(a.innerStart,0,s),innerEnd:Vt(a.innerEnd,0,s)}}(e,d,l,g-u),_=l-b,y=l-p,v=u+b/_,w=g-p/y,M=d+m,k=d+x,S=u+m/M,P=g-x/k;if(t.beginPath(),t.arc(a,o,l,v,w),p>0){const e=ba(y,w,a,o);t.arc(e.x,e.y,p,w,g+yt)}const D=ba(k,g,a,o);if(t.lineTo(D.x,D.y),x>0){const e=ba(k,P,a,o);t.arc(e.x,e.y,x,g+yt,P+Math.PI)}if(t.arc(a,o,d,g-x/d,u+m/d,!0),m>0){const e=ba(M,S,a,o);t.arc(e.x,e.y,m,S+Math.PI,u-yt)}const C=ba(_,u,a,o);if(t.lineTo(C.x,C.y),b>0){const e=ba(_,v,a,o);t.arc(e.x,e.y,b,u-yt,v)}t.closePath()}class ma extends Ai{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:a,distance:o}=Et(n,{x:t,y:e}
2),{startAngle:s,endAngle:r,innerRadius:c,outerRadius:l,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i);return(d>=pt||Bt(a,s,r))&&o>=c&&o<=l}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:a,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),r=(n+a)/2,c=(o+s)/2;return{x:e+Math.cos(r)*c,y:i+Math.sin(r)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const e=this,{options:i,circumference:n}=e,a=(i.offset||0)/2;if(e.pixelMargin="inner"===i.borderAlign?.33:0,e.fullCircles=n>pt?Math.floor(n/pt):0,0===n||e.innerRadius<0||e.outerRadius<0)return;t.save();let o=0;if(a){o=a/2;const i=(e.startAngle+e.endAngle)/2;t.translate(Math.cos(i)*o,Math.sin(i)*o),e.circumference>=bt&&(o=a)}t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor;const s=function(t,e,i){const{fullCircles:n,startAngle:a,circumference:o}=e;let s=e.endAngle;if(n){pa(t,e,i,a+pt);for(let e=0;e<n;++e)t.fill();isNaN(o)||(s=a+o%pt,o%pt==0&&(s+=pt))}return pa(t,e,i,s),t.fill(),s}(t,e,o);(function(t,e,i,n){const{options:a}=e,o="inner"===a.borderAlign;a.borderWidth&&(o?(t.lineWidth=2*a.borderWidth,t.lineJoin="round"):(t.lineWidth=a.borderWidth,t.lineJoin="bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:a,startAngle:o,pixelMargin:s,fullCircles:r}=e,c=Math.max(e.outerRadius-s,0),l=e.innerRadius+s;let d;for(i&&ga(t,e,o+pt),t.beginPath(),t.arc(n,a,l,o+pt,o,!0),d=0;d<r;++d)t.stroke();for(t.beginPath(),t.arc(n,a,c,o,o+pt),d=0;d<r;++d)t.stroke()}(t,e,o),o&&ga(t,e,n),pa(t,e,i,n),t.stroke())})(t,e,o,s),t.restore()}}function xa(t,e,i=e){t.lineCap=q(i.borderCapStyle,e.borderCapStyle),t.setLineDash(q(i.borderDash,e.borderDash)),t.lineDashOffset=q(i.borderDashOffset,e.borderDashOffset),t.lineJoin=q(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=q(i.borderWidth,e.borderWidth),t.strokeStyle=q(i.borderColor,e.borderColor)}function _a(t,e,i){t.lineTo(i.x,i.y)}function ya(t,e,i={}){const n=t.length,{start:a=0,end:o=n-1}=i,{start:s,end:r}=e,c=Math.max(a,s),l=Math.min(o,r),d=a<s&&o<s||a>r&&o>r;return{count:n,start:c,loop:e.loop,ilen:l<c&&!d?n+l-c:l-c}}function va(t,e,i,n){const{points:a,options:o}=e,{count:s,start:r,loop:c,ilen:l}=ya(a,i,n),d=function(t){return t.stepped?Gt:t.tension||"monotone"===t.cubicInterpolationMode?Zt:_a}(o);let f,h,u,{move:g=!0,reverse:b}=n||{};for(f=0;f<=l;++f)h=a[(r+(b?l-f:f))%s],h.skip||(g?(t.moveTo(h.x,h.y),g=!1):d(t,u,h,b,o.stepped),u=h);return c&&(h=a[(r+(b?l:0))%s],d(t,u,h,b,o.stepped)),!!c}function wa(t,e,i,n){const a=e.points,{count:o,start:s,ilen:r}=ya(a,i,n),{move:c=!0,reverse:l}=n||{};let d,f,h,u,g,b,p=0,m=0;const x=t=>(s+(l?r-t:t))%o,_=()=>{u!==g&&(t.lineTo(p,g),t.lineTo(p,u),t.lineTo(p,b))};for(c&&(f=a[x(0)],t.moveTo(f.x,f.y)),d=0;d<=r;++d){if(f=a[x(d)],f.skip)continue;const e=f.x,i=f.y,n=0|e;n===h?(i<u?u=i:i>g&&(g=i),p=(m*p+e)/++m):(_(),t.lineTo(e,i),h=n,m=0,u=g=i),b=i}_()}function Ma(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?va:wa}ma.id="arc",ma.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,angle:void 0},ma.defaultRoutes={backgroundColor:"backgroundColor"};const ka="function"==typeof Path2D;class Sa extends Ai{constructor(t){super(),this.animated=!0,this.options=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,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this,n=i.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!i._pointsUpdated){const a=n.spanGaps?i._loop:i._fullLoop;dn(i._points,n,t,a,e),i._pointsUpdated=!0}}set points(t){const e=this;e._points=t,delete e._segments,delete e._path,e._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=vn(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,n=i.options,a=t[e],o=i.points,s=yn(i,{property:e,start:a,end:a});if(!s.length)return;const r=[],c=function(t){return t.stepped?hn:t.tension||"monotone"===t.cubicInterpolationMode?un:fn}(n);let l,d;for(l=0,d=s.length;l<d;++l){const{start:i,end:d}=s[l],f=o[i],h=o[d];if(f===h){r.push(f);continue}const u=c(f,h,Math.abs((a-f[e])/(h[e]-f[e])),n.stepped);u[e]=t[e],r.push(u)}return 1===r.length?r[0]:r}pathSegment(t,e,i){return Ma(this)(t,this,e,i)}path(t,e,i){const n=this,a=n.segments,o=Ma(n);let s=n._loop;e=e||0,i=i||n.points.length-e;for(const r of a)s&=o(t,n,r,{start:e,end:e+i-1});return!!s}draw(t,e,i,n){const a=this,o=a.options||{};
2(a.points||[]).length&&o.borderWidth&&(t.save(),function(t,e,i,n){ka&&1===e.segments.length?function(t,e,i,n){let a=e._path;a||(a=e._path=new Path2D,e.path(a,i,n)&&a.closePath()),xa(t,e.options),t.stroke(a)}(t,e,i,n):function(t,e,i,n){const{segments:a,options:o}=e,s=Ma(e);for(const r of a)xa(t,o,r.style),t.beginPath(),s(t,e,r,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}(t,a,i,n),t.restore(),a.animated&&(a._pointsUpdated=!1,a._path=void 0))}}function Pa(t,e,i,n){const a=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<a.radius+a.hitRadius}Sa.id="line",Sa.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Sa.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Sa.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Da extends Ai{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:a,y:o}=this.getProps(["x","y"],i);return Math.pow(t-a,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Pa(this,t,"x",e)}inYRange(t,e){return Pa(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t){const e=this,i=e.options;e.skip||i.radius<.1||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,qt(t,i,e.x,e.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Ca(t,e){const{x:i,y:n,base:a,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let r,c,l,d,f;return t.horizontal?(f=s/2,r=Math.min(i,a),c=Math.max(i,a),l=n-f,d=n+f):(f=o/2,r=i-f,c=i+f,l=Math.min(n,a),d=Math.max(n,a)),{left:r,top:l,right:c,bottom:d}}function Oa(t){let e=t.options.borderSkipped;const i={};return e?(e=t.horizontal?Ta(e,"left","right",t.base>t.x):Ta(e,"bottom","top",t.base<t.y),i[e]=!0,i):i}
2function Ta(t,e,i,n){var a,o,s;return n?(s=i,t=Aa(t=(a=t)===(o=e)?s:a===s?o:a,i,e)):t=Aa(t,e,i),t}function Aa(t,e,i){return"start"===t?e:"end"===t?i:t}function Ra(t,e,i,n){return t?0:Math.max(Math.min(e,n),i)}function La(t,e,i,n){const a=null===e,o=null===i,s=t&&!(a&&o)&&Ca(t,n);return s&&(a||e>=s.left&&e<=s.right)&&(o||i>=s.top&&i<=s.bottom)}function Ea(t,e){t.rect(e.x,e.y,e.w,e.h)}Da.id="point",Da.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Da.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ia extends Ai{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,t&&Object.assign(this,t)}draw(t){const e=this.options,{inner:i,outer:n}=function(t){const e=Ca(t),i=e.right-e.left,n=e.bottom-e.top,a=function(t,e,i){const n=t.options.borderWidth,a=Oa(t),o=Ae(n);return{t:Ra(a.top,o.top,0,i),r:Ra(a.right,o.right,0,e),b:Ra(a.bottom,o.bottom,0,i),l:Ra(a.left,o.left,0,e)}}(t,i/2,n/2),o=function(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),a=t.options.borderRadius,o=Re(a),s=Math.min(e,i),r=Oa(t),c=n||j(a);return{topLeft:Ra(!c||r.top||r.left,o.topLeft,0,s),topRight:Ra(!c||r.top||r.right,o.topRight,0,s),bottomLeft:Ra(!c||r.bottom||r.left,o.bottomLeft,0,s),bottomRight:Ra(!c||r.bottom||r.right,o.bottomRight,0,s)}}(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:o},inner:{x:e.left+a.l,y:e.top+a.t,w:i-a.l-a.r,h:n-a.t-a.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,o.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(a.b,a.r))}}}}(this),a=(o=n.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?Jt:Ea;var o;t.save(),n.w===i.w&&n.h===i.h||(t.beginPath(),a(t,n),t.clip(),a(t,i),t.fillStyle=e.borderColor,t.fill("evenodd")),t.beginPath(),a(t,i),t.fillStyle=e.backgroundColor,t.fill(),t.restore()}inRange(t,e,i){return La(this,t,e,i)}inXRange(t,e){return La(this,t,null,e)}inYRange(t,e){return La(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(e+n)/2:e,y:a?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Ia.id="bar",Ia.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Ia.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Fa=Object.freeze({__proto__:null,ArcElement:ma,LineElement:Sa,PointElement:Da,BarElement:Ia});function za(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Ba(t){t.data.datasets.forEach((t=>{za(t)}))}var Va={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Ba(t);const n=t.width;t.data.datasets.forEach(((e,a)=>{const{_data:o,indexAxis:s}=e,r=t.getDatasetMeta(a),c=o||e.data;if("y"===Ie([s,t.options.indexAxis]))return;if("line"!==r.type)return;const l=t.scales[r.xAxisID];if("linear"!==l.type&&"time"!==l.type)return;if(t.options.parsing)return;let d,{start:f,count:h}=function(t,e){const i=e.length;let n,a=0;const{iScale:o}=t,{min:s,max:r,minDefined:c,maxDefined:l}=o.getUserBounds();return c&&(a=Vt(ee(e,o.axis,s).lo,0,i-1)),n=l?Vt(ee(e,o.axis,r).hi+1,a,i)-a:i-a,{start:a,count:n}}(r,c);if(h<=4*n)za(e);else{switch(H(o)&&(e._data=c,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":d=function(t,e,i,n,a){const o=a.samples||n;if(o>=i)return t.slice(e,e+i);const s=[],r=(i-2)/(o-2);let c=0;const l=e+i-1;let d,f,h,u,g,b=e;for(s[c++]=t[b],d=0;d<o-2;d++){let n,a=0,o=0;const l=Math.floor((d+1)*r)+1+e,p=Math.min(Math.floor((d+2)*r)+1,i)+e,m=p-l;for(n=l;n<p;n++)a+=t[n].x,o+=t[n].y;a/=m,o/=m;const x=Math.floor(d*r)+1+e,_=Math.floor((d+1)*r)+1+e,{x:y,y:v}=t[b];for(h=u=-1,n=x;n<_;n++)u=.5*Math.abs((y-a)*(t[n].y-v)-(y-t[n].x)*(o-v)),u>h&&(h=u,f=t[n],g=n);s[c++]=f,b=g}return s[c++]=t[l],s}(c,f,h,n,i);break;
2case"min-max":d=function(t,e,i,n){let a,o,s,r,c,l,d,f,h,u,g=0,b=0;const p=[],m=e+i-1,x=t[e].x,_=t[m].x-x;for(a=e;a<e+i;++a){o=t[a],s=(o.x-x)/_*n,r=o.y;const e=0|s;if(e===c)r<h?(h=r,l=a):r>u&&(u=r,d=a),g=(b*g+o.x)/++b;else{const i=a-1;if(!H(l)&&!H(d)){const e=Math.min(l,d),n=Math.max(l,d);e!==f&&e!==i&&p.push({...t[e],x:g}),n!==f&&n!==i&&p.push({...t[n],x:g})}a>0&&i!==f&&p.push(t[i]),p.push(o),c=e,b=0,h=u=r,l=d=f=a}}return p}(c,f,h,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=d}}))},destroy(t){Ba(t)}};function Wa(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=q(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(j(n))return!isNaN(n.value)&&n;let a=parseFloat(n);return $(a)&&Math.floor(a)===a?("-"!==n[0]&&"+"!==n[0]||(a=e+a),!(a===e||a<0||a>=i)&&a):["origin","start","end","stack"].indexOf(n)>=0&&n}class Ha{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:a,radius:o}=this;return e=e||{start:0,end:pt},t.arc(n,a,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,a=t.angle;return{x:e+Math.cos(a)*n,y:i+Math.sin(a)*n,angle:a}}}const Na=t=>"line"===t.type&&!t.hidden;function ja(t,e,i){const n=[];for(let a=0;a<i.length;a++){const o=i[a],{first:s,last:r,point:c}=$a(o,e,"x");if(!(!c||s&&r))if(s)n.unshift(c);else if(t.push(c),!r)break}t.push(...n)}function $a(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const a=n[i],o=t.segments,s=t.points;let r=!1,c=!1;for(let t=0;t<o.length;t++){const e=o[t],n=s[e.start][i],l=s[e.end][i];if(a>=n&&a<=l){r=a===n,c=a===l;break}}return{first:r,last:c,point:n}}function Ya(t,e){let i=[],n=!1;return N(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},a=e.points,o=[];return e.segments.forEach((t=>{const e=a[t.start],s=a[t.end];null!==n?(o.push({x:e.x,y:n}),o.push({x:s.x,y:n})):null!==i&&(o.push({x:i,y:e.y}),o.push({x:i,y:s.y}))})),o}(t,e),i.length?new Sa({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function qa(t,e,i){let n=t[e].fill;const a=[e];let o;if(!i)return n;for(;!1!==n&&-1===a.indexOf(n);){if(!$(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;a.push(n),n=o.fill}return!1}function Ua(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 Xa(t,e,i,n){if(n)return;let a=e[t],o=i[t];return"angle"===t&&(a=zt(a),o=zt(o)),{property:t,start:a,end:o}}function Ka(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function Ga(t,e,i){const{top:n,bottom:a}=e.chart.chartArea,{property:o,start:s,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(s,n,r-s,a-n),t.clip())}function Za(t,e,i,n){const a=e.interpolate(i,n);a&&t.lineTo(a.x,a.y)}function Qa(t,e){const{line:i,target:n,property:a,color:o,scale:s}=e,r=function(t,e,i){const n=t.segments,a=t.points,o=e.points,s=[];for(const t of n){const n=Xa(i,a[t.start],a[t.end],t.loop);if(!e.segments){s.push({source:t,target:n,start:a[t.start],end:a[t.end]});continue}const r=yn(e,n);for(const e of r){const r=Xa(i,o[e.start],o[e.end],e.loop),c=_n(t,a,r);for(const t of c)s.push({source:t,target:e,start:{[i]:Ka(n,r,"start",Math.max)},end:{[i]:Ka(n,r,"end",Math.min)}})}}return s}(i,n,a);for(const{source:e,target:c,start:l,end:d}of r){const{style:{backgroundColor:r=o}={}}=e;t.save(),t.fillStyle=r,Ga(t,s,Xa(a,l,d)),t.beginPath();const f=!!i.pathSegment(t,e);f?t.closePath():Za(t,n,d,a);const h=!!n.pathSegment(t,c,{move:f,reverse:!0}),u=f&&h;u||Za(t,n,l,a),t.closePath(),t.fill(u?"evenodd":"nonzero"),t.restore()}}function Ja(t,e,i){const n=function(t){const{chart:e,fill:i,line:n}=t;if($(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{chart:e,scale:i,index:n,line:a}=t,o=[],s=a.segments,r=a.points,c=function(t,e){const i=[],n=t.getSortedVisibleDatasetMetas();for(let t=0;t<n.length;t++){const a=n[t];if(a.index===e)break;Na(a)&&i.unshift(a.dataset)}return i}(e,n);c.push(Ya({x:null,y:i.bottom},a));for(let t=0;t<s.length;t++){const e=s[t];for(let t=e.start;t<=e.end;t++)ja(o,r[t],c)}return new Sa({points:o,options:{}})}(t);const a=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,n=e.options,a=e.getLabels().length,o=[],s=n.reverse?e.max:e.min,r=n.reverse?e.min:e.max;let c,l,d;if(d="start"===i?s:"end"===i?r:j(i)?i.value:e.getBaseValue(),n.grid.circular)return l=e.getPointPositionForValue(0,s),new Ha({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(d)});for(c=0;c<a;++c)o.push(e.getPointPositionForValue(c,d));return o}(t):function(t){const{scale:e={},fill:i}=t;let n,a=null;return"start"===i?a=e.bottom:"end"===i?a=e.top:j(i)?a=e.getPixelForValue(i.value):e.getBasePixel&&(a=e.getBasePixel()),$(a)?(n=e.isHorizontal(),{x:n?a:null,y:n?null:a}):null}(t)}(t);return a instanceof Ha?a:Ya(a,n)}(e),{line:a,scale:o,axis:s}=e,r=a.options,c=r.fill,l=r.backgroundColor,{above:d=l,below:f=l}=c||{};n&&a.points.length&&(Xt(t,i),function(t,e){const{line:i,target:n,above:a,below:o,area:s,scale:r}=e,c=i._loop?"angle":e.axis;t.save(),"x"===c&&o!==a&&(Ua(t,n,s.top),Qa(t,{line:i,target:n,color:a,scale:r,property:c}
2),t.restore(),t.save(),Ua(t,n,s.bottom)),Qa(t,{line:i,target:n,color:o,scale:r,property:c}),t.restore()}(t,{line:a,target:n,above:d,below:f,area:i,scale:o,axis:s}),Kt(t))}var to={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,a=[];let o,s,r,c;for(s=0;s<n;++s)o=t.getDatasetMeta(s),r=o.dataset,c=null,r&&r.options&&r instanceof Sa&&(c={visible:t.isDatasetVisible(s),index:s,fill:Wa(r,s,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=c,a.push(c);for(s=0;s<n;++s)c=a[s],c&&!1!==c.fill&&(c.fill=qa(a,s,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,a=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=a.length-1;e>=0;--e){const i=a[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),n&&Ja(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&Ja(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;n&&!1!==n.fill&&"beforeDatasetDraw"===i.drawTime&&Ja(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const eo=(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)}};class io extends Ai{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){const n=this;n.maxWidth=t,n.maxHeight=e,n._margins=i,n.setDimensions(),n.buildLabels(),n.fit()}setDimensions(){const t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height)}buildLabels(){const t=this,e=t.options.labels||{};let i=K(e.generateLabels,[t.chart],t)||[];e.filter&&(i=i.filter((i=>e.filter(i,t.chart.data)))),e.sort&&(i=i.sort(((i,n)=>e.sort(i,n,t.chart.data)))),t.options.reverse&&i.reverse(),t.legendItems=i}fit(){const t=this,{options:e,ctx:i}=t;if(!e.display)return void(t.width=t.height=0);const n=e.labels,a=Ee(n.font),o=a.size,s=t._computeTitleHeight(),{boxWidth:r,itemHeight:c}=eo(n,o);let l,d;i.font=a.string,t.isHorizontal()?(l=t.maxWidth,d=t._fitRows(s,o,r,c)+10):(d=t.maxHeight,l=t._fitCols(s,o,r,c)+10),t.width=Math.min(l,e.maxWidth||t.maxWidth),t.height=Math.min(d,e.maxHeight||t.maxHeight)}_fitRows(t,e,i,n){const a=this,{ctx:o,maxWidth:s,options:{labels:{padding:r}}}=a,c=a.legendHitBoxes=[],l=a.lineWidths=[0],d=n+r;let f=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-d;return a.legendItems.forEach(((t,a)=>{const g=i+e/2+o.measureText(t.text).width;(0===a||l[l.length-1]+g+2*r>s)&&(f+=d,l[l.length-(a>0?0:1)]=0,u+=d,h++),c[a]={left:0,top:u,row:h,width:g,height:n},l[l.length-1]+=g+r})),f}_fitCols(t,e,i,n){const a=this,{ctx:o,maxHeight:s,options:{labels:{padding:r}}}=a,c=a.legendHitBoxes=[],l=a.columnSizes=[],d=s-t;let f=r,h=0,u=0,g=0,b=0,p=0;return a.legendItems.forEach(((t,a)=>{const s=i+e/2+o.measureText(t.text).width;a>0&&u+e+2*r>d&&(f+=h+r,l.push({width:h,height:u}),g+=h+r,p++,b=0,h=u=0),h=Math.max(h,s),u+=e+r,c[a]={left:g,top:b,col:p,width:s,height:n},b+=n+r})),f+=h,l.push({width:h,height:u}),f}adjustHitBoxes(){const t=this;if(!t.options.display)return;const e=t._computeTitleHeight(),{legendHitBoxes:i,options:{align:n,labels:{padding:o}}}=t;if(this.isHorizontal()){let s=0,r=a(n,t.left+o,t.right-t.lineWidths[s]);for(const c of i)s!==c.row&&(s=c.row,r=a(n,t.left+o,t.right-t.lineWidths[s])),c.top+=t.top+e+o,c.left=r,r+=c.width+o}else{let s=0,r=a(n,t.top+e+o,t.bottom-t.columnSizes[s].height);for(const c of i)c.col!==s&&(s=c.col,r=a(n,t.top+e+o,t.bottom-t.columnSizes[s].height)),c.top=r,c.left+=t.left+o,r+=c.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){const t=this;if(t.options.display){const e=t.ctx;Xt(e,t),t._draw(),Kt(e)}}_draw(){const t=this,{options:e,columnSizes:i,lineWidths:n,ctx:s}=t,{align:r,labels:c}=e,l=gt.color,d=gn(e.rtl,t.left,t.width),f=Ee(c.font),{color:h,padding:u}=c,g=f.size,b=g/2;let p;t.drawTitle(),s.textAlign=d.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=f.string;const{boxWidth:m,boxHeight:x,itemHeight:_}=eo(c,g),y=t.isHorizontal(),v=this._computeTitleHeight();p=y?{x:a(r,t.left+u,t.right-n[0]),y:t.top+u+v,line:0}:{x:t.left+u,y:a(r,t.top+v+u,t.bottom-i[0].height),line:0},bn(t.ctx,e.textDirection);const w=_+u;
2t.legendItems.forEach(((e,M)=>{s.strokeStyle=e.fontColor||h,s.fillStyle=e.fontColor||h;const k=s.measureText(e.text).width,S=d.textAlign(e.textAlign||(e.textAlign=c.textAlign)),P=m+g/2+k;let D=p.x,C=p.y;d.setWidth(t.width),y?M>0&&D+P+u>t.right&&(C=p.y+=w,p.line++,D=p.x=a(r,t.left+u,t.right-n[p.line])):M>0&&C+w>t.bottom&&(D=p.x=D+i[p.line].width+u,p.line++,C=p.y=a(r,t.top+v+u,t.bottom-i[p.line].height)),function(t,e,i){if(isNaN(m)||m<=0||isNaN(x)||x<0)return;s.save();const n=q(i.lineWidth,1);if(s.fillStyle=q(i.fillStyle,l),s.lineCap=q(i.lineCap,"butt"),s.lineDashOffset=q(i.lineDashOffset,0),s.lineJoin=q(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=q(i.strokeStyle,l),s.setLineDash(q(i.lineDash,[])),c.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},o=d.xPlus(t,m/2);qt(s,a,o,e+b)}else{const a=e+Math.max((g-x)/2,0),o=d.leftForLtr(t,m),r=Re(i.borderRadius);s.beginPath(),Object.values(r).some((t=>0!==t))?Jt(s,{x:o,y:a,w:m,h:x,radius:r}):s.rect(o,a,m,x),s.fill(),0!==n&&s.stroke()}s.restore()}(d.x(D),C,e),D=o(S,D+m+b,t.right),function(t,e,i){Qt(s,i.text,t,e+_/2,f,{strikethrough:i.hidden,textAlign:i.textAlign})}(d.x(D),C,e),y?p.x+=P+u:p.y+=w})),pn(t.ctx,e.textDirection)}drawTitle(){const t=this,e=t.options,i=e.title,o=Ee(i.font),s=Le(i.padding);if(!i.display)return;const r=gn(e.rtl,t.left,t.width),c=t.ctx,l=i.position,d=o.size/2,f=s.top+d;let h,u=t.left,g=t.width;if(this.isHorizontal())g=Math.max(...t.lineWidths),h=t.top+f,u=a(e.align,u,t.right-g);else{const i=t.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=f+a(e.align,t.top,t.bottom-i-e.labels.padding-t._computeTitleHeight())}const b=a(l,u,u+g);c.textAlign=r.textAlign(n(l)),c.textBaseline="middle",c.strokeStyle=i.color,c.fillStyle=i.color,c.font=o.string,Qt(c,i.text,b,h,o)}_computeTitleHeight(){const t=this.options.title,e=Ee(t.font),i=Le(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){const i=this;let n,a,o;if(t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom)for(o=i.legendHitBoxes,n=0;n<o.length;++n)if(a=o[n],t>=a.left&&t<=a.left+a.width&&e>=a.top&&e<=a.top+a.height)return i.legendItems[n];return null}handleEvent(t){const e=this,i=e.options;if(!function(t,e){return!("mousemove"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,i))return;const n=e._getLegendItemAt(t.x,t.y);if("mousemove"===t.type){const s=e._hoveredItem,r=(o=n,null!==(a=s)&&null!==o&&a.datasetIndex===o.datasetIndex&&a.index===o.index);s&&!r&&K(i.onLeave,[t,s,e],e),e._hoveredItem=n,n&&!r&&K(i.onHover,[t,n,e],e)}else n&&K(i.onClick,[t,n,e],e);var a,o}}var no={id:"legend",_element:io,start(t,e,i){const n=t.legend=new io({ctx:t.ctx,options:i,chart:t});Ue.configure(t,n,i),Ue.addBox(t,n)},stop(t){Ue.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;Ue.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,a=i.chart;a.isDatasetVisible(n)?(a.hide(n),e.hidden=!0):(a.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:a,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const s=t.controller.getStyle(i?0:void 0),r=Le(s.borderWidth);return{text:e[t.index].label,fillStyle:s.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:s.borderColor,pointStyle:n||s.pointStyle,rotation:s.rotation,textAlign:a||s.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 ao extends Ai{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,n=i.options;
2if(i.left=0,i.top=0,!n.display)return void(i.width=i.height=i.right=i.bottom=0);i.width=i.right=t,i.height=i.bottom=e;const a=N(n.text)?n.text.length:1;i._padding=Le(n.padding);const o=a*Ee(n.font).lineHeight+i._padding.height;i.isHorizontal()?i.height=o:i.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:o,options:s}=this,r=s.align;let c,l,d,f=0;return this.isHorizontal()?(l=a(r,i,o),d=e+t,c=o-i):("left"===s.position?(l=i+t,d=a(r,n,e),f=-.5*bt):(l=o-t,d=a(r,e,n),f=.5*bt),c=n-e),{titleX:l,titleY:d,maxWidth:c,rotation:f}}draw(){const t=this,e=t.ctx,i=t.options;if(!i.display)return;const a=Ee(i.font),o=a.lineHeight/2+t._padding.top,{titleX:s,titleY:r,maxWidth:c,rotation:l}=t._drawArgs(o);Qt(e,i.text,0,0,a,{color:i.color,maxWidth:c,rotation:l,textAlign:n(i.align),textBaseline:"middle",translation:[s,r]})}}var oo={id:"title",_element:ao,start(t,e,i){!function(t,e){const i=new ao({ctx:t.ctx,options:e,chart:t});Ue.configure(t,i,e),Ue.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Ue.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;Ue.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 so={average(t){if(!t.length)return!1;let e,i,n=0,a=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,a+=t.y,++o}}return{x:n/o,y:a/o}},nearest(t,e){if(!t.length)return!1;let i,n,a,o=e.x,s=e.y,r=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){const n=t[i].element;if(n&&n.hasValue()){const t=It(e,n.getCenterPoint());t<r&&(r=t,a=n)}}if(a){const t=a.tooltipPosition();o=t.x,s=t.y}return{x:o,y:s}}};function ro(t,e){return e&&(N(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function co(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function lo(t,e){const{element:i,datasetIndex:n,index:a}=e,o=t.getDatasetMeta(n).controller,{label:s,value:r}=o.getLabelAndValue(a);return{chart:t,label:s,parsed:o.getParsed(a),raw:t.data.datasets[n].data[a],formattedValue:r,dataset:o.getDataset(),dataIndex:a,datasetIndex:n,element:i}}function fo(t,e){const i=t._chart.ctx,{body:n,footer:a,title:o}=t,{boxWidth:s,boxHeight:r}=e,c=Ee(e.bodyFont),l=Ee(e.titleFont),d=Ee(e.footerFont),f=o.length,h=a.length,u=n.length,g=Le(e.padding);let b=g.height,p=0,m=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);m+=t.beforeBody.length+t.afterBody.length,f&&(b+=f*l.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),m&&(b+=u*(e.displayColors?Math.max(r,c.lineHeight):c.lineHeight)+(m-u)*c.lineHeight+(m-1)*e.bodySpacing),h&&(b+=e.footerMarginTop+h*d.lineHeight+(h-1)*e.footerSpacing);let x=0;const _=function(t){p=Math.max(p,i.measureText(t).width+x)};return i.save(),i.font=l.string,G(t.title,_),i.font=c.string,G(t.beforeBody.concat(t.afterBody),_),x=e.displayColors?s+2:0,G(n,(t=>{G(t.before,_),G(t.lines,_),G(t.after,_)})),x=0,i.font=d.string,G(t.footer,_),i.restore(),p+=g.width,{width:p,height:b}}function ho(t,e,i,n){const{x:a,width:o}=i,{width:s,chartArea:{left:r,right:c}}=t;let l="center";return"center"===n?l=a<=(r+c)/2?"left":"right":a<=o/2?l="left":a>=s-o/2&&(l="right"),function(t,e,i,n){const{x:a,width:o}=n,s=i.caretSize+i.caretPadding;return"left"===t&&a+o+s>e.width||"right"===t&&a-o-s<0||void 0}(l,t,e,i)&&(l="center"),l}function uo(t,e,i){const n=e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:e.xAlign||ho(t,e,i,n),yAlign:n}}function go(t,e,i,n){const{caretSize:a,caretPadding:o,cornerRadius:s}=t,{xAlign:r,yAlign:c}=i,l=a+o,d=s+o;let f=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,r);const h=function(t,e,i){let{y:n,height:a}=t;return"top"===e?n+=i:n-="bottom"===e?a+i:a/2,n}(e,c,l);return"center"===c?"left"===r?f+=l:"right"===r&&(f-=l):"left"===r?f-=d:"right"===r&&(f+=d),{x:Vt(f,0,n.width-e.width),y:Vt(h,0,n.height-e.height)}}function bo(t,e,i){const n=Le(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function po(t){return ro([],co(t))}function mo(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class xo extends Ai{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,e=t._cachedAnimations;if(e)return e;const i=t._chart,n=t.options.setContext(t.getContext()),a=n.enabled&&i.options.animation&&n.animations,o=new xi(t._chart,a);return a._cacheable&&(t._cachedAnimations=Object.freeze(o)),o}getContext(){const t=this;return t.$context||(t.$context=(e=t._chart.getContext(),i=t,n=t._tooltipItems,Object.assign(Object.create(e),{tooltip:i,tooltipItems:n,type:"tooltip"})));var e,i,n}getTitle(t,e){const i=this,{callbacks:n}=e,a=n.beforeTitle.apply(i,[t]),o=n.title.apply(i,[t]),s=n.afterTitle.apply(i,[t]);let r=[];return r=ro(r,co(a)),r=ro(r,co(o)),r=ro(r,co(s)),r}getBeforeBody(t,e){return po(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const i=this,{callbacks:n}=e,a=[];return G(t,(t=>{const e={before:[],lines:[],after:[]},o=mo(n,t);ro(e.before,co(o.beforeLabel.call(i,t))),ro(e.lines,o.label.call(i,t)),ro(e.after,co(o.afterLabel.call(i,t))),a.push(e)})),a}getAfterBody(t,e){return po(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const i=this,{callbacks:n}=e,a=n.beforeFooter.apply(i,[t]),o=n.footer.apply(i,[t]),s=n.afterFooter.apply(i,[t]);let r=[];return r=ro(r,co(a)),r=ro(r,co(o)),r=ro(r,co(s)),r}_createItems(t){const e=this,i=e._active,n=e._chart.data,a=[],o=[],s=[];let r,c,l=[];for(r=0,c=i.length;r<c;++r)l.push(lo(e._chart,i[r]));return t.filter&&(l=l.filter(((e,i,a)=>t.filter(e,i,a,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),G(l,(i=>{const n=mo(t.callbacks,i);a.push(n.labelColor.call(e,i)),o.push(n.labelPointStyle.call(e,i)),s.push(n.labelTextColor.call(e,i))})),e.labelColors=a,e.labelPointStyles=o,e.labelTextColors=s,e.dataPoints=l,l}update(t,e){const i=this,n=i.options.setContext(i.getContext()),a=i._active;let o,s=[];if(a.length){const t=so[n.position].call(i,a,i._eventPosition);s=i._createItems(n),i.title=i.getTitle(s,n),i.beforeBody=i.getBeforeBody(s,n),i.body=i.getBody(s,n),i.afterBody=i.getAfterBody(s,n),i.footer=i.getFooter(s,n);const e=i._size=fo(i,n),r=Object.assign({},t,e),c=uo(i._chart,n,r),l=go(n,r,c,i._chart);i.xAlign=c.xAlign,i.yAlign=c.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==i.opacity&&(o={opacity:0}
2);i._tooltipItems=s,i.$context=void 0,o&&i._resolveAnimations().update(i,o),t&&n.external&&n.external.call(i,{chart:i._chart,tooltip:i,replay:e})}drawCaret(t,e,i,n){const a=this.getCaretPosition(t,i,n);e.lineTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.lineTo(a.x3,a.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:a}=this,{cornerRadius:o,caretSize:s}=i,{x:r,y:c}=t,{width:l,height:d}=e;let f,h,u,g,b,p;return"center"===a?(b=c+d/2,"left"===n?(f=r,h=f-s,g=b+s,p=b-s):(f=r+l,h=f+s,g=b-s,p=b+s),u=f):(h="left"===n?r+o+s:"right"===n?r+l-o-s:this.caretX,"top"===a?(g=c,b=g-s,f=h-s,u=h+s):(g=c+d,b=g+s,f=h+s,u=h-s),p=g),{x1:f,x2:h,x3:u,y1:g,y2:b,y3:p}}drawTitle(t,e,i){const n=this,a=n.title,o=a.length;let s,r,c;if(o){const l=gn(i.rtl,n.x,n.width);for(t.x=bo(n,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",s=Ee(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string,c=0;c<o;++c)e.fillText(a[c],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r,c+1===o&&(t.y+=i.titleMarginBottom-r)}}_drawColorBox(t,e,i,n,a){const o=this,s=o.labelColors[i],r=o.labelPointStyles[i],{boxHeight:c,boxWidth:l}=a,d=Ee(a.bodyFont),f=bo(o,"left",a),h=n.x(f),u=c<d.lineHeight?(d.lineHeight-c)/2:0,g=e.y+u;if(a.usePointStyle){const e={radius:Math.min(l,c)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=n.leftForLtr(h,l)+l/2,o=g+c/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,qt(t,e,i,o),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,qt(t,e,i,o)}else{t.lineWidth=s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const e=n.leftForLtr(h,l),i=n.leftForLtr(n.xPlus(h,1),l-2),o=Re(s.borderRadius);Object.values(o).some((t=>0!==t))?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Jt(t,{x:e,y:g,w:l,h:c,radius:o}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Jt(t,{x:i,y:g+1,w:l-2,h:c-2,radius:o}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(e,g,l,c),t.strokeRect(e,g,l,c),t.fillStyle=s.backgroundColor,t.fillRect(i,g+1,l-2,c-2))}t.fillStyle=o.labelTextColors[i]}drawBody(t,e,i){const n=this,{body:a}=n,{bodySpacing:o,bodyAlign:s,displayColors:r,boxHeight:c,boxWidth:l}=i,d=Ee(i.bodyFont);let f=d.lineHeight,h=0;const u=gn(i.rtl,n.x,n.width),g=function(i){e.fillText(i,u.x(t.x+h),t.y+f/2),t.y+=f+o},b=u.textAlign(s);let p,m,x,_,y,v,w;for(e.textAlign=s,e.textBaseline="middle",e.font=d.string,t.x=bo(n,b,i),e.fillStyle=i.bodyColor,G(n.beforeBody,g),h=r&&"right"!==b?"center"===s?l/2+1:l+2:0,_=0,v=a.length;_<v;++_){for(p=a[_],m=n.labelTextColors[_],e.fillStyle=m,G(p.before,g),x=p.lines,r&&x.length&&(n._drawColorBox(e,t,_,u,i),f=Math.max(d.lineHeight,c)),y=0,w=x.length;y<w;++y)g(x[y]),f=d.lineHeight;G(p.after,g)}h=0,f=d.lineHeight,G(n.afterBody,g),t.y-=o}drawFooter(t,e,i){const n=this,a=n.footer,o=a.length;let s,r;if(o){const c=gn(i.rtl,n.x,n.width);for(t.x=bo(n,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=c.textAlign(i.footerAlign),e.textBaseline="middle",s=Ee(i.footerFont),e.fillStyle=i.footerColor,e.font=s.string,r=0;r<o;++r)e.fillText(a[r],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:a,yAlign:o}=this,{x:s,y:r}=t,{width:c,height:l}=i,d=n.cornerRadius;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(s+d,r),"top"===o&&this.drawCaret(t,e,i,n),e.lineTo(s+c-d,r),e.quadraticCurveTo(s+c,r,s+c,r+d),"center"===o&&"right"===a&&this.drawCaret(t,e,i,n),e.lineTo(s+c,r+l-d),e.quadraticCurveTo(s+c,r+l,s+c-d,r+l),"bottom"===o&&this.drawCaret(t,e,i,n),e.lineTo(s+d,r+l),e.quadraticCurveTo(s,r+l,s,r+l-d),"center"===o&&"left"===a&&this.drawCaret(t,e,i,n),e.lineTo(s,r+d),e.quadraticCurveTo(s,r,s+d,r),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this,i=e._chart,n=e.$animations,a=n&&n.x,o=n&&n.y;if(a||o){const n=so[t.position].call(e,e._active,e._eventPosition);if(!n)return;const s=e._size=fo(e,t),r=Object.assign({},n,e._size),c=uo(i,t,r),l=go(t,r,c,i);a._to===l.x&&o._to===l.y||(e.xAlign=c.xAlign,e.yAlign=c.yAlign,e.width=s.width,e.height=s.height,e.caretX=n.x,e.caretY=n.y,e._resolveAnimations().update(e,l))}}draw(t){const e=this,i=e.options.setContext(e.getContext());let n=e.opacity;if(!n)return;e._updateAnimationTarget(i);const a={width:e.width,height:e.height},o={x:e.x,y:e.y};n=Math.abs(n)<.001?0:n;const s=Le(i.padding),r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;
2i.enabled&&r&&(t.save(),t.globalAlpha=n,e.drawBackground(o,t,a,i),bn(t,i.textDirection),o.y+=s.top,e.drawTitle(o,t,i),e.drawBody(o,t,i),e.drawFooter(o,t,i),pn(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this,n=i._active,a=t.map((({datasetIndex:t,index:e})=>{const n=i._chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!Z(n,a),s=i._positionChanged(a,e);(o||s)&&(i._active=a,i._eventPosition=e,i.update(!0))}handleEvent(t,e){const i=this,n=i.options,a=i._active||[];let o=!1,s=[];"mouseout"!==t.type&&(s=i._chart.getElementsAtEventForMode(t,n.mode,n,e),n.reverse&&s.reverse());const r=i._positionChanged(s,t);return o=e||!Z(s,a)||r,o&&(i._active=s,(n.enabled||n.external)&&(i._eventPosition={x:t.x,y:t.y},i.update(!0,e))),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:a}=this,o=so[a.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}xo.positioners=so;var _o={id:"tooltip",_element:xo,positioners:so,afterInit(t,e,i){i&&(t.tooltip=new xo({_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,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:V,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:V,beforeBody:V,beforeLabel:V,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 H(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:V,afterBody:V,beforeFooter:V,footer:V,afterFooter:V}},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"]},yo=Object.freeze({__proto__:null,Decimation:Va,Filler:to,Legend:no,Title:oo,Tooltip:_o});class vo extends ji{constructor(t){super(t),this._startValue=void 0,this._valueRange=0}parse(t,e){if(H(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:Vt(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,i){const n=t.indexOf(e);return-1===n?((t,e,i)=>"string"==typeof e?t.push(e)-1:isNaN(e)?null:i)(t,e,i):n!==t.lastIndexOf(e)?i:n}(i,t,q(e,t)),i.length-1)}determineDataLimits(){const t=this,{minDefined:e,maxDefined:i}=t.getUserBounds();let{min:n,max:a}=t.getMinMax(!0);"ticks"===t.options.bounds&&(e||(n=0),i||(a=t.getLabels().length-1)),t.min=n,t.max=a}
2buildTicks(){const t=this,e=t.min,i=t.max,n=t.options.offset,a=[];let o=t.getLabels();o=0===e&&i===o.length-1?o:o.slice(e,i+1),t._valueRange=Math.max(o.length-(n?0:1),1),t._startValue=t.min-(n?.5:0);for(let t=e;t<=i;t++)a.push({value:t});return a}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){const t=this;super.configure(),t.isHorizontal()||(t._reversePixels=!t._reversePixels)}getPixelForValue(t){const e=this;return"number"!=typeof t&&(t=e.parse(t)),null===t?NaN:e.getPixelForDecimal((t-e._startValue)/e._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){const e=this;return Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange)}getBasePixel(){return this.bottom}}function wo(t,e,{horizontal:i,minRotation:n}){const a=At(n),o=(i?Math.sin(a):Math.cos(a))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}vo.id="category",vo.defaults={ticks:{callback:vo.prototype.getLabelForValue}};class Mo extends ji{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 H(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const t=this,{beginAtZero:e}=t.options,{minDefined:i,maxDefined:n}=t.getUserBounds();let{min:a,max:o}=t;const s=t=>a=i?a:t,r=t=>o=n?o:t;if(e){const t=kt(a),e=kt(o);t<0&&e<0?r(0):t>0&&e>0&&s(0)}a===o&&(r(o+1),e||s(a-1)),t.min=a,t.max=o}getTickLimit(){const t=this,e=t.options.ticks;let i,{maxTicksLimit:n,stepSize:a}=e;return a?i=Math.ceil(t.max/a)-Math.floor(t.min/a)+1:(i=t.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this,e=t.options,i=e.ticks;let n=t.getTickLimit();n=Math.max(2,n);const a=function(t,e){const i=[],{bounds:n,step:a,min:o,max:s,precision:r,count:c,maxTicks:l,maxDigits:d,includeBounds:f}=t,h=a||1,u=l-1,{min:g,max:b}=e,p=!H(o),m=!H(s),x=!H(c),_=(b-g)/(d+1);let y,v,w,M,k=St((b-g)/u/h)*h;if(k<1e-14&&!p&&!m)return[{value:g},{value:b}];M=Math.ceil(b/k)-Math.floor(g/k),M>u&&(k=St(M*k/u/h)*h),H(r)||(y=Math.pow(10,r),k=Math.ceil(k*y)/y),"ticks"===n?(v=Math.floor(g/k)*k,w=Math.ceil(b/k)*k):(v=g,w=b),p&&m&&a&&Ot((s-o)/a,k/1e3)?(M=Math.min((s-o)/k,l),k=(s-o)/M,v=o,w=s):x?(v=p?o:v,w=m?s:w,M=c-1,k=(w-v)/M):(M=(w-v)/k,M=Ct(M,Math.round(M),k/1e3)?Math.round(M):Math.ceil(M));const S=Math.max(Lt(k),Lt(v));y=Math.pow(10,H(r)?S:r),v=Math.round(v*y)/y,w=Math.round(w*y)/y;let P=0;for(p&&(f&&v!==o?(i.push({value:o}),v<o&&P++,Ct(Math.round((v+P*k)*y)/y,o,wo(o,_,t))&&P++):v<o&&P++);P<M;++P)i.push({value:Math.round((v+P*k)*y)/y});return m&&f&&w!==s?Ct(i[i.length-1].value,s,wo(s,_,t))?i[i.length-1].value=s:i.push({value:s}):m&&w!==s||i.push({value:w}),i}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:i.precision,step:i.stepSize,count:i.count,maxDigits:t._maxDigits(),horizontal:t.isHorizontal(),minRotation:i.minRotation||0,includeBounds:!1!==i.includeBounds},t._range||t);return"ticks"===e.bounds&&Tt(a,t,"value"),e.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),a}configure(){const t=this,e=t.ticks;let i=t.min,n=t.max;if(super.configure(),t.options.offset&&e.length){const t=(n-i)/Math.max(e.length-1,1)/2;i-=t,n+=t}t._startValue=i,t._endValue=n,t._valueRange=n-i}getLabelForValue(t){return Li(t,this.chart.options.locale)}}class ko extends Mo{determineDataLimits(){const t=this,{min:e,max:i}=t.getMinMax(!0);t.min=$(e)?e:0,t.max=$(i)?i:1,t.handleTickRangeOptions()}computeTickLimit(){const t=this,e=t.isHorizontal(),i=e?t.width:t.height,n=At(t.options.ticks.minRotation),a=(e?Math.sin(n):Math.cos(n))||.001,o=t._resolveTickFontOptions(0);return Math.ceil(i/Math.min(40,o.lineHeight/a))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function So(t){return 1==t/Math.pow(10,Math.floor(Mt(t)))}ko.id="linear",ko.defaults={ticks:{callback:Ii.formatters.numeric}};class Po extends ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Mo.prototype.parse.apply(this,[t,e]);if(0!==i)return $(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const t=this,{min:e,max:i}=t.getMinMax(!0);t.min=$(e)?Math.max(0,e):null,t.max=$(i)?Math.max(0,i):null,t.options.beginAtZero&&(t._zero=!0),t.handleTickRangeOptions()}handleTickRangeOptions(){const t=this,{minDefined:e,maxDefined:i}=t.getUserBounds();let n=t.min,a=t.max;const o=t=>n=e?n:t,s=t=>a=i?a:t,r=(t,e)=>Math.pow(10,Math.floor(Mt(t))+e);n===a&&(n<=0?(o(1),s(10)):(o(r(n,-1)),s(r(a,1)))),n<=0&&o(r(a,-1)),a<=0&&s(r(n,1)),t._zero&&t.min!==t._suggestedMin&&n===r(t.min,0)&&o(r(n,-1)),t.min=n,t.max=a}buildTicks(){const t=this,e=t.options,i=function(t,e){const i=Math.floor(Mt(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),a=[];let o=Y(t.min,Math.pow(10,Math.floor(Mt(e.min)))),s=Math.floor(Mt(o)),r=Math.floor(o/Math.pow(10,s)),c=s<0?Math.pow(10,Math.abs(s)):1;do{a.push({value:o,major:So(o)}),++r,10===r&&(r=1,++s,c=s>=0?1:c),o=Math.round(r*Math.pow(10,s)*c)/c}while(s<i||s===i&&r<n);const l=Y(t.max,o);return a.push({value:l,major:So(o)}),a}({min:t._userMin,max:t._userMax},t);return"ticks"===e.bounds&&Tt(i,t,"value"),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),i}getLabelForValue(t){return void 0===t?"0":Li(t,this.chart.options.locale)}configure(){const t=this,e=t.min;
2super.configure(),t._startValue=Mt(e),t._valueRange=Mt(t.max)-Mt(e)}getPixelForValue(t){const e=this;return void 0!==t&&0!==t||(t=e.min),null===t||isNaN(t)?NaN:e.getPixelForDecimal(t===e.min?0:(Mt(t)-e._startValue)/e._valueRange)}getValueForPixel(t){const e=this,i=e.getDecimalForPixel(t);return Math.pow(10,e._startValue+i*e._valueRange)}}function Do(t){const e=t.ticks;if(e.display&&t.display){const t=Le(e.backdropPadding);return q(e.font&&e.font.size,gt.font.size)+t.height}return 0}function Co(t,e,i,n,a){return t===n||t===a?{start:e-i/2,end:e+i/2}:t<n||t>a?{start:e-i,end:e}:{start:e,end:e+i}}function Oo(t){return 0===t||180===t?"center":t<180?"left":"right"}function To(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function Ao(t,e,i,n){const{ctx:a}=t;if(i)a.arc(t.xCenter,t.yCenter,e,0,pt);else{let i=t.getPointPosition(0,e);a.moveTo(i.x,i.y);for(let o=1;o<n;o++)i=t.getPointPosition(o,e),a.lineTo(i.x,i.y)}}function Ro(t){return Dt(t)?t:0}Po.id="logarithmic",Po.defaults={ticks:{callback:Ii.formatters.logarithmic,major:{enabled:!0}}};class Lo extends Mo{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Do(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2}determineDataLimits(){const t=this,{min:e,max:i}=t.getMinMax(!1);t.min=$(e)&&!isNaN(e)?e:0,t.max=$(i)&&!isNaN(i)?i:0,t.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Do(this.options))}generateTickLabels(t){const e=this;Mo.prototype.generateTickLabels.call(e,t),e._pointLabels=e.getLabels().map(((t,i)=>{const n=K(e.options.pointLabels.callback,[t,i],e);return n||0===n?n:""}))}fit(){const t=this,e=t.options;e.display&&e.pointLabels.display?function(t){const e={l:0,r:t.width,t:0,b:t.height-t.paddingTop},i={};let n,a,o;const s=[],r=[],c=t.getLabels().length;for(n=0;n<c;n++){const c=t.options.pointLabels.setContext(t.getContext(n));r[n]=c.padding,o=t.getPointPosition(n,t.drawingArea+r[n]);const h=Ee(c.font);t.ctx.font=h.string,l=t.ctx,d=h.lineHeight,a=N(f=t._pointLabels[n])?{w:jt(l,l.font,f),h:f.length*d}:{w:l.measureText(f).width,h:d},s[n]=a;const u=t.getIndexAngle(n),g=Rt(u),b=Co(g,o.x,a.w,0,180),p=Co(g,o.y,a.h,90,270);b.start<e.l&&(e.l=b.start,i.l=u),b.end>e.r&&(e.r=b.end,i.r=u),p.start<e.t&&(e.t=p.start,i.t=u),p.end>e.b&&(e.b=p.end,i.b=u)}var l,d,f;t._setReductions(t.drawingArea,e,i),t._pointLabelItems=[];const h=t.options,u=Do(h),g=t.getDistanceFromCenterForValue(h.ticks.reverse?t.min:t.max);for(n=0;n<c;n++){const e=0===n?u/2:0,i=t.getPointPosition(n,g+e+r[n]),a=Rt(t.getIndexAngle(n)),o=s[n];To(a,o,i);const c=Oo(a);let l;l="left"===c?i.x:"center"===c?i.x-o.w/2:i.x-o.w;const d=l+o.w;t._pointLabelItems[n]={x:i.x,y:i.y,textAlign:c,left:l,top:i.y,right:d,bottom:i.y+o.h}}}(t):t.setCenterPoint(0,0,0,0)}_setReductions(t,e,i){const n=this;let a=e.l/Math.sin(i.l),o=Math.max(e.r-n.width,0)/Math.sin(i.r),s=-e.t/Math.cos(i.t),r=-Math.max(e.b-(n.height-n.paddingTop),0)/Math.cos(i.b);a=Ro(a),o=Ro(o),s=Ro(s),r=Ro(r),n.drawingArea=Math.max(t/2,Math.min(Math.floor(t-(a+o)/2),Math.floor(t-(s+r)/2))),n.setCenterPoint(a,o,s,r)}setCenterPoint(t,e,i,n){const a=this,o=a.width-e-a.drawingArea,s=t+a.drawingArea,r=i+a.drawingArea,c=a.height-a.paddingTop-n-a.drawingArea;a.xCenter=Math.floor((s+o)/2+a.left),a.yCenter=Math.floor((r+c)/2+a.top+a.paddingTop)}getIndexAngle(t){return zt(t*(pt/this.getLabels().length)+At(this.options.startAngle||0))}getDistanceFromCenterForValue(t){const e=this;if(H(t))return NaN;const i=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*i:(t-e.min)*i}getValueForDistanceFromCenter(t){if(H(t))return NaN;const e=this,i=t/(e.drawingArea/(e.max-e.min));return e.options.reverse?e.max-i:e.min+i}getPointPosition(t,e){const i=this,n=i.getIndexAngle(t)-yt;return{x:Math.cos(n)*e+i.xCenter,y:Math.sin(n)*e+i.yCenter,angle:n}}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:a}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:a}}
2drawBackground(){const t=this,{backgroundColor:e,grid:{circular:i}}=t.options;if(e){const n=t.ctx;n.save(),n.beginPath(),Ao(t,t.getDistanceFromCenterForValue(t._endValue),i,t.getLabels().length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const t=this,e=t.ctx,i=t.options,{angleLines:n,grid:a}=i,o=t.getLabels().length;let s,r,c;if(i.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let a=e-1;a>=0;a--){const e=n.setContext(t.getContext(a)),o=Ee(e.font),{x:s,y:r,textAlign:c,left:l,top:d,right:f,bottom:h}=t._pointLabelItems[a],{backdropColor:u}=e;if(!H(u)){const t=Le(e.backdropPadding);i.fillStyle=u,i.fillRect(l-t.left,d-t.top,f-l+t.width,h-d+t.height)}Qt(i,t._pointLabels[a],s,r+o.lineHeight/2,o,{color:e.color,textAlign:c,textBaseline:"middle"})}}(t,o),a.display&&t.ticks.forEach(((e,i)=>{if(0!==i){r=t.getDistanceFromCenterForValue(e.value);const n=a.setContext(t.getContext(i-1));!function(t,e,i,n){const a=t.ctx,o=e.circular,{color:s,lineWidth:r}=e;!o&&!n||!s||!r||i<0||(a.save(),a.strokeStyle=s,a.lineWidth=r,a.setLineDash(e.borderDash),a.lineDashOffset=e.borderDashOffset,a.beginPath(),Ao(t,i,o,n),a.closePath(),a.stroke(),a.restore())}(t,n,r,o)}})),n.display){for(e.save(),s=t.getLabels().length-1;s>=0;s--){const a=n.setContext(t.getContext(s)),{color:o,lineWidth:l}=a;l&&o&&(e.lineWidth=l,e.strokeStyle=o,e.setLineDash(a.borderDash),e.lineDashOffset=a.borderDashOffset,r=t.getDistanceFromCenterForValue(i.ticks.reverse?t.min:t.max),c=t.getPointPosition(s,r),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const t=this,e=t.ctx,i=t.options,n=i.ticks;if(!n.display)return;const a=t.getIndexAngle(0);let o,s;e.save(),e.translate(t.xCenter,t.yCenter),e.rotate(a),e.textAlign="center",e.textBaseline="middle",t.ticks.forEach(((a,r)=>{if(0===r&&!i.reverse)return;const c=n.setContext(t.getContext(r)),l=Ee(c.font);if(o=t.getDistanceFromCenterForValue(t.ticks[r].value),c.showLabelBackdrop){s=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const t=Le(c.backdropPadding);e.fillRect(-s/2-t.left,-o-l.size/2-t.top,s+t.width,l.size+t.height)}Qt(e,a.label,0,-o,l,{color:c.color})})),e.restore()}drawTitle(){}}Lo.id="radialLinear",Lo.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ii.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5}},Lo.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Lo.descriptors={angleLines:{_fallback:"grid"}};const Eo={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}},Io=Object.keys(Eo);function Fo(t,e){return t-e}function zo(t,e){if(H(e))return null;const i=t._adapter,{parser:n,round:a,isoWeekday:o}=t._parseOpts;let s=e;return"function"==typeof n&&(s=n(s)),$(s)||(s="string"==typeof n?i.parse(s,n):i.parse(s)),null===s?null:(a&&(s="week"!==a||!Dt(o)&&!0!==o?i.startOf(s,a):i.startOf(s,"isoWeek",o)),+s)}function Bo(t,e,i,n){const a=Io.length;for(let o=Io.indexOf(t);o<a-1;++o){const t=Eo[Io[o]],a=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(a*t.size))<=n)return Io[o]}return Io[a-1]}function Vo(t,e,i){if(i){if(i.length){const{lo:n,hi:a}=te(i,e);t[i[n]>=e?i[n]:i[a]]=!0}}else t[e]=!0}function Wo(t,e,i){const n=[],a={},o=e.length;let s,r;for(s=0;s<o;++s)r=e[s],a[r]=s,n.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,n){const a=t._adapter,o=+a.startOf(e[0].value,n),s=e[e.length-1].value;let r,c;for(r=o;r<=s;r=+a.add(r,1,n))c=i[r],c>=0&&(e[c].major=!0);return e}(t,n,a,i):n}class Ho extends ji{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 ta._date(t.adapters.date);it(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:zo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this,e=t.options,i=t._adapter,n=e.time.unit||"day";let{min:a,max:o,minDefined:s,maxDefined:r}=t.getUserBounds();function c(t){s||isNaN(t.min)||(a=Math.min(a,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}s&&r||(c(t._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||c(t.getMinMax(!1))),a=$(a)&&!isNaN(a)?a:+i.startOf(Date.now(),n),o=$(o)&&!isNaN(o)?o:+i.endOf(Date.now(),n)+1,t.min=Math.min(a,o-1),t.max=Math.max(a+1,o)}_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,e=t.options,i=e.time,n=e.ticks,a="labels"===n.source?t.getLabelTimestamps():t._generate();"ticks"===e.bounds&&a.length&&(t.min=t._userMin||a[0],t.max=t._userMax||a[a.length-1]);const o=t.min,s=ne(a,o,t.max);return t._unit=i.unit||(n.autoSkip?Bo(i.minUnit,t.min,t.max,t._getLabelCapacity(o)
2):function(t,e,i,n,a){for(let o=Io.length-1;o>=Io.indexOf(i);o--){const i=Io[o];if(Eo[i].common&&t._adapter.diff(a,n,i)>=e-1)return i}return Io[i?Io.indexOf(i):0]}(t,s.length,i.minUnit,t.min,t.max)),t._majorUnit=n.major.enabled&&"year"!==t._unit?function(t){for(let e=Io.indexOf(t)+1,i=Io.length;e<i;++e)if(Eo[Io[e]].common)return Io[e]}(t._unit):void 0,t.initOffsets(a),e.reverse&&s.reverse(),Wo(t,s,t._majorUnit)}initOffsets(t){const e=this;let i,n,a=0,o=0;e.options.offset&&t.length&&(i=e.getDecimalForValue(t[0]),a=1===t.length?1-i:(e.getDecimalForValue(t[1])-i)/2,n=e.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-e.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;a=Vt(a,0,s),o=Vt(o,0,s),e._offsets={start:a,end:o,factor:1/(a+1+o)}}_generate(){const t=this,e=t._adapter,i=t.min,n=t.max,a=t.options,o=a.time,s=o.unit||Bo(o.minUnit,i,n,t._getLabelCapacity(i)),r=q(o.stepSize,1),c="week"===s&&o.isoWeekday,l=Dt(c)||!0===c,d={};let f,h,u=i;if(l&&(u=+e.startOf(u,"isoWeek",c)),u=+e.startOf(u,l?"day":s),e.diff(n,i,s)>1e5*r)throw new Error(i+" and "+n+" are too far apart with stepSize of "+r+" "+s);const g="data"===a.ticks.source&&t.getDataTimestamps();for(f=u,h=0;f<n;f=+e.add(f,r,s),h++)Vo(d,f,g);return f!==n&&"ticks"!==a.bounds&&1!==h||Vo(d,f,g),Object.keys(d).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 a=this,o=a.options,s=o.time.displayFormats,r=a._unit,c=a._majorUnit,l=r&&s[r],d=c&&s[c],f=i[e],h=c&&d&&f&&f.major,u=a._adapter.format(t,n||(h?d:l)),g=o.ticks.callback;return g?K(g,[u,e,i],a):u}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){const e=this;return null===t?NaN:(t-e.min)/(e.max-e.min)}getPixelForValue(t){const e=this,i=e._offsets,n=e.getDecimalForValue(t);return e.getPixelForDecimal((i.start+n)*i.factor)}getValueForPixel(t){const e=this,i=e._offsets,n=e.getDecimalForPixel(t)/i.factor-i.end;return e.min+n*(e.max-e.min)}_getLabelSize(t){const e=this,i=e.options.ticks,n=e.ctx.measureText(t).width,a=At(e.isHorizontal()?i.maxRotation:i.minRotation),o=Math.cos(a),s=Math.sin(a),r=e._resolveTickFontOptions(0).size;return{w:n*o+r*s,h:n*s+r*o}}_getLabelCapacity(t){const e=this,i=e.options.time,n=i.displayFormats,a=n[i.unit]||n.millisecond,o=e._tickFormatFunction(t,0,Wo(e,[t],e._majorUnit),a),s=e._getLabelSize(o),r=Math.floor(e.isHorizontal()?e.width/s.w:e.height/s.h)-1;return r>0?r:1}getDataTimestamps(){const t=this;let e,i,n=t._cache.data||[];if(n.length)return n;const a=t.getMatchingVisibleMetas();if(t._normalized&&a.length)return t._cache.data=a[0].controller.getAllParsedValues(t);for(e=0,i=a.length;e<i;++e)n=n.concat(a[e].controller.getAllParsedValues(t));return t._cache.data=t.normalize(n)}getLabelTimestamps(){const t=this,e=t._cache.labels||[];let i,n;if(e.length)return e;const a=t.getLabels();for(i=0,n=a.length;i<n;++i)e.push(zo(t,a[i]));return t._cache.labels=t._normalized?e:t.normalize(e)}normalize(t){return re(t.sort(Fo))}}function No(t,e,i){let n,a,o,s;if(i)n=Math.floor(e),a=Math.ceil(e),o=t[n],s=t[a];else{const i=te(t,e);o=i.lo,s=i.hi,n=t[o],a=t[s]}const r=a-n;return r?o+(s-o)*(e-n)/r:o}Ho.id="time",Ho.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class jo extends Ho{constructor(t){super(t),this._table=[],this._maxIndex=void 0}initOffsets(){const t=this,e=t._getTimestampsForTable();t._table=t.buildLookupTable(e),t._maxIndex=t._table.length-1,super.initOffsets(e)}buildLookupTable(t){const{min:e,max:i}=this;if(!t.length)return[{time:e,pos:0},{time:i,pos:1}];const n=[e];let a,o,s;for(a=0,o=t.length;a<o;++a)s=t[a],s>e&&s<i&&n.push(s);return n.push(i),n}_getTimestampsForTable(){const t=this;let e=t._cache.all||[];if(e.length)return e;const i=t.getDataTimestamps(),n=t.getLabelTimestamps();return e=i.length&&n.length?t.normalize(i.concat(n)):i.length?i:n,e=t._cache.all=e,e}getPixelForValue(t,e){const i=this,n=i._offsets,a=i._normalized&&i._maxIndex>0&&!H(e)?e/i._maxIndex:i.getDecimalForValue(t);return i.getPixelForDecimal((n.start+a)*n.factor)}getDecimalForValue(t){return No(this._table,t)/this._maxIndex}getValueForPixel(t){const e=this,i=e._offsets,n=e.getDecimalForPixel(t)/i.factor-i.end;return No(e._table,n*this._maxIndex,!0)}}jo.id="timeseries",jo.defaults=Ho.defaults;var $o=Object.freeze({__proto__:null,CategoryScale:vo,LinearScale:ko,LogarithmicScale:Po,RadialLinearScale:Lo,TimeScale:Ho,TimeSeriesScale:jo});return Kn.register(ua,$o,Fa,yo),Kn.helpers={...kn},Kn._adapters=ta,Kn.Animation=pi,Kn.Animations=xi,Kn.animator=s,Kn.controllers=Pn.controllers.items,Kn.DatasetController=Ti,Kn.Element=Ai,Kn.elements=Fa,Kn.Interaction=Pe,Kn.layouts=Ue,Kn.platforms=li,Kn.Scale=ji,Kn.Ticks=Ii,Object.assign(Kn,ua,$o,Fa,yo,li),Kn.Chart=Kn,"undefined"!=typeof window&&(window.Chart=Kn),Kn}()},3447:function(t){"use strict";var e,i,n,a,o=function(){var t=Array.prototype,e=function(e,i,n){return t.slice.apply(e,t.slice.call(arguments,1
2))},i="function",n=1e9,a=function(t,n,o,s){if(0==(n|=0))return[];if(typeof t!==i){var r=a.listSchemes(t,n);if(!r.length)return null;t=r[(o||0)%r.length]}var c=e(arguments,2);return c[0]=n,t.apply(t,c)};a.Scheme=function(t,i){var o={},s=0,r=n,c=function(){if(arguments.length<=1)return l.color_func.bind(l);var t=e(arguments);return function(e){return t[0]=e,l.color_func.apply(l,t)}},l=function(t,e){if(!(t|=0))return[];var i=t;if((t=Math.abs(t))<=s){for(var n=Math.max(t,r);!(n in o);++n);var d=o[n];if(n>t){var f="shrinking_takes_head"in d?d.shrinking_takes_head:l.shrinking_takes_head;if(!f)return a.generate((function(t){return d[Math.round(t)]}),i,0,d.length-1);d=d.slice(0,t),n=t}return d=d.slice(),i<0&&d.reverse(),d}return l.color_func?a.generate(c.apply(l,arguments),i,0,1,l.color_func_cyclic):null};return l.scheme_name=t,l.groups=i?"string"==typeof i?[i]:i:[],l.max=0,l.cbf_max=n,l.addPalette=function(t,e){var i=t.length;i&&(o[i]=t,r=Math.min(r,i),s=Math.max(s,i),l.max=Math.max(l.max,i),e||1==i||(l.cbf_max=Math.min(l.cbf_max,i-1)))},l.addPalettes=function(t,e,i){e=e||t.length;for(var n=0;n<e;++n)n in t&&l.addPalette(t[n],!0);l.cbf_max=Math.min(l.cbf_max,i||1)},l.shrinkByTakingHead=function(t,e){void 0!==e?e in o&&(o[e].shrinking_takes_head=!!t):l.shrinking_takes_head=!!t},l.setColorFunction=function(t,e,i){l.color_func=t,l.color_func_cyclic=!!i,l.max=n,e||l.cbf_max!==n||(l.cbf_max=1)},l.color=function(t,e){return l.color_func?l.color_func.apply(this,arguments):null},l},a.Scheme.fromPalettes=function(t,i,n,o,s){var r=a.Scheme(t,i);return r.addPalettes.apply(r,e(arguments,2)),r},a.Scheme.withColorFunction=function(t,i,n,o,s){var r=a.Scheme(t,i);return r.setColorFunction.apply(r,e(arguments,2)),r};var o={};a.register=function(t){o["n-"+t.scheme_name]=[t],t.groups.forEach((function(e){(o["g-"+e]=o["g-"+e]||[]).push(t)})),(o["g-all"]=o["g-all"]||[]).push(t)},a.listSchemes=function(t,e){e?e<0&&(e=-e):e=2;var i=[];return("string"==typeof t?[t]:t).forEach((function(t){var n="-cbf"===t.substring(t.length-4);n&&(t=t.substring(0,t.length-4));for(var a,s=o["g-"+t]||o["n-"+t]||[],r=0;a=s[r];++r)(n?a.cbf:a.max)>=e&&i.push(a)})),i.sort((function(t,e){return t.scheme_name>=e.scheme_name?t.scheme_name>e.scheme_name?1:0:-1})),i},a.generate=function(t,e,i,n,a){if(Math.abs(e)<1)return[];if(i=void 0===i?0:i,n=void 0===n?1:n,Math.abs(e)<2)return[t(i)];for(var o=Math.abs(e),s=i,r=[],c=(n-i)/(a?o:o-1);--o>=0;s+=c)r.push(t(s));return e<0&&r.reverse(),r};var s=function(t){return t>0?t<1?t:1:0};return a.rgbColor=function(t,e,i){return[t,e,i].map((function(t){return 1==(t=Number(Math.round(255*s(t))).toString(16)).length?"0"+t:t})).join("")},a.linearRgbColor=function(t,e,i){return[t,e,i].map((function(t){return(t=s(t))<=.0031308?t*=12.92:t=1.055*Math.pow(t,1/2.4)-.055,1==(t=Number(Math.round(255*t)).toString(16)).length?"0"+t:t})).join("")},a.hsvColor=function(t,e,i){t*=6;var n=void 0===e?1:s(e),o=void 0===i?1:s(i),r=o*(1-n*Math.abs(t%2-1)),c=o*(1-n);switch(Math.floor(t)%6){case 0:return a.rgbColor(o,r,c);case 1:return a.rgbColor(r,o,c);case 2:return a.rgbColor(c,o,r);case 3:return a.rgbColor(c,r,o);case 4:return a.rgbColor(r,c,o);default:return a.rgbColor(o,c,r)}},a.register(a.Scheme.withColorFunction("rainbow","qualitative",a.hsvColor,!1,!0)),a}();o.ColorFunction,o.Palette,o.PalettesList,o.SchemeType,(e=o.Scheme.fromPalettes("mpn65","qualitative",[["ff0029","377eb8","66a61e","984ea3","00d2d5","ff7f00","af8d00","7f80cd","b3e900","c42e60","a65628","f781bf","8dd3c7","bebada","fb8072","80b1d3","fdb462","fccde5","bc80bd","ffed6f","c4eaff","cf8c00","1b9e77","d95f02","e7298a","e6ab02","a6761d","0097ff","00d067","000000","252525","525252","737373","969696","bdbdbd","f43600","4ba93b","5779bb","927acc","97ee3f","bf3947","9f5b00","f48758","8caed6","f2b94f","eff26e","e43872","d9b100","9d7a00","698cff","d9d9d9","00d27e","d06800","009f82","c49200","cbe8ff","fecddf","c27eb6","8cd2ce","c4b8d9","f883b0","a49100","f48800","27d0df","a04a9b"]])).shrinkByTakingHead(!0),o.register(e),i=o.rgbColor,n=function(t,e){for(var i=arguments.length-1,n=arguments[i];i>1;
2)n=n*t+arguments[--i];return n},a=function(t){var e=n(Math.abs(t),1,.278393,.230389,972e-6,.078108);return e*=e,e=1-1/(e*=e),t<0?-e:e},o.register(o.Scheme.fromPalettes("tol","qualitative",[["4477aa"],["4477aa","cc6677"],["4477aa","ddcc77","cc6677"],["4477aa","117733","ddcc77","cc6677"],["332288","88ccee","117733","ddcc77","cc6677"],["332288","88ccee","117733","ddcc77","cc6677","aa4499"],["332288","88ccee","44aa99","117733","ddcc77","cc6677","aa4499"],["332288","88ccee","44aa99","117733","999933","ddcc77","cc6677","aa4499"],["332288","88ccee","44aa99","117733","999933","ddcc77","cc6677","882255","aa4499"],["332288","88ccee","44aa99","117733","999933","ddcc77","661100","cc6677","882255","aa4499"],["332288","6699cc","88ccee","44aa99","117733","999933","ddcc77","661100","cc6677","882255","aa4499"],["332288","6699cc","88ccee","44aa99","117733","999933","ddcc77","661100","cc6677","aa4466","882255","aa4499"]],12,12)),o.tolSequentialColor=function(t){return i(1-.392*(1+a((t-.869)/.255)),1.021-.456*(1+a((t-.527)/.376)),1-.493*(1+a((t-.272)/.309)))},o.register(o.Scheme.withColorFunction("tol-sq","sequential",o.tolSequentialColor,!0)),o.tolDivergingColor=function(t){var e=n(t,.572,1.524,-1.811)/n(t,1,-.291,.1574);return i(n(t,.235,-2.13,26.92,-65.5,63.5,-22.36),e*e,1/n(t,1.579,-4.03,12.92,-31.4,48.6,-23.36))},o.register(o.Scheme.withColorFunction("tol-dv","diverging",o.tolDivergingColor,!0)),o.tolRainbowColor=function(t){return i(n(t,.472,-.567,4.05)/n(t,1,8.72,-19.17,14.1),n(t,.108932,-1.22635,27.284,-98.577,163.3,-131.395,40.634),1/n(t,1.97,3.54,-68.5,243,-297,125))},o.register(o.Scheme.withColorFunction("tol-rainbow","qualitative",o.tolRainbowColor,!0)),o.register(o.Scheme.fromPalettes("sol-base","sequential",[["002b36","073642","586e75","657b83","839496","93a1a1","eee8d5","fdf6e3"]],1,8)),o.register(o.Scheme.fromPalettes("sol-accent","qualitative",[["b58900","cb4b16","dc322f","d33682","6c71c4","268bd2","2aa198","859900"]])),function(){var t={YlGn:{type:"sequential",cbf:42,3:["f7fcb9","addd8e","31a354"],4:["ffffcc","c2e699","78c679","238443"],5:["ffffcc","c2e699","78c679","31a354","006837"],
26:["ffffcc","d9f0a3","addd8e","78c679","31a354","006837"],7:["ffffcc","d9f0a3","addd8e","78c679","41ab5d","238443","005a32"],8:["ffffe5","f7fcb9","d9f0a3","addd8e","78c679","41ab5d","238443","005a32"],9:["ffffe5","f7fcb9","d9f0a3","addd8e","78c679","41ab5d","238443","006837","004529"]},YlGnBu:{type:"sequential",cbf:42,3:["edf8b1","7fcdbb","2c7fb8"],4:["ffffcc","a1dab4","41b6c4","225ea8"],5:["ffffcc","a1dab4","41b6c4","2c7fb8","253494"],6:["ffffcc","c7e9b4","7fcdbb","41b6c4","2c7fb8","253494"],7:["ffffcc","c7e9b4","7fcdbb","41b6c4","1d91c0","225ea8","0c2c84"],8:["ffffd9","edf8b1","c7e9b4","7fcdbb","41b6c4","1d91c0","225ea8","0c2c84"],9:["ffffd9","edf8b1","c7e9b4","7fcdbb","41b6c4","1d91c0","225ea8","253494","081d58"]},GnBu:{type:"sequential",cbf:42,3:["e0f3db","a8ddb5","43a2ca"],4:["f0f9e8","bae4bc","7bccc4","2b8cbe"],5:["f0f9e8","bae4bc","7bccc4","43a2ca","0868ac"],6:["f0f9e8","ccebc5","a8ddb5","7bccc4","43a2ca","0868ac"],7:["f0f9e8","ccebc5","a8ddb5","7bccc4","4eb3d3","2b8cbe","08589e"],8:["f7fcf0","e0f3db","ccebc5","a8ddb5","7bccc4","4eb3d3","2b8cbe","08589e"],9:["f7fcf0","e0f3db","ccebc5","a8ddb5","7bccc4","4eb3d3","2b8cbe","0868ac","084081"]},BuGn:{type:"sequential",cbf:42,3:["e5f5f9","99d8c9","2ca25f"],4:["edf8fb","b2e2e2","66c2a4","238b45"],5:["edf8fb","b2e2e2","66c2a4","2ca25f","006d2c"],6:["edf8fb","ccece6","99d8c9","66c2a4","2ca25f","006d2c"],7:["edf8fb","ccece6","99d8c9","66c2a4","41ae76","238b45","005824"],8:["f7fcfd","e5f5f9","ccece6","99d8c9","66c2a4","41ae76","238b45","005824"],9:["f7fcfd","e5f5f9","ccece6","99d8c9","66c2a4","41ae76","238b45","006d2c","00441b"]},PuBuGn:{type:"sequential",cbf:42,3:["ece2f0","a6bddb","1c9099"],4:["f6eff7","bdc9e1","67a9cf","02818a"],5:["f6eff7","bdc9e1","67a9cf","1c9099","016c59"],6:["f6eff7","d0d1e6","a6bddb","67a9cf","1c9099","016c59"],7:["f6eff7","d0d1e6","a6bddb","67a9cf","3690c0","02818a","016450"],8:["fff7fb","ece2f0","d0d1e6","a6bddb","67a9cf","3690c0","02818a","016450"],9:["fff7fb","ece2f0","d0d1e6","a6bddb","67a9cf","3690c0","02818a","016c59","014636"]},PuBu:{type:"sequential",cbf:42,3:["ece7f2","a6bddb","2b8cbe"],4:["f1eef6","bdc9e1","74a9cf","0570b0"],5:["f1eef6","bdc9e1","74a9cf","2b8cbe","045a8d"],6:["f1eef6","d0d1e6","a6bddb","74a9cf","2b8cbe","045a8d"],7:["f1eef6","d0d1e6","a6bddb","74a9cf","3690c0","0570b0","034e7b"],8:["fff7fb","ece7f2","d0d1e6","a6bddb","74a9cf","3690c0","0570b0","034e7b"],9:["fff7fb","ece7f2","d0d1e6","a6bddb","74a9cf","3690c0","0570b0","045a8d","023858"]},BuPu:{type:"sequential",cbf:42,3:["e0ecf4","9ebcda","8856a7"],4:["edf8fb","b3cde3","8c96c6","88419d"],5:["edf8fb","b3cde3","8c96c6","8856a7","810f7c"],6:["edf8fb","bfd3e6","9ebcda","8c96c6","8856a7","810f7c"],7:["edf8fb","bfd3e6","9ebcda","8c96c6","8c6bb1","88419d","6e016b"],8:["f7fcfd","e0ecf4","bfd3e6","9ebcda","8c96c6","8c6bb1","88419d","6e016b"],9:["f7fcfd","e0ecf4","bfd3e6","9ebcda","8c96c6","8c6bb1","88419d","810f7c","4d004b"]},RdPu:{type:"sequential",cbf:42,3:["fde0dd","fa9fb5","c51b8a"],4:["feebe2","fbb4b9","f768a1","ae017e"],5:["feebe2","fbb4b9","f768a1","c51b8a","7a0177"],6:["feebe2","fcc5c0","fa9fb5","f768a1","c51b8a","7a0177"],7:["feebe2","fcc5c0","fa9fb5","f768a1","dd3497","ae017e","7a0177"],8:["fff7f3","fde0dd","fcc5c0","fa9fb5","f768a1","dd3497","ae017e","7a0177"],9:["fff7f3","fde0dd","fcc5c0","fa9fb5","f768a1","dd3497","ae017e","7a0177","49006a"]},PuRd:{type:"sequential",cbf:42,3:["e7e1ef","c994c7","dd1c77"],4:["f1eef6","d7b5d8","df65b0","ce1256"],5:["f1eef6","d7b5d8","df65b0","dd1c77","980043"],6:["f1eef6","d4b9da","c994c7","df65b0","dd1c77","980043"],7:["f1eef6","d4b9da","c994c7","df65b0","e7298a","ce1256","91003f"],8:["f7f4f9","e7e1ef","d4b9da","c994c7","df65b0","e7298a","ce1256","91003f"],9:["f7f4f9","e7e1ef","d4b9da","c994c7","df65b0","e7298a","ce1256","980043","67001f"]},OrRd:{type:"sequential",cbf:42,3:["fee8c8","fdbb84","e34a33"],4:["fef0d9","fdcc8a","fc8d59","d7301f"],5:["fef0d9","fdcc8a","fc8d59","e34a33","b30000"],6:["fef0d9","fdd49e","fdbb84","fc8d59","e34a33","b30000"],7:["fef0d9","fdd49e","fdbb84","fc8d59","ef6548","d7301f","990000"],8:["fff7ec","fee8c8","fdd49e","fdbb84","fc8d59","ef6548","d7301f","990000"],9:["fff7ec","fee8c8","fdd49e","fdbb84","fc8d59","ef6548","d7301f","b30000","7f0000"]},YlOrRd:{type:"sequential",cbf:42,3:["ffeda0","feb24c","f03b20"],4:["ffffb2","fecc5c","fd8d3c","e31a1c"],5:["ffffb2","fecc5c","fd8d3c","f03b20","bd0026"],6:["ffffb2","fed976","feb24c","fd8d3c","f03b20","bd0026"],7:["ffffb2","fed976","feb24c","fd8d3c","fc4e2a","e31a1c","b10026"],8:["ffffcc","ffeda0","fed976","feb24c","fd8d3c","fc4e2a","e31a1c","b10026"],9:["ffffcc","ffeda0","fed976","feb24c","fd8d3c","fc4e2a","e31a1c","bd0026","800026"]},YlOrBr:{type:"sequential",cbf:42,3:["fff7bc","fec44f","d95f0e"],4:["ffffd4","fed98e","fe9929","cc4c02"],5:["ffffd4","fed98e","fe9929","d95f0e","993404"],6:["ffffd4","fee391","fec44f","fe9929","d95f0e","993404"],7:["ffffd4","fee391","fec44f","fe9929","ec7014","cc4c02","8c2d04"],8:["ffffe5","fff7bc","fee391","fec44f","fe9929","ec7014","cc4c02","8c2d04"],9:["ffffe5","fff7bc","fee391","fec44f","fe9929","ec7014","cc4c02","993404","662506"]},Purples:{type:"sequential",cbf:42,3:["efedf5","bcbddc","756bb1"],4:["f2f0f7","cbc9e2","9e9ac8","6a51a3"],5:["f2f0f7","cbc9e2","9e9ac8","756bb1","54278f"],6:["f2f0f7","dadaeb","bcbddc","9e9ac8","756bb1","54278f"],7:["f2f0f7","dadaeb","bcbddc","9e9ac8","807dba","6a51a3","4a1486"],8:["fcfbfd","efedf5","dadaeb","bcbddc","9e9ac8","807dba","6a51a3","4a1486"],9:["fcfbfd","efedf5","dadaeb","bcbddc","9e9ac8","807dba","6a51a3","54278f","3f007d"]},Blues:{type:"sequential",cbf:42,3:["deebf7","9ecae1","3182bd"],4:["eff3ff","bdd7e7","6baed6","2171b5"],5:["eff3ff","bdd7e7","6baed6","3182bd","08519c"],6:["eff3ff","c6dbef","9ecae1","6baed6","3182bd","08519c"],7:["eff3ff","c6dbef","9ecae1","6baed6","4292c6","2171b5","084594"],8:["f7fbff","deebf7","c6dbef","9ecae1","6baed6","4292c6","2171b5","084594"],9:["f7fbff","deebf7","c6dbef","9ecae1","6baed6","4292c6","2171b5","08519c","08306b"]},Greens:{type:"sequential",cbf:42,3:["e5f5e0","a1d99b","31a354"],4:["edf8e9","bae4b3","74c476","238b45"],5:["edf8e9","bae4b3","74c476","31a354","006d2c"],6:["edf8e9","c7e9c0","a1d99b","74c476","31a354","006d2c"],7:["edf8e9","c7e9c0","a1d99b","74c476","41ab5d","238b45","005a32"],8:["f7fcf5","e5f5e0","c7e9c0","a1d99b","74c476","41ab5d","238b45","005a32"],9:["f7fcf5","e5f5e0","c7e9c0","a1d99b","74c476","41ab5d","238b45","006d2c","00441b"]},Oranges:{type:"sequential",cbf:42,3:["fee6ce","fdae6b","e6550d"],4:["feedde","fdbe85","fd8d3c","d94701"],5:["feedde","fdbe85","fd8d3c","e6550d","a63603"],6:["feedde","fdd0a2","fdae6b","fd8d3c","e6550d","a63603"],7:["feedde","fdd0a2","fdae6b","fd8d3c","f16913","d94801","8c2d04"],8:["fff5eb","fee6ce","fdd0a2","fdae6b","fd8d3c","f16913","d94801","8c2d04"],9:["fff5eb","fee6ce","fdd0a2","fdae6b","fd8d3c","f16913","d94801","a63603","7f2704"]},Reds:{type:"sequential",cbf:42,3:["fee0d2","fc9272","de2d26"],4:["fee5d9","fcae91","fb6a4a","cb181d"],5:["fee5d9","fcae91","fb6a4a","de2d26","a50f15"],6:["fee5d9","fcbba1","fc9272","fb6a4a","de2d26","a50f15"],7:["fee5d9","fcbba1","fc9272","fb6a4a","ef3b2c","cb181d","99000d"],8:["fff5f0","fee0d2","fcbba1","fc9272","fb6a4a","ef3b2c","cb181d","99000d"],9:["fff5f0","fee0d2","fcbba1","fc9272","fb6a4a","ef3b2c","cb181d","a50f15","67000d"]},Greys:{type:"sequential",cbf:42,3:["f0f0f0","bdbdbd","636363"],4:["f7f7f7","cccccc","969696","525252"],5:["f7f7f7","cccccc","969696","636363","252525"],6:["f7f7f7","d9d9d9","bdbdbd","969696","636363","252525"],7:["f7f7f7","d9d9d9","bdbdbd","969696","737373","525252","252525"],8:["ffffff","f0f0f0","d9d9d9","bdbdbd","969696","737373","525252","252525"],9:["ffffff","f0f0f0","d9d9d9","bdbdbd","969696","737373","525252","252525","000000"]},PuOr:{type:"diverging",cbf:42,3:["f1a340","f7f7f7","998ec3"],4:["e66101","fdb863","b2abd2","5e3c99"],5:["e66101","fdb863","f7f7f7","b2abd2","5e3c99"],6:["b35806","f1a340","fee0b
26","d8daeb","998ec3","542788"],7:["b35806","f1a340","fee0b6","f7f7f7","d8daeb","998ec3","542788"],8:["b35806","e08214","fdb863","fee0b6","d8daeb","b2abd2","8073ac","542788"],9:["b35806","e08214","fdb863","fee0b6","f7f7f7","d8daeb","b2abd2","8073ac","542788"],10:["7f3b08","b35806","e08214","fdb863","fee0b6","d8daeb","b2abd2","8073ac","542788","2d004b"],11:["7f3b08","b35806","e08214","fdb863","fee0b6","f7f7f7","d8daeb","b2abd2","8073ac","542788","2d004b"]},BrBG:{type:"diverging",cbf:42,3:["d8b365","f5f5f5","5ab4ac"],4:["a6611a","dfc27d","80cdc1","018571"],5:["a6611a","dfc27d","f5f5f5","80cdc1","018571"],6:["8c510a","d8b365","f6e8c3","c7eae5","5ab4ac","01665e"],7:["8c510a","d8b365","f6e8c3","f5f5f5","c7eae5","5ab4ac","01665e"],8:["8c510a","bf812d","dfc27d","f6e8c3","c7eae5","80cdc1","35978f","01665e"],9:["8c510a","bf812d","dfc27d","f6e8c3","f5f5f5","c7eae5","80cdc1","35978f","01665e"],10:["543005","8c510a","bf812d","dfc27d","f6e8c3","c7eae5","80cdc1","35978f","01665e","003c30"],11:["543005","8c510a","bf812d","dfc27d","f6e8c3","f5f5f5","c7eae5","80cdc1","35978f","01665e","003c30"]},PRGn:{type:"diverging",cbf:42,3:["af8dc3","f7f7f7","7fbf7b"],4:["7b3294","c2a5cf","a6dba0","008837"],5:["7b3294","c2a5cf","f7f7f7","a6dba0","008837"],6:["762a83","af8dc3","e7d4e8","d9f0d3","7fbf7b","1b7837"],7:["762a83","af8dc3","e7d4e8","f7f7f7","d9f0d3","7fbf7b","1b7837"],8:["762a83","9970ab","c2a5cf","e7d4e8","d9f0d3","a6dba0","5aae61","1b7837"],9:["762a83","9970ab","c2a5cf","e7d4e8","f7f7f7","d9f0d3","a6dba0","5aae61","1b7837"],10:["40004b","762a83","9970ab","c2a5cf","e7d4e8","d9f0d3","a6dba0","5aae61","1b7837","00441b"],11:["40004b","762a83","9970ab","c2a5cf","e7d4e8","f7f7f7","d9f0d3","a6dba0","5aae61","1b7837","00441b"]},PiYG:{type:"diverging",cbf:42,3:["e9a3c9","f7f7f7","a1d76a"],4:["d01c8b","f1b6da","b8e186","4dac26"],5:["d01c8b","f1b6da","f7f7f7","b8e186","4dac26"],6:["c51b7d","e9a3c9","fde0ef","e6f5d0","a1d76a","4d9221"],7:["c51b7d","e9a3c9","fde0ef","f7f7f7","e6f5d0","a1d76a","4d9221"],8:["c51b7d","de77ae","f1b6da","fde0ef","e6f5d0","b8e186","7fbc41","4d9221"],9:["c51b7d","de77ae","f1b6da","fde0ef","f7f7f7","e6f5d0","b8e186","7fbc41","4d9221"],10:["8e0152","c51b7d","de77ae","f1b6da","fde0ef","e6f5d0","b8e186","7fbc41","4d9221","276419"],11:["8e0152","c51b7d","de77ae","f1b6da","fde0ef","f7f7f7","e6f5d0","b8e186","7fbc41","4d9221","276419"]},RdBu:{type:"diverging",cbf:42,3:["ef8a62","f7f7f7","67a9cf"],4:["ca0020","f4a582","92c5de","0571b0"],5:["ca0020","f4a582","f7f7f7","92c5de","0571b0"],6:["b2182b","ef8a62","fddbc7","d1e5f0","67a9cf","2166ac"],7:["b2182b","ef8a62","fddbc7","f7f7f7","d1e5f0","67a9cf","2166ac"],8:["b2182b","d6604d","f4a582","fddbc7","d1e5f0","92c5de","4393c3","2166ac"],9:["b2182b","d6604d","f4a582","fddbc7","f7f7f7","d1e5f0","92c5de","4393c3","2166ac"],10:["67001f","b2182b","d6604d","f4a582","fddbc7","d1e5f0","92c5de","4393c3","2166ac","053061"],11:["67001f","b2182b","d6604d","f4a582","fddbc7","f7f7f7","d1e5f0","92c5de","4393c3","2166ac","053061"]},RdGy:{type:"diverging",cbf:42,3:["ef8a62","ffffff","999999"],4:["ca0020","f4a582","bababa","404040"],5:["ca0020","f4a582","ffffff","bababa","404040"],6:["b2182b","ef8a62","fddbc7","e0e0e0","999999","4d4d4d"],7:["b2182b","ef8a62","fddbc7","ffffff","e0e0e0","999999","4d4d4d"],8:["b2182b","d6604d","f4a582","fddbc7","e0e0e0","bababa","878787","4d4d4d"],9:["b2182b","d6604d","f4a582","fddbc7","ffffff","e0e0e0","bababa","878787","4d4d4d"],10:["67001f","b2182b","d6604d","f4a582","fddbc7","e0e0e0","bababa","878787","4d4d4d","1a1a1a"],11:["67001f","b2182b","d6604d","f4a582","fddbc7","ffffff","e0e0e0","bababa","878787","4d4d4d","1a1a1a"]},RdYlBu:{type:"diverging",cbf:42,3:["fc8d59","ffffbf","91bfdb"],4:["d7191c","fdae61","abd9e9","2c7bb6"],5:["d7191c","fdae61","ffffbf","abd9e9","2c7bb6"],6:["d73027","fc8d59","fee090","e0f3f8","91bfdb","4575b4"],7:["d73027","fc8d59","fee090","ffffbf","e0f3f8","91bfdb","4575b4"],8:["d73027","f46d43","fdae61","fee090","e0f3f8","abd9e9","74add1","4575b4"],9:["d73027","f46d43","fdae61","fee090","ffffbf","e0f3f8","abd9e9","74add1","4575b4"],10:["a50026","d
273027","f46d43","fdae61","fee090","e0f3f8","abd9e9","74add1","4575b4","313695"],11:["a50026","d73027","f46d43","fdae61","fee090","ffffbf","e0f3f8","abd9e9","74add1","4575b4","313695"]},Spectral:{type:"diverging",cbf:0,3:["fc8d59","ffffbf","99d594"],4:["d7191c","fdae61","abdda4","2b83ba"],5:["d7191c","fdae61","ffffbf","abdda4","2b83ba"],6:["d53e4f","fc8d59","fee08b","e6f598","99d594","3288bd"],7:["d53e4f","fc8d59","fee08b","ffffbf","e6f598","99d594","3288bd"],8:["d53e4f","f46d43","fdae61","fee08b","e6f598","abdda4","66c2a5","3288bd"],9:["d53e4f","f46d43","fdae61","fee08b","ffffbf","e6f598","abdda4","66c2a5","3288bd"],10:["9e0142","d53e4f","f46d43","fdae61","fee08b","e6f598","abdda4","66c2a5","3288bd","5e4fa2"],11:["9e0142","d53e4f","f46d43","fdae61","fee08b","ffffbf","e6f598","abdda4","66c2a5","3288bd","5e4fa2"]},RdYlGn:{type:"diverging",cbf:0,3:["fc8d59","ffffbf","91cf60"],4:["d7191c","fdae61","a6d96a","1a9641"],5:["d7191c","fdae61","ffffbf","a6d96a","1a9641"],6:["d73027","fc8d59","fee08b","d9ef8b","91cf60","1a9850"],7:["d73027","fc8d59","fee08b","ffffbf","d9ef8b","91cf60","1a9850"],8:["d73027","f46d43","fdae61","fee08b","d9ef8b","a6d96a","66bd63","1a9850"],9:["d73027","f46d43","fdae61","fee08b","ffffbf","d9ef8b","a6d96a","66bd63","1a9850"],10:["a50026","d
273027","f46d43","fdae61","fee08b","d9ef8b","a6d96a","66bd63","1a9850","006837"],11:["a50026","d73027","f46d43","fdae61","fee08b","ffffbf","d9ef8b","a6d96a","66bd63","1a9850","006837"]},Accent:{type:"qualitative",cbf:0,3:["7fc97f","beaed4","fdc086"],4:["7fc97f","beaed4","fdc086","ffff99"],5:["7fc97f","beaed4","fdc086","ffff99","386cb0"],6:["7fc97f","beaed4","fdc086","ffff99","386cb0","f0027f"],7:["7fc97f","beaed4","fdc086","ffff99","386cb0","f0027f","bf5b17"],8:["7fc97f","beaed4","fdc086","ffff99","386cb0","f0027f","bf5b17","666666"]},Dark2:{type:"qualitative",cbf:3,3:["1b9e77","d95f02","7570b3"],4:["1b9e77","d95f02","7570b3","e7298a"],5:["1b9e77","d95f02","7570b3","e7298a","66a61e"],6:["1b9e77","d95f02","7570b3","e7298a","66a61e","e6ab02"],7:["1b9e77","d95f02","7570b3","e7298a","66a61e","e6ab02","a6761d"],8:["1b9e77","d95f02","7570b3","e7298a","66a61e","e6ab02","a6761d","666666"]},Paired:{type:"qualitative",cbf:4,3:["a6cee3","1f78b4","b2df8a"],4:["a6cee3","1f78b4","b2df8a","33a02c"],5:["a6cee3","1f78b4","b2df8a","33a02c","fb9a99"],6:["a6cee3","1f78b4","b2df8a","33a02c","fb9a99","e31a1c"],7:["a6cee3","1f78b4","b2df8a","33a02c","fb9a99","e31a1c","fdbf6f"],8:["a6cee3","1f78b4","b2df8a","33a02c","fb9a99","e31a1c","fdbf6f","ff7f00"],9:["a6cee3","1f78b4","b2df8a","33a02c","fb9a99","e31a1c","fdbf6f","ff7f00","cab2d6"],10:["a6cee3","1f78b4","b2df8a","33a02c","fb9a99","e31a1c","fdbf6f","ff7f00","cab2d6","6a3d9a"],11:["a6cee3","1f78b4","b2df8a","33a02c","fb9a99","e31a1c","fdbf6f","ff7f00","cab2d6","6a3d9a","ffff99"],12:["a6cee3","1f78b4","b2df8a","33a02c","fb9a99","e31a1c","fdbf6f","ff7f00","cab2d6","6a3d9a","ffff99","b15928"]},Pastel1:{type:"qualitative",cbf:0,3:["fbb4ae","b3cde3","ccebc5"],4:["fbb4ae","b3cde3","ccebc5","decbe4"],5:["fbb4ae","b3cde3","ccebc5","decbe4","fed9a6"],6:["fbb4ae","b3cde3","ccebc5","decbe4","fed9a6","ffffcc"],7:["fbb4ae","b3cde3","ccebc5","decbe4","fed9a6","ffffcc","e5d8bd"],8:["fbb4ae","b3cde3","ccebc5","decbe4","fed9a6","ffffcc","e5d8bd","fddaec"],9:["fbb4ae","b3cde3","ccebc5","decbe4","fed9a6","ffffcc","e5d8bd","fddaec","f2f2f2"]},Pastel2:{type:"qualitative",cbf:0,3:["b3e2cd","fdcdac","cbd5e8"],4:["b3e2cd","fdcdac","cbd5e8","f4cae4"],5:["b3e2cd","fdcdac","cbd5e8","f4cae4","e6f5c9"],6:["b3e2cd","fdcdac","cbd5e8","f4cae4","e6f5c9","fff2ae"],7:["b3e2cd","fdcdac","cbd5e8","f4cae4","e6f5c9","fff2ae","f1e2cc"],8:["b3e2cd","fdcdac","cbd5e8","f4cae4","e6f5c9","fff2ae","f1e2cc","cccccc"]},Set1:{type:"qualitative",cbf:0,3:["e41a1c","377eb8","4daf4a"],4:["e41a1c","377eb8","4daf4a","984ea3"],5:["e41a1c","377eb8","4daf4a","984ea3","ff7f00"],6:["e41a1c","377eb8","4daf4a","984ea3","ff7f00","ffff33"],7:["e41a1c","377eb8","4daf4a","984ea3","ff7f00","ffff33","a65628"],8:["e41a1c","377eb8","4daf4a","984ea3","ff7f00","ffff33","a65628","f781bf"],9:["e41a1c","377eb8","4daf4a","984ea3","ff7f00","ffff33","a65628","f781bf","999999"]},Set2:{type:"qualitative",cbf:3,3:["66c2a5","fc8d62","8da0cb"],4:["66c2a5","fc8d62","8da0cb","e78ac3"],5:["66c2a5","fc8d62","8da0cb","e78ac3","a6d854"],6:["66c2a5","fc8d62","8da0cb","e78ac3","a6d854","ffd92f"],7:["66c2a5","fc8d62","8da0cb","e78ac3","a6d854","ffd92f","e5c494"],8:["66c2a5","fc8d62","8da0cb","e78ac3","a6d854","ffd92f","e5c494","b3b3b3"]},Set3:{type:"qualitative",cbf:0,3:["8dd3c7","ffffb3","bebada"],4:["8dd3c7","ffffb3","bebada","fb8072"],5:["8dd3c7","ffffb3","bebada","fb8072","80b1d3"],6:["8dd3c7","ffffb3","bebada","fb8072","80b1d3","fdb462"],7:["8dd3c7","ffffb3","bebada","fb8072","80b1d3","fdb462","b3de69"],8:["8dd3c7","ffffb3","bebada","fb8072","80b1d3","fdb462","b3de69","fccde5"],9:["8dd3c7","ffffb3","bebada","fb8072","80b1d3","fdb462","b3de69","fccde5","d9d9d9"],10:["8dd3c7","ffffb3","bebada","fb8072","80b1d3","fdb462","b3de69","fccde5","d9d9d9","bc80bd"],11:["8dd3c7","ffffb3","bebada","fb8072","80b1d3","fdb462","b3de69","fccde5","d9d9d9","bc80bd","ccebc5"],12:["8dd3c7","ffffb3","bebada","fb8072","80b1d3","fdb462","b3de69","fccde5","d9d9d9","bc80bd","ccebc5","ffed6f"]}};for(var e in t){var i=t[e];i=o.Scheme.fromPalettes("cb-"+e,[i.type,"cb-"+i.type],i,12,i.cbf),o.register(i)}}(),t.exports&&(t.exports=o)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.