PageSourceSearch

https://league-manager-e2e8e.web.app/chunk-I55LF7A7.js

js league-manager-e2e8e.web.app collected 2026-10-03 12:28:19 UTC 225,425 bytes, 3 lines download raw bytes

vendor: 10,001 bytes, line 1
1import{a as Ii}from"./chunk-NFMZ7WBQ.js";import{a as As,b as Os,c as Rs,d as Is,e as Fs,f as zs,g as Bs,h as Ns,i as Ws,j as Vs,k as Hs,l as js,m as $s,n as Ys,o as Us}from"./chunk-UKL6K57V.js";import{$a as oe,C as xs,Ca as Cs,Da as vs,Fa as ks,Ga as Ms,Ib as Es,Jb as Ls,eb as Ri,fb as ws,hb as Ps,ib as Ds,jb as Ts,m as ms,q as _s,t as bs,ta as ys,xa as Ss}from"./chunk-AVUWDQIV.js";import{$b as k,$c as $t,Cb as es,Cc as as,D as Qn,Dc as rs,Ec as ls,Fc as cs,Ic as hs,Jb as E,Mc as ne,Oc as se,Qb as j,Ra as Ht,Rb as Li,Yb as Ai,Zb as Oi,_b as C,a as ee,ac as Ct,b as ie,bc as R,cc as I,da as Jn,ec as is,hc as Ye,jc as K,m as Zn,nb as D,oa as ts,pc as ns,pd as ds,qc as ss,qd as us,rc as os,td as fs,ud as gs,vd as ps,wc as M,xa as Ce,xc as jt,ya as ve,yc as F}from"./chunk-JNPDBOW2.js";function we(e){return e+.5|0}var Et=(e,i,t)=>Math.max(Math.min(e,t),i);function ke(e){return Et(we(e*2.55),0,255)}function Lt(e){return Et(we(e*255),0,255)}function vt(e){return Et(we(e/2.55)/100,0,1)}function Gs(e){return Et(we(e*100),0,100)}var dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zi=[..."0123456789ABCDEF"],hr=e=>zi[e&15],dr=e=>zi[(e&240)>>4]+zi[e&15],Ue=e=>(e&240)>>4===(e&15),ur=e=>Ue(e.r)&&Ue(e.g)&&Ue(e.b)&&Ue(e.a);function fr(e){var i=e.length,t;return e[0]==="#"&&(i===4||i===5?t={r:255&dt[e[1]]*17,g:255&dt[e[2]]*17,b:255&dt[e[3]]*17,a:i===5?dt[e[4]]*17:255}:(i===7||i===9)&&(t={r:dt[e[1]]<<4|dt[e[2]],g:dt[e[3]]<<4|dt[e[4]],b:dt[e[5]]<<4|dt[e[6]],a:i===9?dt[e[7]]<<4|dt[e[8]]:255})),t}var gr=(e,i)=>e<255?i(e):"";function pr(e){var i=ur(e)?hr:dr;return e?"#"+i(e.r)+i(e.g)+i(e.b)+gr(e.a,i):void 0}var mr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Zs(e,i,t){let n=i*Math.min(t,1-t),s=(o,a=(o+e/30)%12)=>t-n*Math.max(Math.min(a-3,9-a,1),-1);return[s(0),s(8),s(4)]}function _r(e,i,t){let n=(s,o=(s+e/60)%6)=>t-t*i*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function br(e,i,t){let n=Zs(e,1,.5),s;for(i+t>1&&(s=1/(i+t),i*=s,t*=s),s=0;s<3;s++)n[s]*=1-i-t,n[s]+=i;return n}function xr(e,i,t,n,s){return e===s?(i-t)/n+(i<t?6:0):i===s?(t-e)/n+2:(e-i)/n+4}function Bi(e){let t=e.r/255,n=e.g/255,s=e.b/255,o=Math.max(t,n,s),a=Math.min(t,n,s),r=(o+a)/2,l,c,h;return o!==a&&(h=o-a,c=r>.5?h/(2-o-a):h/(o+a),l=xr(t,n,s,h,o),l=l*60+.5),[l|0,c||0,r]}function Ni(e,i,t,n){return(Array.isArray(i)?e(i[0],i[1],i[2]):e(i,t,n)).map(Lt)}function Wi(e,i,t){return Ni(Zs,e,i,t)}function yr(e,i,t){return Ni(br,e,i,t)}function Sr(e,i,t){return Ni(_r,e,i,t)}function Qs(e){return(e%360+360)%360}function Cr(e){let i=mr.exec(e),t=255,n;if(!i)return;i[5]!==n&&(t=i[6]?ke(+i[5]):Lt(+i[5]));let s=Qs(+i[2]),o=+i[3]/100,a=+i[4]/100;return i[1]==="hwb"?n=yr(s,o,a):i[1]==="hsv"?n=Sr(s,o,a):n=Wi(s,o,a),{r:n[0],g:n[1],b:n[2],a:t}}function vr(e,i){var t=Bi(e);t[0]=Qs(t[0]+i),t=Wi(t),e.r=t[0],e.g=t[1],e.b=t[2]}function kr(e){if(!e)return;let i=Bi(e),t=i[0],n=Gs(i[1]),s=Gs(i[2]);return e.a<255?`hsla(${t}, ${n}%, ${s}%, ${vt(e.a)})`:`hsl(${t}, ${n}%, ${s}%)`}var Xs={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"},Ks={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Mr(){let e={},i=Object.keys(Ks),t=Object.keys(Xs),n,s,o,a,r;for(n=0;n<i.length;n++){for(a=r=i[n],s=0;s<t.length;s++)o=t[s],r=r.replace(o,Xs[o]);o=parseInt(Ks[a],16),e[r]=[o>>16&255,o>>8&255,o&255]}return e}var Ge;function wr(e){Ge||(Ge=Mr(),Ge.transparent=[0,0,0,0]);let i=Ge[e.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:i.length===4?i[3]:255}}var Pr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dr(e){let i=Pr.exec(e),t=255,n,s,o;if(i){if(i[7]!==n){let a=+i[7];t=i[8]?ke(a):Et(a*255,0,255)}return n=+i[1],s=+i[3],o=+i[5],n=255&(i[2]?ke(n):Et(n,0,255)),s=255&(i[4]?ke(s):Et(s,0,255)),o=255&(i[6]?ke(o):Et(o,0,255)),{r:n,g:s,b:o,a:t}}}function Tr(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${vt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var Fi=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ae=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Er(e,i,t){let n=ae(vt(e.r)),s=ae(vt(e.g)),o=ae(vt(e.b));return{r:Lt(Fi(n+t*(ae(vt(i.r))-n))),g:Lt(Fi(s+t*(ae(vt(i.g))-s))),b:Lt(Fi(o+t*(ae(vt(i.b))-o))),a:e.a+t*(i.a-e.a)}}function Xe(e,i,t){if(e){let n=Bi(e);n[i]=Math.max(0,Math.min(n[i]+n[i]*t,i===0?360:1)),n=Wi(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function Js(e,i){return e&&Object.assign(i||{},e)}function qs(e){var i={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(i={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(i.a=Lt(e[3]))):(i=Js(e,{r:0,g:0,b:0,a:1}),i.a=Lt(i.a)),i}function Lr(e){return e.charAt(0)==="r"?Dr(e):Cr(e)}var Me=class e{constructor(i){if(i instanceof e)return i;let t=typeof i,n;t==="object"?n=qs(i):t==="string"&&(n=fr(i)||wr(i)||Lr(i)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var i=Js(this._rgb);return i&&(i.a=vt(i.a)),i}set rgb(i){this._rgb=qs(i)}rgbString(){return this._valid?Tr(this._rgb):void 0}hexString(){return this._valid?pr(this._rgb):void 0}hslString(){return this._valid?kr(this._rgb):void 0}mix(i,t){if(i){let n=this.rgb,s=i.rgb,o,a=t===o?.5:t,r=2*a-1,l=n.a-s.a,c=((r*l===-1?r:(r+l)/(1+r*l))+1)/2;o=1-c,n.r=255&c*n.r+o*s.r+.5,n.g=255&c*n.g+o*s.g+.5,n.b=255&c*n.b+o*s.b+.5,n.a=a*n.a+(1-a)*s.a,this.rgb=n}return this}interpolate(i,t){return i&&(this._rgb=Er(this._rgb,i._rgb,t)),this}clone(){return new e(this.rgb)}alpha(i){return this._rgb.a=Lt(i),this}clearer(i){let t=this._rgb;return t.a*=1-i,this}greyscale(){let i=this._rgb,t=we(i.r*.3+i.g*.59+i.b*.11);return i.r=i.g=i.b=t,this}opaquer(i){let t=this._rgb;return t.a*=1+i,this}negate(){let i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Xe(this._rgb,2,i),this}darken(i){return Xe(this._rgb,2,-i),this}saturate(i){return Xe(this._rgb,1,i),this}desaturate(i){return Xe(this._rgb,1,-i),this}rotate(i){return vr(this._rgb,i),this}};function bt(){}var ho=(()=>{let e=0;return()=>e++})();function z(e){return e==null}function $(e){if(Array.isArray&&Array.isArray(e))return!0;let i=Object.prototype.toString.call(e);return i.slice(0,7)==="[object"&&i.slice(-6)==="Array]"}function B(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function q(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function rt(e,i){return q(e)?e:i}function L(e,i){return typeof e>"u"?i:e}var uo=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/i,$i=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*i:+e;function H(e,i,t){if(e&&typeof e.call=="function")return e.apply(t,i)}function W(e,i,t,n){let s,o,a;if($(e))if(o=e.length,n)for(s=o-1;s>=0;s--)i.call(t,e[s],s);else for(s=0;s<o;s++)i.call(t,e[s],s);else if(B(e))for(a=Object.keys(e),o=a.length,s=0;s<o;s++)i.call(t,e[a[s]],a[s])}function Te(e,i){let t,n,s,o;if(!e||!i||e.length!==i.length)return!1;for(t=0,n=e.length;t<n;++t)if(s=e[t],o=i[t],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function Qe(e){if($(e))return e.map(Qe);if(B(e)){let i=Object.create(null),t=Object.keys(e),n=t.length,s=0;for(;s<n;++s)i[t[s]]=Qe(e[t[s]]);return i}return e}function fo(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Ar(e,i,t,n){if(!fo(e))return;let s=i[e],o=t[e];B(s)&&B(o)?le(s,o,n):i[e]=Qe(o)}function le(e,i,t){let n=$(i)?i:[i],s=n.length;if(!B(e))return e;t=t||{};let o=t.merger||Ar,a;for(let r=0;r<s;++r){if(a=n[r],!B(a))continue;let l=Object.keys(a);for(let c=0,h=l.length;c<h;++c)o(l[c],e,a,t)}return e}
vendor: 4,644 bytes, line 1
1function he(e,i){return le(e,i,{merger:Or})}function Or(e,i,t){if(!fo(e))return;let n=i[e],s=t[e];B(n)&&B(s)?he(n,s):Object.prototype.hasOwnProperty.call(i,e)||(i[e]=Qe(s))}var to={"":e=>e,x:e=>e.x,y:e=>e.y};function Rr(e){let i=e.split("."),t=[],n="";for(let s of i)n+=s,n.endsWith("\\")?n=n.slice(0,-1)+".":(t.push(n),n="");return t}function Ir(e){let i=Rr(e);return t=>{for(let n of i){if(n==="")break;t=t&&t[n]}return t}}function wt(e,i){return(to[i]||(to[i]=Ir(i)))(e)}function ii(e){return e.charAt(0).toUpperCase()+e.slice(1)}var de=e=>typeof e<"u",kt=e=>typeof e=="function",Yi=(e,i)=>{if(e.size!==i.size)return!1;for(let t of e)if(!i.has(t))return!1;return!0};function go(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var Y=Math.PI,U=2*Y,Fr=U+Y,Je=Number.POSITIVE_INFINITY,zr=Y/180,Z=Y/2,Yt=Y/4,eo=Y*2/3,Mt=Math.log10,gt=Math.sign;function ue(e,i,t){return Math.abs(e-i)<t}function Ui(e){let i=Math.round(e);e=ue(e,i,e/1e3)?i:e;let t=Math.pow(10,Math.floor(Mt(e))),n=e/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t}function po(e){let i=[],t=Math.sqrt(e),n;for(n=1;n<t;n++)e%n===0&&(i.push(n),i.push(e/n));return t===(t|0)&&i.push(t),i.sort((s,o)=>s-o).pop(),i}function Br(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Xt(e){return!Br(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function mo(e,i){let t=Math.round(e);return t-i<=e&&t+i>=e}function Gi(e,i,t){let n,s,o;for(n=0,s=e.length;n<s;n++)o=e[n][t],isNaN(o)||(i.min=Math.min(i.min,o),i.max=Math.max(i.max,o))}function ut(e){return e*(Y/180)}function ni(e){return e*(180/Y)}function Xi(e){if(!q(e))return;let i=1,t=0;for(;Math.round(e*i)/i!==e;)i*=10,t++;return t}function Ki(e,i){let t=i.x-e.x,n=i.y-e.y,s=Math.sqrt(t*t+n*n),o=Math.atan2(n,t);return o<-.5*Y&&(o+=U),{angle:o,distance:s}}function ti(e,i){return Math.sqrt(Math.pow(i.x-e.x,2)+Math.pow(i.y-e.y,2))}function Nr(e,i){return(e-i+Fr)%U-Y}function at(e){return(e%U+U)%U}function fe(e,i,t,n){let s=at(e),o=at(i),a=at(t),r=at(o-s),l=at(a-s),c=at(s-o),h=at(s-a);return s===o||s===a||n&&o===a||r>l&&c<h}function tt(e,i,t){return Math.max(i,Math.min(t,e))}function _o(e){return tt(e,-32768,32767)}function xt(e,i,t,n=1e-6){return e>=Math.min(i,t)-n&&e<=Math.max(i,t)+n}function si(e,i,t){t=t||(a=>e[a]<i);let n=e.length-1,s=0,o;for(;n-s>1;)o=s+n>>1,t(o)?s=o:n=o;return{lo:s,hi:n}}var mt=(e,i,t,n)=>si(e,t,n?s=>{let o=e[s][i];return o<t||o===t&&e[s+1][i]===t}:s=>e[s][i]<t),bo=(e,i,t)=>si(e,t,n=>e[n][i]>=t);function xo(e,i,t){let n=0,s=e.length;for(;n<s&&e[n]<i;)n++;for(;s>n&&e[s-1]>t;)s--;return n>0||s<e.length?e.slice(n,s):e}var yo=["push","pop","shift","splice","unshift"];function So(e,i){if(e._chartjs){e._chartjs.listeners.push(i);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),yo.forEach(t=>{let n="_onData"+ii(t),s=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...o){let a=s.apply(this,o);return e._chartjs.listeners.forEach(r=>{typeof r[n]=="function"&&r[n](...o)}),a}})})}function qi(e,i){let t=e._chartjs;if(!t)return;let n=t.listeners,s=n.indexOf(i);s!==-1&&n.splice(s,1),!(n.length>0)&&(yo.forEach(o=>{delete e[o]}),delete e._chartjs)}function Zi(e){let i=new Set(e);return i.size===e.length?e:Array.from(i)}var Qi=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Ji(e,i){let t=[],n=!1;return function(...s){t=s,n||(n=!0,Qi.call(window,()=>{n=!1,e.apply(i,t)}))}}function Co(e,i){let t;return function(...n){return i?(clearTimeout(t),t=setTimeout(e,i,n)):e.apply(this,n),i}}var oi=e=>e==="start"?"left":e==="end"?"right":"center",it=(e,i,t)=>e==="start"?i:e==="end"?t:(i+t)/2,vo=(e,i,t,n)=>e===(n?"left":"right")?t:e==="center"?(i+t)/2:i;function tn(e,i,t){let n=i.length,s=0,o=n;if(e._sorted){let{iScale:a,vScale:r,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,h=a.axis,{min:d,max:u,minDefined:f,maxDefined:g}=a.getUserBounds();if(f){if(s=Math.min(mt(l,h,d).lo,t?n:mt(i,h,a.getPixelForValue(d)).lo),c){let p=l.slice(0,s+1).reverse().findIndex(m=>!z(m[r.axis]));s-=Math.max(0,p)}s=tt(s,0,n-1)}if(g){let p=Math.max(mt(l,a.axis,u,!0).hi+1,t?0:mt(i,h,a.getPixelForValue(u),!0).hi+1);if(c){let m=l.slice(p-1).findIndex(b=>!z(b[r.axis]));p+=Math.max(0,m)}o=tt(p,s,n)-s}else o=n-s}return{start:s,count:o}}function en(e){let{xScale:i,yScale:t,_scaleRanges:n}=e,s={xmin:i.min,xmax:i.max,ymin:t.min,ymax:t.max};if(!n)return e._scaleRanges=s,!0;let o=n.xmin!==i.min||n.xmax!==i.max||n.ymin!==t.min||n.ymax!==t.max;return Object.assign(n,s),o}var Ke=e=>e===0||e===1,io=(e,i,t)=>
vendor: 5,980 bytes, line 1
1-(Math.pow(2,10*(e-=1))*Math.sin((e-i)*U/t)),no=(e,i,t)=>Math.pow(2,-10*e)*Math.sin((e-i)*U/t)+1,re={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Z)+1,easeOutSine:e=>Math.sin(e*Z),easeInOutSine:e=>-.5*(Math.cos(Y*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ke(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ke(e)?e:io(e,.075,.3),easeOutElastic:e=>Ke(e)?e:no(e,.075,.3),easeInOutElastic(e){return Ke(e)?e:e<.5?.5*io(e*2,.1125,.45):.5+.5*no(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let i=1.70158;return(e/=.5)<1?.5*(e*e*(((i*=1.525)+1)*e-i)):.5*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)},easeInBounce:e=>1-re.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?re.easeInBounce(e*2)*.5:re.easeOutBounce(e*2-1)*.5+.5};function nn(e){if(e&&typeof e=="object"){let i=e.toString();return i==="[object CanvasPattern]"||i==="[object CanvasGradient]"}return!1}function sn(e){return nn(e)?e:new Me(e)}function Vi(e){return nn(e)?e:new Me(e).saturate(.5).darken(.1).hexString()}var Wr=["x","y","borderWidth","radius","tension"],Vr=["color","borderColor","backgroundColor"];function Hr(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),e.set("animations",{colors:{type:"color",properties:Vr},numbers:{type:"number",properties:Wr}}),e.describe("animations",{_fallback:"animation"}),e.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:i=>i|0}}}})}function jr(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var so=new Map;function $r(e,i){i=i||{};let t=e+JSON.stringify(i),n=so.get(t);return n||(n=new Intl.NumberFormat(e,i),so.set(t,n)),n}function ge(e,i,t){return $r(i,t).format(e)}var ko={values(e){return $(e)?e:""+e},numeric(e,i,t){if(e===0)return"0";let n=this.chart.options.locale,s,o=e;if(t.length>1){let c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),o=Yr(e,t)}let a=Mt(Math.abs(o)),r=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:s,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ge(e,n,l)},logarithmic(e,i,t){if(e===0)return"0";let n=t[i].significand||e/Math.pow(10,Math.floor(Mt(e)));return[1,2,3,5,10,15].includes(n)||i>.8*t.length?ko.numeric.call(this,e,i,t):""}};function Yr(e,i){let t=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var Ee={formatters:ko};function Ur(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(i,t)=>t.lineWidth,tickColor:(i,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ee.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:i=>!i.startsWith("before")&&!i.startsWith("after")&&i!=="callback"&&i!=="parser",_indexable:i=>i!=="borderDash"&&i!=="tickBorderDash"&&i!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:i=>i!=="backdropPadding"&&i!=="callback",_indexable:i=>i!=="backdropPadding"})}var Ot=Object.create(null),ai=Object.create(null);function Pe(e,i){if(!i)return e;let t=i.split(".");for(let n=0,s=t.length;n<s;++n){let o=t[n];e=e[o]||(e[o]=Object.create(null))}return e}function Hi(e,i,t){return typeof i=="string"?le(Pe(e,i),t):le(Pe(e,""),i)}var ji=class{constructor(i,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=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,s)=>Vi(s.backgroundColor),this.hoverBorderColor=(n,s)=>Vi(s.borderColor),this.hoverColor=(n,s)=>Vi(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 5,045 bytes, line 1
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i),this.apply(t)}set(i,t){return Hi(this,i,t)}get(i){return Pe(this,i)}describe(i,t){return Hi(ai,i,t)}override(i,t){return Hi(Ot,i,t)}route(i,t,n,s){let o=Pe(this,i),a=Pe(this,n),r="_"+t;Object.defineProperties(o,{[r]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let l=this[r],c=a[s];return B(l)?Object.assign({},c,l):L(l,c)},set(l){this[r]=l}}})}apply(i){i.forEach(t=>t(this))}},G=new ji({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Hr,jr,Ur]);function Gr(e){return!e||z(e.size)||z(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function De(e,i,t,n,s){let o=i[s];return o||(o=i[s]=e.measureText(s).width,t.push(s)),o>n&&(n=o),n}function Mo(e,i,t,n){n=n||{};let s=n.data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==i&&(s=n.data={},o=n.garbageCollect=[],n.font=i),e.save(),e.font=i;let a=0,r=t.length,l,c,h,d,u;for(l=0;l<r;l++)if(d=t[l],d!=null&&!$(d))a=De(e,s,o,a,d);else if($(d))for(c=0,h=d.length;c<h;c++)u=d[c],u!=null&&!$(u)&&(a=De(e,s,o,a,u));e.restore();let f=o.length/2;if(f>t.length){for(l=0;l<f;l++)delete s[o[l]];o.splice(0,f)}return a}function Rt(e,i,t){let n=e.currentDevicePixelRatio,s=t!==0?Math.max(t/2,.5):0;return Math.round((i-s)*n)/n+s}function on(e,i){!i&&!e||(i=i||e.getContext("2d"),i.save(),i.resetTransform(),i.clearRect(0,0,e.width,e.height),i.restore())}function ri(e,i,t,n){an(e,i,t,n,null)}function an(e,i,t,n,s){let o,a,r,l,c,h,d,u,f=i.pointStyle,g=i.rotation,p=i.radius,m=(g||0)*zr;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(t,n),e.rotate(m),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(p)||p<=0)){switch(e.beginPath(),f){default:s?e.ellipse(t,n,s/2,p,0,0,U):e.arc(t,n,p,0,U),e.closePath();break;case"triangle":h=s?s/2:p,e.moveTo(t+Math.sin(m)*h,n-Math.cos(m)*p),m+=eo,e.lineTo(t+Math.sin(m)*h,n-Math.cos(m)*p),m+=eo,e.lineTo(t+Math.sin(m)*h,n-Math.cos(m)*p),e.closePath();break;case"rectRounded":c=p*.516,l=p-c,a=Math.cos(m+Yt)*l,d=Math.cos(m+Yt)*(s?s/2-c:l),r=Math.sin(m+Yt)*l,u=Math.sin(m+Yt)*(s?s/2-c:l),e.arc(t-d,n-r,c,m-Y,m-Z),e.arc(t+u,n-a,c,m-Z,m),e.arc(t+d,n+r,c,m,m+Z),e.arc(t-u,n+a,c,m+Z,m+Y),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,h=s?s/2:l,e.rect(t-h,n-l,2*h,2*l);break}m+=Yt;case"rectRot":d=Math.cos(m)*(s?s/2:p),a=Math.cos(m)*p,r=Math.sin(m)*p,u=Math.sin(m)*(s?s/2:p),e.moveTo(t-d,n-r),e.lineTo(t+u,n-a),e.lineTo(t+d,n+r),e.lineTo(t-u,n+a),e.closePath();break;case"crossRot":m+=Yt;case"cross":d=Math.cos(m)*(s?s/2:p),a=Math.cos(m)*p,r=Math.sin(m)*p,u=Math.sin(m)*(s?s/2:p),e.moveTo(t-d,n-r),e.lineTo(t+d,n+r),e.moveTo(t+u,n-a),e.lineTo(t-u,n+a);break;case"star":d=Math.cos(m)*(s?s/2:p),a=Math.cos(m)*p,r=Math.sin(m)*p,u=Math.sin(m)*(s?s/2:p),e.moveTo(t-d,n-r),e.lineTo(t+d,n+r),e.moveTo(t+u,n-a),e.lineTo(t-u,n+a),m+=Yt,d=Math.cos(m)*(s?s/2:p),a=Math.cos(m)*p,r=Math.sin(m)*p,u=Math.sin(m)*(s?s/2:p),e.moveTo(t-d,n-r),e.lineTo(t+d,n+r),e.moveTo(t+u,n-a),e.lineTo(t-u,n+a);break;case"line":a=s?s/2:Math.cos(m)*p,r=Math.sin(m)*p,e.moveTo(t-a,n-r),e.lineTo(t+a,n+r);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(m)*(s?s/2:p),n+Math.sin(m)*p);break;case!1:e.closePath();break}e.fill(),i.borderWidth>0&&e.stroke()}}function _t(e,i,t){return t=t||.5,!i||e&&e.x>i.left-t&&e.x<i.right+t&&e.y>i.top-t&&e.y<i.bottom+t}function Le(e,i){e.save(),e.beginPath(),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}function Ae(e){e.restore()}function wo(e,i,t,n,s){if(!i)return e.lineTo(t.x,t.y);if(s==="middle"){let o=(i.x+t.x)/2;e.lineTo(o,i.y),e.lineTo(o,t.y)}else s==="after"!=!!n?e.lineTo(i.x,t.y):e.lineTo(t.x,i.y);e.lineTo(t.x,t.y)}function Po(e,i,t,n){if(!i)return e.lineTo(t.x,t.y);e.bezierCurveTo(n?i.cp1x:i.cp2x,n?i.cp1y:i.cp2y,n?t.cp2x:t.cp1x,n?t.cp2y:t.cp1y,t.x,t.y)}function Xr(e,i){i.translation&&e.translate(i.translation[0],i.translation[1]),z(i.rotation)||e.rotate(i.rotation),i.color&&(e.fillStyle=i.color),i.textAlign&&(e.textAlign=i.textAlign),i.textBaseline&&(e.textBaseline=i.textBaseline)}function Kr(e,i,t,n,s){if(s.strikethrough||s.underline){let o=e.measureText(n),a=i-o.actualBoundingBoxLeft,r=i+o.actualBoundingBoxRight,l=t-o.actualBoundingBoxAscent,c=t+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(a,h),e.lineTo(r,h),e.stroke()}}function qr(e,i){let t=e.fillStyle;e.fillStyle=i.color,e.fillRect(i.left,i.top,i.width,i.height),e.fillStyle=t}function It(e,i,t,n,s,o={}){let a=$(i)?i:[i],r=o.strokeWidth>0&&o.strokeColor!=="",l,c;for(e.save(),e.font=s.string,Xr(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&qr(e,o.backdrop),r&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),z(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,t,n,o.maxWidth)),e.fillText(c,t,n,o.maxWidth),Kr(e,t,n,c,o),n+=Number(s.lineHeight);
vendor: 5,096 bytes, line 1
1e.restore()}function pe(e,i){let{x:t,y:n,w:s,h:o,radius:a}=i;e.arc(t+a.topLeft,n+a.topLeft,a.topLeft,1.5*Y,Y,!0),e.lineTo(t,n+o-a.bottomLeft),e.arc(t+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,Y,Z,!0),e.lineTo(t+s-a.bottomRight,n+o),e.arc(t+s-a.bottomRight,n+o-a.bottomRight,a.bottomRight,Z,0,!0),e.lineTo(t+s,n+a.topRight),e.arc(t+s-a.topRight,n+a.topRight,a.topRight,0,-Z,!0),e.lineTo(t+a.topLeft,n)}var Zr=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Qr=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Jr(e,i){let t=(""+e).match(Zr);if(!t||t[1]==="normal")return i*1.2;switch(e=+t[2],t[3]){case"px":return e;case"%":e/=100;break}return i*e}var tl=e=>+e||0;function li(e,i){let t={},n=B(i),s=n?Object.keys(i):i,o=B(e)?n?a=>L(e[a],e[i[a]]):a=>e[a]:()=>e;for(let a of s)t[a]=tl(o(a));return t}function rn(e){return li(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ft(e){return li(e,["topLeft","topRight","bottomLeft","bottomRight"])}function nt(e){let i=rn(e);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function J(e,i){e=e||{},i=i||G.font;let t=L(e.size,i.size);typeof t=="string"&&(t=parseInt(t,10));let n=L(e.style,i.style);n&&!(""+n).match(Qr)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let s={family:L(e.family,i.family),lineHeight:Jr(L(e.lineHeight,i.lineHeight),t),size:t,style:n,weight:L(e.weight,i.weight),string:""};return s.string=Gr(s),s}function me(e,i,t,n){let s=!0,o,a,r;for(o=0,a=e.length;o<a;++o)if(r=e[o],r!==void 0&&(i!==void 0&&typeof r=="function"&&(r=r(i),s=!1),t!==void 0&&$(r)&&(r=r[t%r.length],s=!1),r!==void 0))return n&&!s&&(n.cacheable=!1),r}function Do(e,i,t){let{min:n,max:s}=e,o=$i(i,(s-n)/2),a=(r,l)=>t&&r===0?0:r+l;return{min:a(n,-Math.abs(o)),max:a(s,o)}}function Pt(e,i){return Object.assign(Object.create(e),i)}function ci(e,i=[""],t,n,s=()=>e[0]){let o=t||e;typeof n>"u"&&(n=Lo("_fallback",e));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:n,_getTarget:s,override:r=>ci([r,...e],i,o,n)};return new Proxy(a,{deleteProperty(r,l){return delete r[l],delete r._keys,delete e[0][l],!0},get(r,l){return To(r,l,()=>ll(l,i,e,r))},getOwnPropertyDescriptor(r,l){return Reflect.getOwnPropertyDescriptor(r._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(r,l){return ao(r).includes(l)},ownKeys(r){return ao(r)},set(r,l,c){let h=r._storage||(r._storage=s());return r[l]=h[l]=c,delete r._keys,!0}})}function Gt(e,i,t,n){let s={_cacheable:!1,_proxy:e,_context:i,_subProxy:t,_stack:new Set,_descriptors:ln(e,n),setContext:o=>Gt(e,o,t,n),override:o=>Gt(e.override(o),i,t,n)};return new Proxy(s,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,r){return To(o,a,()=>il(o,a,r))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,r){return e[a]=r,delete o[a],!0}})}function ln(e,i={scriptable:!0,indexable:!0}){let{_scriptable:t=i.scriptable,_indexable:n=i.indexable,_allKeys:s=i.allKeys}=e;return{allKeys:s,scriptable:t,indexable:n,isScriptable:kt(t)?t:()=>t,isIndexable:kt(n)?n:()=>n}}var el=(e,i)=>e?e+ii(i):i,cn=(e,i)=>B(i)&&e!=="adapters"&&(Object.getPrototypeOf(i)===null||i.constructor===Object);function To(e,i,t){if(Object.prototype.hasOwnProperty.call(e,i)||i==="constructor")return e[i];let n=t();return e[i]=n,n}function il(e,i,t){let{_proxy:n,_context:s,_subProxy:o,_descriptors:a}=e,r=n[i];return kt(r)&&a.isScriptable(i)&&(r=nl(i,r,e,t)),$(r)&&r.length&&(r=sl(i,r,e,a.isIndexable)),cn(i,r)&&(r=Gt(r,s,o&&o[i],a)),r}function nl(e,i,t,n){let{_proxy:s,_context:o,_subProxy:a,_stack:r}=t;if(r.has(e))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+e);r.add(e);let l=i(o,a||n);return r.delete(e),cn(e,l)&&(l=hn(s._scopes,s,e,l)),l}function sl(e,i,t,n){let{_proxy:s,_context:o,_subProxy:a,_descriptors:r}=t;if(typeof o.index<"u"&&n(e))return i[o.index%i.length];if(B(i[0])){let l=i,c=s._scopes.filter(h=>h!==l);i=[];for(let h of l){let d=hn(c,s,e,h);i.push(Gt(d,o,a&&a[e],r))}}return i}function Eo(e,i,t){return kt(e)?e(i,t):e}var ol=(e,i)=>e===!0?i:typeof e=="string"?wt(i,e):void 0;function al(e,i,t,n,s){for(let o of i){let a=ol(t,o);if(a){e.add(a);let r=Eo(a._fallback,t,s);if(typeof r<"u"&&r!==t&&r!==n)return r}else if(a===!1&&typeof n<"u"&&t!==n)return null}return!1}function hn(e,i,t,n){let s=i._rootScopes,o=Eo(i._fallback,t,n),a=[...e,...s],r=new Set;r.add(n);let l=oo(r,a,t,o||t,n);return l===null||typeof o<"u"&&o!==t&&(l=oo(r,a,o,l,n),l===null)?!1:ci(Array.from(r),[""],s,o,()=>rl(i,t,n))}function oo(e,i,t,n,s){for(;t;)t=al(e,i,t,n,s);return t}function rl(e,i,t){let n=e._getTarget();i in n||(n[i]={});let s=n[i];return $(s)&&B(t)?t:s||{}}function ll(e,i,t,n){let s;for(let o of i)if(s=Lo(el(o,e),t),typeof s<"u")return cn(e,s)?hn(t,n,e,s):s}function Lo(e,i){for(let t of i){if(!t)continue;let n=t[e];if(typeof n<"u")return n}}function ao(e){let i=e._keys;
vendor: 4,677 bytes, line 1
1return i||(i=e._keys=cl(e._scopes)),i}function cl(e){let i=new Set;for(let t of e)for(let n of Object.keys(t).filter(s=>!s.startsWith("_")))i.add(n);return Array.from(i)}function dn(e,i,t,n){let{iScale:s}=e,{key:o="r"}=this._parsing,a=new Array(n),r,l,c,h;for(r=0,l=n;r<l;++r)c=r+t,h=i[c],a[r]={r:s.parse(wt(h,o),c)};return a}var hl=Number.EPSILON||1e-14,ce=(e,i)=>i<e.length&&!e[i].skip&&e[i],Ao=e=>e==="x"?"y":"x";function dl(e,i,t,n){let s=e.skip?i:e,o=i,a=t.skip?i:t,r=ti(o,s),l=ti(a,o),c=r/(r+l),h=l/(r+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;let d=n*c,u=n*h;return{previous:{x:o.x-d*(a.x-s.x),y:o.y-d*(a.y-s.y)},next:{x:o.x+u*(a.x-s.x),y:o.y+u*(a.y-s.y)}}}function ul(e,i,t){let n=e.length,s,o,a,r,l,c=ce(e,0);for(let h=0;h<n-1;++h)if(l=c,c=ce(e,h+1),!(!l||!c)){if(ue(i[h],0,hl)){t[h]=t[h+1]=0;continue}s=t[h]/i[h],o=t[h+1]/i[h],r=Math.pow(s,2)+Math.pow(o,2),!(r<=9)&&(a=3/Math.sqrt(r),t[h]=s*a*i[h],t[h+1]=o*a*i[h])}}function fl(e,i,t="x"){let n=Ao(t),s=e.length,o,a,r,l=ce(e,0);for(let c=0;c<s;++c){if(a=r,r=l,l=ce(e,c+1),!r)continue;let h=r[t],d=r[n];a&&(o=(h-a[t])/3,r[`cp1${t}`]=h-o,r[`cp1${n}`]=d-o*i[c]),l&&(o=(l[t]-h)/3,r[`cp2${t}`]=h+o,r[`cp2${n}`]=d+o*i[c])}}function gl(e,i="x"){let t=Ao(i),n=e.length,s=Array(n).fill(0),o=Array(n),a,r,l,c=ce(e,0);for(a=0;a<n;++a)if(r=l,l=c,c=ce(e,a+1),!!l){if(c){let h=c[i]-l[i];s[a]=h!==0?(c[t]-l[t])/h:0}o[a]=r?c?gt(s[a-1])!==gt(s[a])?0:(s[a-1]+s[a])/2:s[a-1]:s[a]}ul(e,s,o),fl(e,o,i)}function qe(e,i,t){return Math.max(Math.min(e,t),i)}function pl(e,i){let t,n,s,o,a,r=_t(e[0],i);for(t=0,n=e.length;t<n;++t)a=o,o=r,r=t<n-1&&_t(e[t+1],i),o&&(s=e[t],a&&(s.cp1x=qe(s.cp1x,i.left,i.right),s.cp1y=qe(s.cp1y,i.top,i.bottom)),r&&(s.cp2x=qe(s.cp2x,i.left,i.right),s.cp2y=qe(s.cp2y,i.top,i.bottom)))}function Oo(e,i,t,n,s){let o,a,r,l;if(i.spanGaps&&(e=e.filter(c=>!c.skip)),i.cubicInterpolationMode==="monotone")gl(e,s);else{let c=n?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)r=e[o],l=dl(c,r,e[Math.min(o+1,a-(n?0:1))%a],i.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,c=r}i.capBezierPoints&&pl(e,t)}function hi(){return typeof window<"u"&&typeof document<"u"}function di(e){let i=e.parentNode;return i&&i.toString()==="[object ShadowRoot]"&&(i=i.host),i}function ei(e,i,t){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*i.parentNode[t])):n=e,n}var ui=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function ml(e,i){return ui(e).getPropertyValue(i)}var _l=["top","right","bottom","left"];function Ut(e,i,t){let n={};t=t?"-"+t:"";for(let s=0;s<4;s++){let o=_l[s];n[o]=parseFloat(e[i+"-"+o+t])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}var bl=(e,i,t)=>(e>0||i>0)&&(!t||!t.shadowRoot);function xl(e,i){let t=e.touches,n=t&&t.length?t[0]:e,{offsetX:s,offsetY:o}=n,a=!1,r,l;if(bl(s,o,e.target))r=s,l=o;else{let c=i.getBoundingClientRect();r=n.clientX-c.left,l=n.clientY-c.top,a=!0}return{x:r,y:l,box:a}}function zt(e,i){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:n}=i,s=ui(t),o=s.boxSizing==="border-box",a=Ut(s,"padding"),r=Ut(s,"border","width"),{x:l,y:c,box:h}=xl(e,t),d=a.left+(h&&r.left),u=a.top+(h&&r.top),{width:f,height:g}=i;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*t.width/n),y:Math.round((c-u)/g*t.height/n)}}function yl(e,i,t){let n,s;if(i===void 0||t===void 0){let o=e&&di(e);if(!o)i=e.clientWidth,t=e.clientHeight;else{let a=o.getBoundingClientRect(),r=ui(o),l=Ut(r,"border","width"),c=Ut(r,"padding");i=a.width-c.width-l.width,t=a.height-c.height-l.height,n=ei(r.maxWidth,o,"clientWidth"),s=ei(r.maxHeight,o,"clientHeight")}}return{width:i,height:t,maxWidth:n||Je,maxHeight:s||Je}}var Ze=e=>Math.round(e*10)/10;function Ro(e,i,t,n){let s=ui(e),o=Ut(s,"margin"),a=ei(s.maxWidth,e,"clientWidth")||Je,r=ei(s.maxHeight,e,"clientHeight")||Je,l=yl(e,i,t),{width:c,height:h}=l;if(s.boxSizing==="content-box"){let u=Ut(s,"border","width"),f=Ut(s,"padding");c-=f.width+u.width,h-=f.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,n?c/n:h-o.height),c=Ze(Math.min(c,a,l.maxWidth)),h=Ze(Math.min(h,r,l.maxHeight)),c&&!h&&(h=Ze(c/2)),(i!==void 0||t!==void 0)&&n&&l.height&&h>l.height&&(h=l.height,c=Ze(Math.floor(h*n))),{width:c,height:h}}function un(e,i,t){let n=i||1,s=Math.floor(e.height*n),o=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let a=e.canvas;return a.style&&(t||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||a.height!==s||a.width!==o?(e.currentDevicePixelRatio=n,a.height=s,a.width=o,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}var Io=function(){let e=!1;
vendor: 4,453 bytes, line 1
1try{let i={get passive(){return e=!0,!1}};hi()&&(window.addEventListener("test",null,i),window.removeEventListener("test",null,i))}catch{}return e}();function fn(e,i){let t=ml(e,i),n=t&&t.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function At(e,i,t,n){return{x:e.x+t*(i.x-e.x),y:e.y+t*(i.y-e.y)}}function Fo(e,i,t,n){return{x:e.x+t*(i.x-e.x),y:n==="middle"?t<.5?e.y:i.y:n==="after"?t<1?e.y:i.y:t>0?i.y:e.y}}function zo(e,i,t,n){let s={x:e.cp2x,y:e.cp2y},o={x:i.cp1x,y:i.cp1y},a=At(e,s,t),r=At(s,o,t),l=At(o,i,t),c=At(a,r,t),h=At(r,l,t);return At(c,h,t)}var Sl=function(e,i){return{x(t){return e+e+i-t},setWidth(t){i=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,n){return t-n},leftForLtr(t,n){return t-n}}},Cl=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,i){return e+i},leftForLtr(e,i){return e}}};function Kt(e,i,t){return e?Sl(i,t):Cl()}function gn(e,i){let t,n;(i==="ltr"||i==="rtl")&&(t=e.canvas.style,n=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",i,"important"),e.prevTextDirection=n)}function pn(e,i){i!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",i[0],i[1]))}function Bo(e){return e==="angle"?{between:fe,compare:Nr,normalize:at}:{between:xt,compare:(i,t)=>i-t,normalize:i=>i}}function ro({start:e,end:i,count:t,loop:n,style:s}){return{start:e%t,end:i%t,loop:n&&(i-e+1)%t===0,style:s}}function vl(e,i,t){let{property:n,start:s,end:o}=t,{between:a,normalize:r}=Bo(n),l=i.length,{start:c,end:h,loop:d}=e,u,f;if(d){for(c+=l,h+=l,u=0,f=l;u<f&&a(r(i[c%l][n]),s,o);++u)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:d,style:e.style}}function mn(e,i,t){if(!t)return[e];let{property:n,start:s,end:o}=t,a=i.length,{compare:r,between:l,normalize:c}=Bo(n),{start:h,end:d,loop:u,style:f}=vl(e,i,t),g=[],p=!1,m=null,b,_,y,v=()=>l(s,y,b)&&r(s,y)!==0,x=()=>r(o,b)===0||l(o,y,b),S=()=>p||v(),P=()=>!p||x();for(let w=h,T=h;w<=d;++w)_=i[w%a],!_.skip&&(b=c(_[n]),b!==y&&(p=l(b,s,o),m===null&&S()&&(m=r(b,s)===0?w:T),m!==null&&P()&&(g.push(ro({start:m,end:w,loop:u,count:a,style:f})),m=null),T=w,y=b));return m!==null&&g.push(ro({start:m,end:d,loop:u,count:a,style:f})),g}function _n(e,i){let t=[],n=e.segments;for(let s=0;s<n.length;s++){let o=mn(n[s],e.points,i);o.length&&t.push(...o)}return t}function kl(e,i,t,n){let s=0,o=i-1;if(t&&!n)for(;s<i&&!e[s].skip;)s++;for(;s<i&&e[s].skip;)s++;for(s%=i,t&&(o+=s);o>s&&e[o%i].skip;)o--;return o%=i,{start:s,end:o}}function Ml(e,i,t,n){let s=e.length,o=[],a=i,r=e[i],l;for(l=i+1;l<=t;++l){let c=e[l%s];c.skip||c.stop?r.skip||(n=!1,o.push({start:i%s,end:(l-1)%s,loop:n}),i=a=c.stop?l:null):(a=l,r.skip&&(i=l)),r=c}return a!==null&&o.push({start:i%s,end:a%s,loop:n}),o}function No(e,i){let t=e.points,n=e.options.spanGaps,s=t.length;if(!s)return[];let o=!!e._loop,{start:a,end:r}=kl(t,s,o,n);if(n===!0)return lo(e,[{start:a,end:r,loop:o}],t,i);let l=r<a?r+s:r,c=!!e._fullLoop&&a===0&&r===s-1;return lo(e,Ml(t,a,l,c),t,i)}function lo(e,i,t,n){return!n||!n.setContext||!t?i:wl(e,i,t,n)}function wl(e,i,t,n){let s=e._chart.getContext(),o=co(e.options),{_datasetIndex:a,options:{spanGaps:r}}=e,l=t.length,c=[],h=o,d=i[0].start,u=d;function f(g,p,m,b){let _=r?-1:1;if(g!==p){for(g+=l;t[g%l].skip;)g-=_;for(;t[p%l].skip;)p+=_;g%l!==p%l&&(c.push({start:g%l,end:p%l,loop:m,style:b}),h=b,d=p%l)}}for(let g of i){d=r?d:g.start;let p=t[d%l],m;for(u=d+1;u<=g.end;u++){let b=t[u%l];m=co(n.setContext(Pt(s,{type:"segment",p0:p,p1:b,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),Pl(m,h)&&f(d,u-1,g.loop,h),p=b,h=m}d<u-1&&f(d,u-1,g.loop,h)}return c}function co(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Pl(e,i){if(!i)return!1;let t=[],n=function(s,o){return nn(o)?(t.includes(o)||t.push(o),t.indexOf(o)):o};return JSON.stringify(e,n)!==JSON.stringify(i,n)}var Dn=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(i,t,n,s){let o=t.listeners[s],a=t.duration;o.forEach(r=>r({chart:i,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Qi.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let t=0;
vendor: 10,868 bytes, line 1
1this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;let o=n.items,a=o.length-1,r=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(i),r=!0):(o[a]=o[o.length-1],o.pop());r&&(s.draw(),this._notify(s,n,i,"progress")),o.length||(n.running=!1,this._notify(s,n,i,"complete"),n.initial=!1),t+=o.length}),this._lastDate=i,t===0&&(this._running=!1)}_getAnims(i){let t=this._charts,n=t.get(i);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(i,n)),n}listen(i,t,n){this._getAnims(i).listeners[t].push(n)}add(i,t){!t||!t.length||this._getAnims(i).items.push(...t)}has(i){return this._getAnims(i).items.length>0}start(i){let t=this._charts.get(i);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(i){if(!this._running)return!1;let t=this._charts.get(i);return!(!t||!t.running||!t.items.length)}stop(i){let t=this._charts.get(i);if(!t||!t.items.length)return;let n=t.items,s=n.length-1;for(;s>=0;--s)n[s].cancel();t.items=[],this._notify(i,t,Date.now(),"complete")}remove(i){return this._charts.delete(i)}},Dt=new Dn,Wo="transparent",Dl={boolean(e,i,t){return t>.5?i:e},color(e,i,t){let n=sn(e||Wo),s=n.valid&&sn(i||Wo);return s&&s.valid?s.mix(n,t).hexString():i},number(e,i,t){return e+(i-e)*t}},Tn=class{constructor(i,t,n,s){let o=t[n];s=me([i.to,s,o,i.from]);let a=me([i.from,o,s]);this._active=!0,this._fn=i.fn||Dl[i.type||typeof a],this._easing=re[i.easing]||re.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=t,this._prop=n,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(i,t,n){if(this._active){this._notify(!1);let s=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,i.duration)),this._total+=o,this._loop=!!i.loop,this._to=me([i.to,t,s,i.from]),this._from=me([i.from,s,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){let t=i-this._start,n=this._duration,s=this._prop,o=this._from,a=this._loop,r=this._to,l;if(this._active=o!==r&&(a||t<n),!this._active){this._target[s]=r,this._notify(!0);return}if(t<0){this._target[s]=o;return}l=t/n%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,r,l)}wait(){let i=this._promises||(this._promises=[]);return new Promise((t,n)=>{i.push({res:t,rej:n})})}_notify(i){let t=i?"res":"rej",n=this._promises||[];for(let s=0;s<n.length;s++)n[s][t]()}},Ci=class{constructor(i,t){this._chart=i,this._properties=new Map,this.configure(t)}configure(i){if(!B(i))return;let t=Object.keys(G.animation),n=this._properties;Object.getOwnPropertyNames(i).forEach(s=>{let o=i[s];if(!B(o))return;let a={};for(let r of t)a[r]=o[r];($(o.properties)&&o.properties||[s]).forEach(r=>{(r===s||!n.has(r))&&n.set(r,a)})})}_animateOptions(i,t){let n=t.options,s=El(i,n);if(!s)return[];let o=this._createAnimations(s,n);return n.$shared&&Tl(i.options.$animations,n).then(()=>{i.options=n},()=>{}),o}_createAnimations(i,t){let n=this._properties,s=[],o=i.$animations||(i.$animations={}),a=Object.keys(t),r=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(i,t));continue}let h=t[c],d=o[c],u=n.get(c);if(d)if(u&&d.active()){d.update(u,h,r);continue}else d.cancel();if(!u||!u.duration){i[c]=h;continue}o[c]=d=new Tn(u,i,c,h),s.push(d)}return s}update(i,t){if(this._properties.size===0){Object.assign(i,t);return}let n=this._createAnimations(i,t);if(n.length)return Dt.add(this._chart,n),!0}};function Tl(e,i){let t=[],n=Object.keys(i);for(let s=0;s<n.length;s++){let o=e[n[s]];o&&o.active()&&t.push(o.wait())}return Promise.all(t)}function El(e,i){if(!i)return;let t=e.options;if(!t){e.options=i;return}return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t}function Vo(e,i){let t=e&&e.options||{},n=t.reverse,s=t.min===void 0?i:0,o=t.max===void 0?i:0;return{start:n?o:s,end:n?s:o}}function Ll(e,i,t){if(t===!1)return!1;let n=Vo(e,t),s=Vo(i,t);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}function Al(e){let i,t,n,s;return B(e)?(i=e.top,t=e.right,n=e.bottom,s=e.left):i=t=n=s=e,{top:i,right:t,bottom:n,left:s,disabled:e===!1}}function Wa(e,i){let t=[],n=e._getSortedDatasetMetas(i),s,o;for(s=0,o=n.length;s<o;++s)t.push(n[s].index);return t}function Ho(e,i,t,n={}){let s=e.keys,o=n.mode==="single",a,r,l,c;if(i===null)return;let h=!1;for(a=0,r=s.length;a<r;++a){if(l=+s[a],l===t){if(h=!0,n.all)continue;break}c=e.values[l],q(c)&&(o||i===0||gt(i)===gt(c))&&(i+=c)}return!h&&!n.all?0:i}function Ol(e,i){let{iScale:t,vScale:n}=i,s=t.axis==="x"?"x":"y",o=n.axis==="x"?"x":"y",a=Object.keys(e),r=new Array(a.length),l,c,h;for(l=0,c=a.length;l<c;++l)h=a[l],r[l]={[s]:h,[o]:e[h]};return r}function bn(e,i){let t=e&&e.options.stacked;return t||t===void 0&&i.stack!==void 0}function Rl(e,i,t){return`${e.id}.${i.id}.${t.stack||t.type}`}function Il(e){let{min:i,max:t,minDefined:n,maxDefined:s}=e.getUserBounds();return{min:n?i:Number.NEGATIVE_INFINITY,max:s?t:Number.POSITIVE_INFINITY}}function Fl(e,i,t){let n=e[i]||(e[i]={});return n[t]||(n[t]={})}function jo(e,i,t,n){for(let s of i.getMatchingVisibleMetas(n).reverse()){let o=e[s.index];if(t&&o>0||!t&&o<0)return s.index}return null}function $o(e,i){let{chart:t,_cachedMeta:n}=e,s=t._stacks||(t._stacks={}),{iScale:o,vScale:a,index:r}=n,l=o.axis,c=a.axis,h=Rl(o,a,n),d=i.length,u;for(let f=0;f<d;++f){let g=i[f],{[l]:p,[c]:m}=g,b=g._stacks||(g._stacks={});u=b[c]=Fl(s,h,p),u[r]=m,u._top=jo(u,a,!0,n.type),u._bottom=jo(u,a,!1,n.type);let _=u._visualValues||(u._visualValues={});_[r]=m}}function xn(e,i){let t=e.scales;return Object.keys(t).filter(n=>t[n].axis===i).shift()}function zl(e,i){return Pt(e,{active:!1,dataset:void 0,datasetIndex:i,index:i,mode:"default",type:"dataset"})}function Bl(e,i,t){return Pt(e,{active:!1,dataIndex:i,parsed:void 0,raw:void 0,element:t,index:i,mode:"default",type:"data"})}function Oe(e,i){let t=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){i=i||e._parsed;for(let s of i){let o=s._stacks;if(!o||o[n]===void 0||o[n][t]===void 0)return;delete o[n][t],o[n]._visualValues!==void 0&&o[n]._visualValues[t]!==void 0&&delete o[n]._visualValues[t]}}}var yn=e=>e==="reset"||e==="none",Yo=(e,i)=>i?e:Object.assign({},e),Nl=(e,i,t)=>e&&!i.hidden&&i._stacked&&{keys:Wa(t,!0),values:null},Nt=(()=>{class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,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.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=bn(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Oe(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,n=this._cachedMeta,s=this.getDataset(),o=(u,f,g,p)=>u==="x"?f:u==="r"?p:g,a=n.xAxisID=L(s.xAxisID,xn(t,"x")),r=n.yAxisID=L(s.yAxisID,xn(t,"y")),l=n.rAxisID=L(s.rAxisID,xn(t,"r")),c=n.indexAxis,h=n.iAxisID=o(c,a,r,l),d=n.vAxisID=o(c,r,a,l);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(h),n.vScale=this.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){let n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&qi(this._data,this),t._stacked&&Oe(t)}_dataCheck(){let t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if(B(n)){let o=this._cachedMeta;this._data=Ol(n,o)}else if(s!==n){if(s){qi(s,this);let o=this._cachedMeta;Oe(o),o._parsed=[]}n&&Object.isExtensible(n)&&So(n,this),this._syncList=[],this._data=n}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let n=this._cachedMeta,s=this.getDataset(),o=!1;this._dataCheck();let a=n._stacked;n._stacked=bn(n.vScale,n),n.stack!==s.stack&&(o=!0,Oe(n),n.stack=s.stack),this._resyncElements(t),(o||a!==n._stacked)&&($o(this,n._parsed),n._stacked=bn(n.vScale,n))}configure(){let t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){let{_cachedMeta:s,_data:o}=this,{iScale:a,_stacked:r}=s,l=a.axis,c=t===0&&n===o.length?!0:s._sorted,h=t>0&&s._parsed[t-1],d,u,f;if(this._parsing===!1)s._parsed=o,s._sorted=!0,f=o;else{$(o[t])?f=this.parseArrayData(s,o,t,n):B(o[t])?f=this.parseObjectData(s,o,t,n):f=this.parsePrimitiveData(s,o,t,n);let g=()=>u[l]===null||h&&u[l]<h[l];for(d=0;d<n;++d)s._parsed[d+t]=u=f[d],c&&(g()&&(c=!1),h=u);s._sorted=c}r&&$o(this,f)}parsePrimitiveData(t,n,s,o){let{iScale:a,vScale:r}=t,l=a.axis,c=r.axis,h=a.getLabels(),d=a===r,u=new Array(o),f,g,p;for(f=0,g=o;f<g;++f)p=f+s,u[f]={[l]:d||a.parse(h[p],p),[c]:r.parse(n[p],p)};return u}parseArrayData(t,n,s,o){let{xScale:a,yScale:r}=t,l=new Array(o),c,h,d,u;for(c=0,h=o;c<h;++c)d=c+s,u=n[d],l[c]={x:a.parse(u[0],d),y:r.parse(u[1],d)};return l}parseObjectData(t,n,s,o){let{xScale:a,yScale:r}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=new Array(o),d,u,f,g;for(d=0,u=o;d<u;++d)f=d+s,g=n[f],h[d]={x:a.parse(wt(g,l),f),y:r.parse(wt(g,c),f)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,s){let o=this.chart,a=this._cachedMeta,r=n[t.axis],l={keys:Wa(o,!0),values:n._stacks[t.axis]._visualValues};return Ho(l,r,a.index,{mode:s})}updateRangeFromParsed(t,n,s,o){let a=s[n.axis],r=a===null?NaN:a,l=o&&s._stacks[n.axis];o&&l&&(o.values=l,r=Ho(o,a,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){let s=this._cachedMeta,o=s._parsed,a=s._sorted&&t===s.iScale,r=o.length,l=this._getOtherScale(t),c=Nl(n,s,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=Il(l),f,g;function p(){g=o[f];
vendor: 6,130 bytes, line 1
1let m=g[l.axis];return!q(g[t.axis])||d>m||u<m}for(f=0;f<r&&!(!p()&&(this.updateRangeFromParsed(h,t,g,c),a));++f);if(a){for(f=r-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(h,t,g,c);break}}return h}getAllParsedValues(t){let n=this._cachedMeta._parsed,s=[],o,a,r;for(o=0,a=n.length;o<a;++o)r=n[o][t.axis],q(r)&&s.push(r);return s}getMaxOverflow(){return!1}getLabelAndValue(t){let n=this._cachedMeta,s=n.iScale,o=n.vScale,a=this.getParsed(t);return{label:s?""+s.getLabelForValue(a[s.axis]):"",value:o?""+o.getLabelForValue(a[o.axis]):""}}_update(t){let n=this._cachedMeta;this.update(t||"default"),n._clip=Al(L(this.options.clip,Ll(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,n=this.chart,s=this._cachedMeta,o=s.data||[],a=n.chartArea,r=[],l=this._drawStart||0,c=this._drawCount||o.length-l,h=this.options.drawActiveElementsOnTop,d;for(s.dataset&&s.dataset.draw(t,a,l,c),d=l;d<l+c;++d){let u=o[d];u.hidden||(u.active&&h?r.push(u):u.draw(t,a))}for(d=0;d<r.length;++d)r[d].draw(t,a)}getStyle(t,n){let s=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,n,s){let o=this.getDataset(),a;if(t>=0&&t<this._cachedMeta.data.length){let r=this._cachedMeta.data[t];a=r.$context||(r.$context=Bl(this.getContext(),t,r)),a.parsed=this.getParsed(t),a.raw=o.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=zl(this.chart.getContext(),this.index)),a.dataset=o,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=s,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",s){let o=n==="active",a=this._cachedDataOpts,r=t+"-"+n,l=a[r],c=this.enableOptionSharing&&de(s);if(l)return Yo(l,c);let h=this.chart.config,d=h.datasetElementScopeKeys(this._type,t),u=o?[`${t}Hover`,"hover",t,""]:[t,""],f=h.getOptionScopes(this.getDataset(),d),g=Object.keys(G.elements[t]),p=()=>this.getContext(s,o,n),m=h.resolveNamedOptions(f,g,p,u);return m.$shared&&(m.$shared=c,a[r]=Object.freeze(Yo(m,c))),m}_resolveAnimations(t,n,s){let o=this.chart,a=this._cachedDataOpts,r=`animation-${n}`,l=a[r];if(l)return l;let c;if(o.options.animation!==!1){let d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),f=d.getOptionScopes(this.getDataset(),u);c=d.createResolver(f,this.getContext(t,s,n))}let h=new Ci(o,c&&c.animations);return c&&c._cacheable&&(a[r]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||yn(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){let s=this.resolveDataElementOptions(t,n),o=this._sharedOptions,a=this.getSharedOptions(s),r=this.includeOptions(n,a)||a!==o;return this.updateSharedOptions(a,n,s),{sharedOptions:a,includeOptions:r}}updateElement(t,n,s,o){yn(o)?Object.assign(t,s):this._resolveAnimations(n,o).update(t,s)}updateSharedOptions(t,n,s){t&&!yn(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,o){t.active=o;let a=this.getStyle(n,o);this._resolveAnimations(n,s,o).update(t,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let n=this._data,s=this._cachedMeta.data;for(let[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];let o=s.length,a=n.length,r=Math.min(a,o);r&&this.parse(0,r),a>o?this._insertElements(o,a-o,t):a<o&&this._removeElements(a,o-a)}_insertElements(t,n,s=!0){let o=this._cachedMeta,a=o.data,r=t+n,l,c=h=>{for(h.length+=n,l=h.length-1;l>=r;l--)h[l]=h[l-n]};for(c(a),l=t;l<r;++l)a[l]=new this.dataElementType;this._parsing&&c(o._parsed),this.parse(t,n),s&&this.updateElements(a,t,n,"reset")}updateElements(t,n,s,o){}_removeElements(t,n){let s=this._cachedMeta;if(this._parsing){let o=s._parsed.splice(t,n);s._stacked&&Oe(s,o)}s.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[n,s,o]=t;this[n](s,o)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);let s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return e})();function Wl(e,i){if(!e._cache.$bar){let t=e.getMatchingVisibleMetas(i),n=[];for(let s=0,o=t.length;s<o;s++)n=n.concat(t[s].controller.getAllParsedValues(e));e._cache.$bar=Zi(n.sort((s,o)=>s-o))}return e._cache.$bar}function Vl(e){let i=e.iScale,t=Wl(i,e.type),n=i._length,s,o,a,r,l=()=>{a===32767||a===-32768||(de(r)&&(n=Math.min(n,Math.abs(a-r)||n)),r=a)};for(s=0,o=t.length;s<o;++s)a=i.getPixelForValue(t[s]),l();for(r=void 0,s=0,o=i.ticks.length;s<o;++s)a=i.getPixelForTick(s),l();return n}function Hl(e,i,t,n){let s=t.barThickness,o,a;return z(s)?(o=i.min*t.categoryPercentage,a=t.barPercentage):(o=s*n,a=1),{chunk:o/n,ratio:a,start:i.pixels[e]-o/2}}function jl(e,i,t,n){let s=i.pixels,o=s[e],a=e>0?s[e-1]:null,r=e<s.length-1?s[e+1]:null,l=t.categoryPercentage;a===null&&(a=o-(r===null?i.end-i.start:r-o)),r===null&&(r=o+o-a);let c=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/n,ratio:t.barPercentage,start:c}}function $l(e,i,t,n){let s=t.parse(e[0],n),o=t.parse(e[1],n),a=Math.min(s,o),r=Math.max(s,o),l=a,c=r;Math.abs(a)>Math.abs(r)&&(l=r,c=a),i[t.axis]=c,i._custom={barStart:l,barEnd:c,start:s,end:o,min:a,max:r}}function Va(e,i,t,n){return $(e)?$l(e,i,t,n):i[t.axis]=t.parse(e,n),i}function Uo(e,i,t,n){let s=e.iScale,o=e.vScale,a=s.getLabels(),r=s===o,l=[],c,h,d,u;for(c=t,h=t+n;c<h;++c)u=i[c],d={}
1,d[s.axis]=r||s.parse(a[c],c),l.push(Va(u,d,o,c));return l}function Sn(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function Yl(e,i,t){return e!==0?gt(e):(i.isHorizontal()?1:-1)*(i.min>=t?1:-1)}function Ul(e){let i,t,n,s,o;return e.horizontal?(i=e.base>e.x,t="left",n="right"):(i=e.base<e.y,t="bottom",n="top"),i?(s="end",o="start"):(s="start",o="end"),{start:t,end:n,reverse:i,top:s,bottom:o}}function Gl(e,i,t,n){let s=i.borderSkipped,o={};if(!s){e.borderSkipped=o;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:a,end:r,reverse:l,top:c,bottom:h}=Ul(e);s==="middle"&&t&&(e.enableBorderRadius=!0,(t._top||0)===n?s=c:(t._bottom||0)===n?s=h:(o[Go(h,a,r,l)]=!0,s=c)),o[Go(s,a,r,l)]=!0,e.borderSkipped=o}function Go(e,i,t,n){return n?(e=Xl(e,i,t),e=Xo(e,t,i)):e=Xo(e,i,t),e}function Xl(e,i,t){return e===i?t:e===t?i:e}function Xo(e,i,t){return e==="start"?i:e==="end"?t:e}function Kl(e,{inflateAmount:i},t){e.inflateAmount=i==="auto"?t===1?.33:0:i}var ql=(()=>{class e extends Nt{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,n,s,o){return Uo(t,n,s,o)}parseArrayData(t,n,s,o){return Uo(t,n,s,o)}parseObjectData(t,n,s,o){let{iScale:a,vScale:r}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=a.axis==="x"?l:c,d=r.axis==="x"?l:c,u=[],f,g,p,m;for(f=s,g=s+o;f<g;++f)m=n[f],p={},p[a.axis]=a.parse(wt(m,h),f),u.push(Va(wt(m,d),p,r,f));return u}updateRangeFromParsed(t,n,s,o){super.updateRangeFromParsed(t,n,s,o);let a=s._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let n=this._cachedMeta,{iScale:s,vScale:o}=n,a=this.getParsed(t),r=a._custom,l=Sn(r)?"["+r.start+", "+r.end+"]":""+o.getLabelForValue(a[o.axis]);return{label:""+s.getLabelForValue(a[s.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,s,o){let a=o==="reset",{index:r,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),h=l.isHorizontal(),d=this._getRuler(),{sharedOptions:u,includeOptions:f}=this._getSharedOptions(n,o);for(let g=n;g<n+s;g++){let p=this.getParsed(g),m=a||z(p[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(g),b=this._calculateBarIndexPixels(g,d),_=(p._stacks||{})[l.axis],y={horizontal:h,base:m.base,enableBorderRadius:!_||Sn(p._custom)||r===_._top||r===_._bottom,x:h?m.head:b.center,y:h?b.center:m.head,height:h?b.size:Math.abs(m.size),width:h?Math.abs(m.size):b.size};f&&(y.options=u||this.resolveDataElementOptions(g,t[g].active?"active":o));let v=y.options||t[g].options;Gl(y,v,_,r),Kl(y,v,d.ratio),this.updateElement(t[g],g,y,o)}}_getStacks(t,n){let{iScale:s}=this._cachedMeta,o=s.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),a=s.options.stacked,r=[],l=this._cachedMeta.controller.getParsed(n),c=l&&l[s.axis],h=d=>{let u=d._parsed.find(g=>g[s.axis]===c),f=u&&u[d.vScale.axis];if(z(f)||isNaN(f))return!0};for(let d of o)if(!(n!==void 0&&h(d))&&((a===!1||r.indexOf(d.stack)===-1||a===void 0&&d.stack===void 0)&&r.push(d.stack),d.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){let o=this._getStacks(t,s),a=n!==void 0?o.indexOf(n):-1;return a===-1?o.length-1:a}_getRuler(){let t=this.options,n=this._cachedMeta,s=n.iScale,o=[],a,r;for(a=0,r=n.data.length;a<r;++a)o.push(s.getPixelForValue(this.getParsed(a)[s.axis],a));let l=t.barThickness;return{min:l||Vl(n),pixels:o,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:n,_stacked:s,index:o},options:{base:a,minBarLength:r}}=this,l=a||0,c=this.getParsed(t),h=c._custom,d=Sn(h),u=c[n.axis],f=0,g=s?this.applyStack(n,c,s):u,p,m;g!==u&&(f=g-u,g=u),d&&(u=h.barStart,g=h.barEnd-h.barStart,u!==0&&gt(u)!==gt(h.barEnd)&&(f=0),f+=u);let b=!z(a)&&!d?a:f,_=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?p=n.getPixelForValue(f+g):p=_,m=p-_,Math.abs(m)<r){m=Yl(m,n,l)*r,u===l&&(_-=m/2);let y=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),x=Math.min(y,v),S=Math.max(y,v);_=Math.max(Math.min(_,S),x),p=_+m,s&&!d&&(c._stacks[n.axis]._visualValues[o]=n.getValueForPixel(p)-n.getValueForPixel(_))}if(_===n.getPixelForValue(l)){let y=gt(m)*n.getLineWidthForValue(l)/2;_+=y,m-=y}return{size:m,base:_,head:p,center:p+m/2}}_calculateBarIndexPixels(t,n){let s=n.scale,o=this.options,a=o.skipNull,r=L(o.maxBarThickness,1/0),l,c;if(n.grouped){let h=a?this._getStackCount(t):n.stackCount,d=o.barThickness==="flex"?jl(t,n,o,h):Hl(t,n,o,h),u=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);l=d.start+d.chunk*u+d.chunk/2,c=Math.min(r,d.chunk*d.ratio)}else l=s.getPixelForValue(this.getParsed(t)[s.axis],t),c=Math.min(r,n.min*n.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){let t=this._cachedMeta,n=t.vScale,s=t.data,o=s.length,a=0;for(;a<o;++a)this.getParsed(a)[n.axis]!==null&&!s[a].hidden&&s[a].draw(this._ctx)}}return e})(),Zl=(()=>{class e extends Nt{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,s,o){let a=super.parsePrimitiveData(t,n,s,o);for(let r=0;r<a.length;r++)a[r]._custom=this.resolveDataElementOptions(r+s).radius;return a}parseArrayData(t,n,s,o){let a=super.parseArrayData(t,n,s,o);for(let r=0;r<a.length;r++){let l=n[s+r];a[r]._custom=L(l[2],this.resolveDataElementOptions(r+s).radius)}return a}parseObjectData(t,n,s,o){let a=super.parseObjectData(t,n,s,o);for(let r=0;r<a.length;r++){let l=n[s+r];a[r]._custom=L(l&&l.r&&+l.r,this.resolveDataElementOptions(r+s).radius)}return a}getMaxOverflow(){let t=this._cachedMeta.data,n=0;for(let s=t.length-1;s>=0;--s)n=Math.max(n,t[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(t){let n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:o,yScale:a}=n,r=this.getParsed(t),l=o.getLabelForValue(r.x),c=a.getLabelForValue(r.y),h=r._custom;return{label:s[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){let n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,s,o){let a=o==="reset",{iScale:r,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(n,o),d=r.axis,u=l.axis;for(let f=n;f<n+s;f++){let g=t[f],p=!a&&this.getParsed(f),m={},b=m[d]=a?r.getPixelForDecimal(.5):r.getPixelForValue(p[d]),_=m[u]=a?l.getBasePixel():l.getPixelForValue(p[u]);m.skip=isNaN(b)||isNaN(_),h&&(m.options=c||this.resolveDataElementOptions(f,g.active?"active":o),a&&(m.options.radius=0)),this.updateElement(g,f,m,o)}}resolveDataElementOptions(t,n){let s=this.getParsed(t),o=super.resolveDataElementOptions(t,n);o.$shared&&(o=Object.assign({},o,{$shared:!1}));let a=o.radius;return n!=="active"&&(o.radius=0),o.radius+=L(s&&s._custom,a),o}}return e})();function Ql(e,i,t){let n=1,s=1,o=0,a=0;if(i<U){let r=e,l=r+i,c=Math.cos(r),h=Math.sin(r),d=Math.cos(l),u=Math.sin(l),f=(y,v,x)=>fe(y,r,l,!0)?1:Math.max(v,v*t,x,x*t),g=(y,v,x)=>fe(y,r,l,!0)?-1:Math.min(v,v*t,x,x*t),p=f(0,c,d),m=f(Z,h,u),b=g(Y,c,d),_=g(Y+Z,h,u);n=(p-b)/2,s=(m-_)/2,o=-(p+b)/2,a=-(m+_)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:a}}var Kn=(()=>{class e extends Nt{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}}
1,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let n=t.data;if(n.labels.length&&n.datasets.length){let{labels:{pointStyle:s,color:o}}=t.legend.options;return n.labels.map((a,r)=>{let c=t.getDatasetMeta(0).controller.getStyle(r);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}};constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){let s=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=s;else{let a=c=>+s[c];if(B(s[t])){let{key:c="value"}=this._parsing;a=h=>+wt(s[h],c)}let r,l;for(r=t,l=t+n;r<l;++r)o._parsed[r]=a(r)}}_getRotation(){return ut(this.options.rotation-90)}_getCircumference(){return ut(this.options.circumference)}_getRotationExtents(){let t=U,n=-U;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)&&this.chart.getDatasetMeta(s).type===this._type){let o=this.chart.getDatasetMeta(s).controller,a=o._getRotation(),r=o._getCircumference();t=Math.min(t,a),n=Math.max(n,a+r)}return{rotation:t,circumference:n-t}}update(t){let n=this.chart,{chartArea:s}=n,o=this._cachedMeta,a=o.data,r=this.getMaxBorderWidth()+this.getMaxOffset(a
vendor: 5,106 bytes, line 1
1)+this.options.spacing,l=Math.max((Math.min(s.width,s.height)-r)/2,0),c=Math.min(uo(this.options.cutout,l),1),h=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:g,offsetX:p,offsetY:m}=Ql(u,d,c),b=(s.width-r)/f,_=(s.height-r)/g,y=Math.max(Math.min(b,_)/2,0),v=$i(this.options.radius,y),x=Math.max(v*c,0),S=(v-x)/this._getVisibleDatasetWeightTotal();this.offsetX=p*v,this.offsetY=m*v,o.total=this.calculateTotal(),this.outerRadius=v-S*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-S*h,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){let s=this.options,o=this._cachedMeta,a=this._getCircumference();return n&&s.animation.animateRotate||!this.chart.getDataVisibility(t)||o._parsed[t]===null||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*a/U)}updateElements(t,n,s,o){let a=o==="reset",r=this.chart,l=r.chartArea,h=r.options.animation,d=(l.left+l.right)/2,u=(l.top+l.bottom)/2,f=a&&h.animateScale,g=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(n,o),_=this._getRotation(),y;for(y=0;y<n;++y)_+=this._circumference(y,a);for(y=n;y<n+s;++y){let v=this._circumference(y,a),x=t[y],S={x:d+this.offsetX,y:u+this.offsetY,startAngle:_,endAngle:_+v,circumference:v,outerRadius:p,innerRadius:g};b&&(S.options=m||this.resolveDataElementOptions(y,x.active?"active":o)),_+=v,this.updateElement(x,y,S,o)}}calculateTotal(){let t=this._cachedMeta,n=t.data,s=0,o;for(o=0;o<n.length;o++){let a=t._parsed[o];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(o)&&!n[o].hidden&&(s+=Math.abs(a))}return s}calculateCircumference(t){let n=this._cachedMeta.total;return n>0&&!isNaN(t)?U*(Math.abs(t)/n):0}getLabelAndValue(t){let n=this._cachedMeta,s=this.chart,o=s.data.labels||[],a=ge(n._parsed[t],s.options.locale);return{label:o[t]||"",value:a}}getMaxBorderWidth(t){let n=0,s=this.chart,o,a,r,l,c;if(!t){for(o=0,a=s.data.datasets.length;o<a;++o)if(s.isDatasetVisible(o)){r=s.getDatasetMeta(o),t=r.data,l=r.controller;break}}if(!t)return 0;for(o=0,a=t.length;o<a;++o)c=l.resolveDataElementOptions(o),c.borderAlign!=="inner"&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let s=0,o=t.length;s<o;++s){let a=this.resolveDataElementOptions(s);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let s=0;s<t;++s)this.chart.isDatasetVisible(s)&&(n+=this._getRingWeight(s));return n}_getRingWeight(t){return Math.max(L(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return e})(),Jl=(()=>{class e extends Nt{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let n=this._cachedMeta,{dataset:s,data:o=[],_dataset:a}=n,r=this.chart._animationsDisabled,{start:l,count:c}=tn(n,o,r);this._drawStart=l,this._drawCount=c,en(n)&&(l=0,c=o.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!a._decimated,s.points=o;let h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:h},t),this.updateElements(o,l,c,t)}updateElements(t,n,s,o){let a=o==="reset",{iScale:r,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:d,includeOptions:u}=this._getSharedOptions(n,o),f=r.axis,g=l.axis,{spanGaps:p,segment:m}=this.options,b=Xt(p)?p:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||a||o==="none",y=n+s,v=t.length,x=n>0&&this.getParsed(n-1);for(let S=0;S<v;++S){let P=t[S],w=_?P:{};if(S<n||S>=y){w.skip=!0;continue}let T=this.getParsed(S),O=z(T[g]),A=w[f]=r.getPixelForValue(T[f],S),N=w[g]=a||O?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,T,c):T[g],S);w.skip=isNaN(A)||isNaN(N)||O,w.stop=S>0&&Math.abs(T[f]-x[f])>b,m&&(w.parsed=T,w.raw=h.data[S]),u&&(w.options=d||this.resolveDataElementOptions(S,P.active?"active":o)),_||this.updateElement(P,S,w,o),x=T}}getMaxOverflow(){let t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,o=t.data||[];if(!o.length)return s;let a=o[0].size(this.resolveDataElementOptions(0)),r=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(s,a,r)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return e})(),Ha=(()=>{class e extends Nt{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let n=t.data;if(n.labels.length&&n.datasets.length){let{labels:{pointStyle:s,color:o}}=t.legend.options;return n.labels.map((a,r)=>
1{let c=t.getDatasetMeta(0).controller.getStyle(r);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let n=this._cachedMeta,s=this.chart,o=s.data.labels||[],a=ge(n._parsed[t].r,s.options.locale);return{label:o[t]||"",value:a}}parseObjectData(t,n,s,o){return dn.bind(this)(t,n,s,o)}update(t){let n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){let t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(a<n.min&&(n.min=a),a>n.max&&(n.max=a))}),n}_updateRadius(){let t=this.chart,n=t.chartArea,s=t.options,o=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(o/2,0),r=Math.max(s.cutoutPercentage?a/100*s.cutoutPercentage:1,0),l=(a-r)/t.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,n,s,o){let a=o==="reset",r=this.chart,c=r.options.animation,h=this._cachedMeta.rScale,d=h.xCenter,u=h.yCenter,f=h.getIndexAngle(0)-.5*Y,g=f,p,m=360/this.countVisibleElements();for(p=0;p<n;++p)g+=this._computeAngle(p,o,m);for(p=n;p<n+s;p++){let b=t[p],_=g,y=g+this._computeAngle(p,o,m),v=r.getDataVisibility(p)?h.getDistanceFromCenterForValue(this.getParsed(p).r):0;g=y,a&&(c.animateScale&&(v=0),c.animateRotate&&(_=y=f));let x={x:d,y:u,innerRadius:0,outerRadius:v,startAngle:_,endAngle:y,options:this.resolveDataElementOptions(p,b.active?"active":o)};this.updateElement(b,p,x,o)}}countVisibleElements(){let t=this._cachedMeta,n=0;return t.data.forEach((s,o)=>{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&n++}),n}_computeAngle(t,n,s){return this.chart.getDataVisibility(t)?ut(this.resolveDataElementOptions(t,n).angle||s):0}}return e})(),tc=(()=>{class e extends Kn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),ec=(()=>{class e extends Nt{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let n=this._cachedMeta.vScale,s=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(s[n.axis])}}parseObjectData(t,n,s,o){return dn.bind(this)(t,n,s,o)}update(t){let n=this._cachedMeta,s=n.dataset,o=n.data||[],a=n.iScale.getLabels();if(s.points=o,t!=="resize"){let r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:r};this.updateElement(s,void 0,l,t)}this.updateElements(o,0,o.length,t)}updateElements(t,n,s,o){let a=this._cachedMeta.rScale,r=o==="reset";for(let l=n;l<n+s;l++){let c=t[l],h=this.resolveDataElementOptions(l,c.active?"active":o),d=a.getPointPositionForValue(l,this.getParsed(l).r),u=r?a.xCenter:d.x,f=r?a.yCenter:d.y,g={x:u,y:f,angle:d.angle,skip:isNaN(u)||isNaN(f),options:h};this.updateElement(c,l,g,o)}}}return e})(),ic=(()=>{class e extends Nt{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){let n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:o,yScale:a}=n,r=this.getParsed(t),l=o.getLabelForValue(r.x),c=a.getLabelForValue(r.y);return{label:s[t]||"",value:"("+l+", "+c+")"}}update(t){let n=this._cachedMeta,{data:s=[]}=n,o=this.chart._animationsDisabled,{start:a,count:r}=tn(n,s,o);if(this._drawStart=a,this._drawCount=r,en(n)&&(a=0,r=s.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=s;let h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:h},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(s,a,r,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,s,o){let a=o==="reset",{iScale:r,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,d=this.resolveDataElementOptions(n,o),u=this.getSharedOptions(d),f=this.includeOptions(o,u),g=r.axis,p=l.axis,{spanGaps:m,segment:b}=this.options,_=Xt(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||a||o==="none",v=n>0&&this.getParsed(n-1);for(let x=n;x<n+s;++x){let S=t[x],P=this.getParsed(x),w=y?S:{},T=z(P[p]),O=w[g]=r.getPixelForValue(P[g],x),A=w[p]=a||T?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,P,c):P[p],x);w.skip=isNaN(O)||isNaN(A)||T,w.stop=x>0&&Math.abs(P[g]-v[g])>
vendor: 5,065 bytes, line 1
1_,b&&(w.parsed=P,w.raw=h.data[x]),f&&(w.options=u||this.resolveDataElementOptions(x,S.active?"active":o)),y||this.updateElement(S,x,w,o),v=P}this.updateSharedOptions(u,o,d)}getMaxOverflow(){let t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let s=t.dataset,o=s.options&&s.options.borderWidth||0;if(!n.length)return o;let a=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(o,a,r)/2}}return e})(),nc=Object.freeze({__proto__:null,BarController:ql,BubbleController:Zl,DoughnutController:Kn,LineController:Jl,PieController:tc,PolarAreaController:Ha,RadarController:ec,ScatterController:ic});function qt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var En=class e{static override(i){Object.assign(e.prototype,i)}options;constructor(i){this.options=i||{}}init(){}formats(){return qt()}parse(){return qt()}format(){return qt()}add(){return qt()}diff(){return qt()}startOf(){return qt()}endOf(){return qt()}},sc={_date:En};function oc(e,i,t,n){let{controller:s,data:o,_sorted:a}=e,r=s._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(r&&i===r.axis&&i!=="r"&&a&&o.length){let c=r._reversePixels?bo:mt;if(n){if(s._sharedOptions){let h=o[0],d=typeof h.getRange=="function"&&h.getRange(i);if(d){let u=c(o,i,t-d),f=c(o,i,t+d);return{lo:u.lo,hi:f.hi}}}}else{let h=c(o,i,t);if(l){let{vScale:d}=s._cachedMeta,{_parsed:u}=e,f=u.slice(0,h.lo+1).reverse().findIndex(p=>!z(p[d.axis]));h.lo-=Math.max(0,f);let g=u.slice(h.hi).findIndex(p=>!z(p[d.axis]));h.hi+=Math.max(0,g)}return h}}return{lo:0,hi:o.length-1}}function je(e,i,t,n,s){let o=e.getSortedVisibleDatasetMetas(),a=t[i];for(let r=0,l=o.length;r<l;++r){let{index:c,data:h}=o[r],{lo:d,hi:u}=oc(o[r],i,a,s);for(let f=d;f<=u;++f){let g=h[f];g.skip||n(g,c,f)}}}function ac(e){let i=e.indexOf("x")!==-1,t=e.indexOf("y")!==-1;return function(n,s){let o=i?Math.abs(n.x-s.x):0,a=t?Math.abs(n.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function Cn(e,i,t,n,s){let o=[];return!s&&!e.isPointInArea(i)||je(e,t,i,function(r,l,c){!s&&!_t(r,e.chartArea,0)||r.inRange(i.x,i.y,n)&&o.push({element:r,datasetIndex:l,index:c})},!0),o}function rc(e,i,t,n){let s=[];function o(a,r,l){let{startAngle:c,endAngle:h}=a.getProps(["startAngle","endAngle"],n),{angle:d}=Ki(a,{x:i.x,y:i.y});fe(d,c,h)&&s.push({element:a,datasetIndex:r,index:l})}return je(e,t,i,o),s}function lc(e,i,t,n,s,o){let a=[],r=ac(t),l=Number.POSITIVE_INFINITY;function c(h,d,u){let f=h.inRange(i.x,i.y,s);if(n&&!f)return;let g=h.getCenterPoint(s);if(!(!!o||e.isPointInArea(g))&&!f)return;let m=r(i,g);m<l?(a=[{element:h,datasetIndex:d,index:u}],l=m):m===l&&a.push({element:h,datasetIndex:d,index:u})}return je(e,t,i,c),a}function vn(e,i,t,n,s,o){return!o&&!e.isPointInArea(i)?[]:t==="r"&&!n?rc(e,i,t,s):lc(e,i,t,n,s,o)}function Ko(e,i,t,n,s){let o=[],a=t==="x"?"inXRange":"inYRange",r=!1;return je(e,t,i,(l,c,h)=>{l[a]&&l[a](i[t],s)&&(o.push({element:l,datasetIndex:c,index:h}),r=r||l.inRange(i.x,i.y,s))}),n&&!r?[]:o}var cc={evaluateInteractionItems:je,modes:{index(e,i,t,n){let s=zt(i,e),o=t.axis||"x",a=t.includeInvisible||!1,r=t.intersect?Cn(e,s,o,n,a):vn(e,s,o,!1,n,a),l=[];return r.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{let h=r[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(e,i,t,n){let s=zt(i,e),o=t.axis||"xy",a=t.includeInvisible||!1,r=t.intersect?Cn(e,s,o,n,a):vn(e,s,o,!1,n,a);if(r.length>0){let l=r[0].datasetIndex,c=e.getDatasetMeta(l).data;r=[];for(let h=0;h<c.length;++h)r.push({element:c[h],datasetIndex:l,index:h})}return r},point(e,i,t,n){let s=zt(i,e),o=t.axis||"xy",a=t.includeInvisible||!1;return Cn(e,s,o,n,a)},nearest(e,i,t,n){let s=zt(i,e),o=t.axis||"xy",a=t.includeInvisible||!1;return vn(e,s,o,t.intersect,n,a)},x(e,i,t,n){let s=zt(i,e);return Ko(e,s,"x",t.intersect,n)},y(e,i,t,n){let s=zt(i,e);return Ko(e,s,"y",t.intersect,n)}}},ja=["left","top","right","bottom"];function Re(e,i){return e.filter(t=>t.pos===i)}function qo(e,i){return e.filter(t=>ja.indexOf(t.pos)===-1&&t.box.axis===i)}function Ie(e,i){return e.sort((t,n)=>{let s=i?n:t,o=i?t:n;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function hc(e){let i=[],t,n,s,o,a,r;for(t=0,n=(e||[]).length;t<n;++t)s=e[t],{position:o,options:{stack:a,stackWeight:r=1}}=s,i.push({index:t,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:a&&o+a,stackWeight:r});return i}function dc(e){let i={};for(let t of e){let{stack:n,pos:s,stackWeight:o}=t;if(!n||!ja.includes(s))continue;let a=i[n]||(i[n]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return i}function uc(e,i){let t=dc(e),{vBoxMaxWidth:n,hBoxMaxHeight:s}=i,o,a,r;for(o=0,a=e.length;o<a;++o){r=e[o];let{fullSize:l}=r.box,c=t[r.stack],h=c&&r.stackWeight/c.weight;r.horizontal?(r.width=h?h*n:l&&i.availableWidth,r.height=s):(r.width=n,r.he
vendor: 4,098 bytes, line 1
1ight=h?h*s:l&&i.availableHeight)}return t}function fc(e){let i=hc(e),t=Ie(i.filter(c=>c.box.fullSize),!0),n=Ie(Re(i,"left"),!0),s=Ie(Re(i,"right")),o=Ie(Re(i,"top"),!0),a=Ie(Re(i,"bottom")),r=qo(i,"x"),l=qo(i,"y");return{fullSize:t,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(a).concat(r),chartArea:Re(i,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(a).concat(r)}}function Zo(e,i,t,n){return Math.max(e[t],i[t])+Math.max(e[n],i[n])}function $a(e,i){e.top=Math.max(e.top,i.top),e.left=Math.max(e.left,i.left),e.bottom=Math.max(e.bottom,i.bottom),e.right=Math.max(e.right,i.right)}function gc(e,i,t,n){let{pos:s,box:o}=t,a=e.maxPadding;if(!B(s)){t.size&&(e[s]-=t.size);let d=n[t.stack]||{size:0,count:1};d.size=Math.max(d.size,t.horizontal?o.height:o.width),t.size=d.size/d.count,e[s]+=t.size}o.getPadding&&$a(a,o.getPadding());let r=Math.max(0,i.outerWidth-Zo(a,e,"left","right")),l=Math.max(0,i.outerHeight-Zo(a,e,"top","bottom")),c=r!==e.w,h=l!==e.h;return e.w=r,e.h=l,t.horizontal?{same:c,other:h}:{same:h,other:c}}function pc(e){let i=e.maxPadding;function t(n){let s=Math.max(i[n]-e[n],0);return e[n]+=s,s}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function mc(e,i){let t=i.maxPadding;function n(s){let o={left:0,top:0,right:0,bottom:0};return s.forEach(a=>{o[a]=Math.max(i[a],t[a])}),o}return n(e?["left","right"]:["top","bottom"])}function Be(e,i,t,n){let s=[],o,a,r,l,c,h;for(o=0,a=e.length,c=0;o<a;++o){r=e[o],l=r.box,l.update(r.width||i.w,r.height||i.h,mc(r.horizontal,i));let{same:d,other:u}=gc(i,t,r,n);c|=d&&s.length,h=h||u,l.fullSize||s.push(r)}return c&&Be(s,i,t,n)||h}function fi(e,i,t,n,s){e.top=t,e.left=i,e.right=i+n,e.bottom=t+s,e.width=n,e.height=s}function Qo(e,i,t,n){let s=t.padding,{x:o,y:a}=i;for(let r of e){let l=r.box,c=n[r.stack]||{count:1,placed:0,weight:1},h=r.stackWeight/c.weight||1;if(r.horizontal){let d=i.w*h,u=c.size||l.height;de(c.start)&&(a=c.start),l.fullSize?fi(l,s.left,a,t.outerWidth-s.right-s.left,u):fi(l,i.left+c.placed,a,d,u),c.start=a,c.placed+=d,a=l.bottom}else{let d=i.h*h,u=c.size||l.width;de(c.start)&&(o=c.start),l.fullSize?fi(l,o,s.top,u,t.outerHeight-s.bottom-s.top):fi(l,o,i.top+c.placed,u,d),c.start=o,c.placed+=d,o=l.right}}i.x=o,i.y=a}var ot={addBox(e,i){e.boxes||(e.boxes=[]),i.fullSize=i.fullSize||!1,i.position=i.position||"top",i.weight=i.weight||0,i._layers=i._layers||function(){return[{z:0,draw(t){i.draw(t)}}]},e.boxes.push(i)},removeBox(e,i){let t=e.boxes?e.boxes.indexOf(i):-1;t!==-1&&e.boxes.splice(t,1)},configure(e,i,t){i.fullSize=t.fullSize,i.position=t.position,i.weight=t.weight},update(e,i,t,n){if(!e)return;let s=nt(e.options.layout.padding),o=Math.max(i-s.width,0),a=Math.max(t-s.height,0),r=fc(e.boxes),l=r.vertical,c=r.horizontal;W(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});let h=l.reduce((p,m)=>m.box.options&&m.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:i,outerHeight:t,padding:s,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/h,hBoxMaxHeight:a/2}),u=Object.assign({},s);$a(u,nt(n));let f=Object.assign({maxPadding:u,w:o,h:a,x:s.left,y:s.top},s),g=uc(l.concat(c),d);Be(r.fullSize,f,d,g),Be(l,f,d,g),Be(c,f,d,g)&&Be(l,f,d,g),pc(f),Qo(r.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,Qo(r.rightAndBottom,f,d,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},W(r.chartArea,p=>{let m=p.box;Object.assign(m,e.chartArea),m.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}},vi=class{acquireContext(i,t){}releaseContext(i){return!1}addEventListener(i,t,n){}removeEventListener(i,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(i,t,n,s){return t=Math.max(0,t||i.width),n=n||i.height,{width:t,height:Math.max(0,s?Math.floor(t/s):n)}}isAttached(i){return!0}updateConfig(i){}},Ln=class extends vi{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}},yi="$chartjs",_c={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mou
1seout",pointerout:"mouseout"},Jo=e=>e===null||e==="";function bc(e,i){let t=e.style,n=e.getAttribute("height"),s=e.getAttribute("width");if(e[yi]={initial:{height:n,width:s,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",Jo(s)){let o=fn(e,"width");o!==void 0&&(e.width=o)}if(Jo(n))if(e.style.height==="")e.height=e.width/(i||2);else{let o=fn(e,"height");o!==void 0&&(e.height=o)}return e}var Ya=Io?{passive:!0}:!1;function xc(e,i,t){e&&e.addEventListener(i,t,Ya)}function yc(e,i,t){e&&e.canvas&&e.canvas.removeEventListener(i,t,Ya)}function Sc(e,i){let t=_c[e.type]||e.type,{x:n,y:s}=zt(e,i);return{type:t,chart:i,native:e,x:n!==void 0?n:null,y:s!==void 0?s:null}}function ki(e,i){for(let t of e)if(t===i||t.contains(i))return!0}function Cc(e,i,t){let n=e.canvas,s=new MutationObserver(o=>{let a=!1;for(let r of o)a=a||ki(r.addedNodes,n),a=a&&!ki(r.removedNodes,n);a&&t()});return s.observe(document,{childList:!0,subtree:!0}),s}function vc(e,i,t){let n=e.canvas,s=new MutationObserver(o=>{let a=!1;for(let r of o)a=a||ki(r.removedNodes,n),a=a&&!ki(r.addedNodes,n);a&&t()});return s.observe(document,{childList:!0,subtree:!0}),s}var We=new Map,ta=0;function Ua(){let e=window.devicePixelRatio;e!==ta&&(ta=e,We.forEach((i,t)=>{t.currentDevicePixelRatio!==e&&i()}))}function kc(e,i){We.size||window.addEventListener("resize",Ua),We.set(e,i)}function Mc(e){We.delete(e),We.size||window.removeEventListener("resize",Ua)}function wc(e,i,t){let n=e.canvas,s=n&&di(n);if(!s)return;let o=Ji((r,l)=>{let c=s.clientWidth;t(r,l),c<s.clientWidth&&t()},window),a=new ResizeObserver(r=>{let l=r[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return a.observe(s),kc(e,o),a}function kn(e,i,t){t&&t.disconnect(),i==="resize"&&Mc(e)}function Pc(e,i,t){let n=e.canvas,s=Ji(o=>{e.ctx!==null&&t(Sc(o,e))},e);return xc(n,i,s),s}var An=class extends vi{acquireContext(i,t){let n=i&&i.getContext&&i.getContext("2d");return n&&n.canvas===i?(bc(i,t),n):null}releaseContext(i){let t=i.canvas;if(!t[yi])return!1;let n=t[yi].initial;["height","width"].forEach(o=>{let a=n[o];z(a)?t.removeAttribute(o):t.setAttribute(o,a)});let s=n.style||{};return Object.keys(s).forEach(o=>{t.style[o]=s[o]}),t.width=t.width,delete t[yi],!0}addEventListener(i,t,n){this.removeEventListener(i,t);let s=i.$proxies||(i.$proxies={}),a={attach:Cc,detach:vc,resize:wc}[t]||Pc;s[t]=a(i,t,n)}removeEventListener(i,t){let n=i.$proxies||(i.$proxies={}),s=n[t];if(!s)return;({attach:kn,detach:kn,resize:kn}[t]||yc)(i,t,s),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,t,n,s){return Ro(i,t,n,s)}isAttached(i){let t=i&&di(i);return!!(t&&t.isConnected)}};function Dc(e){return!hi()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Ln:An}var pt=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(i){let{x:t,y:n}=this.getProps(["x","y"],i);return{x:t,y:n}}hasValue(){return Xt(this.x)&&Xt(this.y)}getProps(i,t){let n=this.$animations;if(!t||!n)return this;let s={};return i.forEach(o=>{s[o]=n[o]&&n[o].active()?n[o]._to:this[o]}),s}};function Tc(e,i){let t=e.options.ticks,n=Ec(e),s=Math.min(t.maxTicksLimit||n,n),o=t.major.enabled?Ac(i):[],a=o.length,r=o[0],l=o[a-1],c=[];if(a>s)return Oc(i,c,o,a/s),c;let h=Lc(o,i,s);if(a>0){let d,u,f=a>1?Math.round((l-r)/(a-1)):null;for(gi(i,c,h,z(f)?0:r-f,r),d=0,u=a-1;d<u;d++)gi(i,c,h,o[d],o[d+1]);return gi(i,c,h,l,z(f)?i.length:l+f),c}return gi(i,c,h),c}function Ec(e){let i=e.options.offset,t=e._tickSize(),n=e._length/t+(i?0:1),s=e._maxLength/t;return Math.floor(Math.min(n,s))}function Lc(e,i,t){let n=Rc(e),s=i.length/t;if(!n)return Math.max(s,1);let o=po(n);for(let a=0,r=o.length-1;a<r;a++){let l=o[a];if(l>s)return l}return Math.max(s,1)}function Ac(e){let i=[],t,n;for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}function Oc(e,i,t,n){let s=0,o=t[0],a;for(n=Math.ceil(n),a=0;a<e.length;a++)a===o&&(i.push(e[a]),s++,o=t[s*n])}function gi(e,i,t,n,s){let o=L(n,0),a=Math.min(L(s,e.length),e.length),r=0,l,c,h;for(t=Math.ceil(t),s&&(l=s-n,t=l/Math.floor(l/t)),h=o;h<0;)r++,h=Math.round(o+r*t);for(c=Math.max(o,0);c<a;c++)c===h&&(i.push(e[c]),r++,h=Math.round(o+r*t))}function Rc(e){let i=e.length,t,n;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}var Ic=e=>
vendor: 43,785 bytes, line 1
1e==="left"?"right":e==="right"?"left":e,ea=(e,i,t)=>i==="top"||i==="left"?e[i]+t:e[i]-t,ia=(e,i)=>Math.min(i||e,e);function na(e,i){let t=[],n=e.length/i,s=e.length,o=0;for(;o<s;o+=n)t.push(e[Math.floor(o)]);return t}function Fc(e,i,t){let n=e.ticks.length,s=Math.min(i,n-1),o=e._startPixel,a=e._endPixel,r=1e-6,l=e.getPixelForTick(s),c;if(!(t&&(n===1?c=Math.max(l-o,a-l):i===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(s-1))/2,l+=s<i?c:-c,l<o-r||l>a+r)))return l}function zc(e,i){W(e,t=>{let n=t.gc,s=n.length/2,o;if(s>i){for(o=0;o<s;++o)delete t.data[n[o]];n.splice(0,s)}})}function Fe(e){return e.drawTicks?e.tickLength:0}function sa(e,i){if(!e.display)return 0;let t=J(e.font,i),n=nt(e.padding);return($(e.text)?e.text.length:1)*t.lineHeight+n.height}function Bc(e,i){return Pt(e,{scale:i,type:"scale"})}function Nc(e,i,t){return Pt(e,{tick:t,index:i,type:"tick"})}function Wc(e,i,t){let n=oi(e);return(t&&i!=="right"||!t&&i==="right")&&(n=Ic(n)),n}function Vc(e,i,t,n){let{top:s,left:o,bottom:a,right:r,chart:l}=e,{chartArea:c,scales:h}=l,d=0,u,f,g,p=a-s,m=r-o;if(e.isHorizontal()){if(f=it(n,o,r),B(t)){let b=Object.keys(t)[0],_=t[b];g=h[b].getPixelForValue(_)+p-i}else t==="center"?g=(c.bottom+c.top)/2+p-i:g=ea(e,t,i);u=r-o}else{if(B(t)){let b=Object.keys(t)[0],_=t[b];f=h[b].getPixelForValue(_)-m+i}else t==="center"?f=(c.left+c.right)/2-m+i:f=ea(e,t,i);g=it(n,a,s),d=t==="left"?-Z:Z}return{titleX:f,titleY:g,maxWidth:u,rotation:d}}var Qt=class e extends pt{constructor(i){super(),this.id=i.id,this.type=i.type,this.options=void 0,this.ctx=i.ctx,this.chart=i.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(i){this.options=i.setContext(this.getContext()),this.axis=i.axis,this._userMin=this.parse(i.min),this._userMax=this.parse(i.max),this._suggestedMin=this.parse(i.suggestedMin),this._suggestedMax=this.parse(i.suggestedMax)}parse(i,t){return i}getUserBounds(){let{_userMin:i,_userMax:t,_suggestedMin:n,_suggestedMax:s}=this;return i=rt(i,Number.POSITIVE_INFINITY),t=rt(t,Number.NEGATIVE_INFINITY),n=rt(n,Number.POSITIVE_INFINITY),s=rt(s,Number.NEGATIVE_INFINITY),{min:rt(i,n),max:rt(t,s),minDefined:q(i),maxDefined:q(t)}}getMinMax(i){let{min:t,max:n,minDefined:s,maxDefined:o}=this.getUserBounds(),a;if(s&&o)return{min:t,max:n};let r=this.getMatchingVisibleMetas();for(let l=0,c=r.length;l<c;++l)a=r[l].controller.getMinMax(this,i),s||(t=Math.min(t,a.min)),o||(n=Math.max(n,a.max));return t=o&&t>n?n:t,n=s&&t>n?t:n,{min:rt(t,rt(n,t)),max:rt(n,rt(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}getLabelItems(i=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(i))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){H(this.options.beforeUpdate,[this])}update(i,t,n){let{beginAtZero:s,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Do(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=r<this.ticks.length;this._convertTicksToLabels(l?na(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=Tc(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let i=this.options.reverse,t,n;this.isHorizontal()?(t=this.left,n=this.right):(t=this.top,n=this.bottom,i=!i),this._startPixel=t,this._endPixel=n,this._reversePixels=i,this._length=n-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){H(this.options.afterUpdate,[this])}beforeSetDimensions(){H(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){H(this.options.afterSetDimensions,[this])}_callHooks(i){this.chart.notifyPlugins(i,this.getContext()),H(this.options[i],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){H(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(i){let t=this.options.ticks,n,s,o;for(n=0,s=i.length;n<s;n++)o=i[n],o.label=H(t.callback,[o.value,n,i],this)}afterTickToLabelConversion(){H(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){H(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let i=this.options,t=i.ticks,n=ia(this.ticks.length,i.ticks.maxTicksLimit),s=t.minRotation||0,o=t.maxRotation,a=s,r,l,c;if(!this._isVisible()||!t.display||s>=o||n<=1||!this.isHorizontal()){this.labelRotation=s;return}let h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,f=tt(this.chart.width-d,0,this.maxWidth);r=i.offset?this.maxWidth/n:f/(n-1),d+6>r&&(r=f/(n-(i.offset?.5:1)),l=this.maxHeight-Fe(i.grid)-t.padding-sa(i.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),a=ni(Math.min(Math.asin(tt((h.highest.height+6)/r,-1,1)),Math.asin(tt(l/c,-1,1))-Math.asin(tt(u/c,-1,1)))),a=Math.max(s,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){H(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){H(this.options.beforeFit,[this])}fit(){let i={width:0,height:0},{chart:t,options:{ticks:n,title:s,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){let l=sa(s,t.options.font);if(r?(i.width=this.maxWidth,i.height=Fe(o)+l):(i.height=this.maxHeight,i.width=Fe(o)+l),n.display&&this.ticks.length){let{first:c,last:h,widest:d,highest:u}=this._getLabelSizes(),f=n.padding*2,g=ut(this.labelRotation),p=Math.cos(g),m=Math.sin(g);if(r){let b=n.mirror?0:m*d.width+p*u.height;i.height=Math.min(this.maxHeight,i.height+b+f)}else{let b=n.mirror?0:p*d.width+m*u.height;i.width=Math.min(this.maxWidth,i.width+b+f)}this._calculatePadding(c,h,m,p)}}this._handleMargins(),r?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,t,n,s){let{ticks:{align:o,padding:a},position:r}=this.options,l=this.labelRotation!==0,c=r!=="top"&&this.axis==="x";if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),u=0,f=0;l?c?(u=s*i.width,f=n*t.height):(u=n*i.height,f=s*t.width):o==="start"?f=t.width:o==="end"?u=i.width:o!=="inner"&&(u=i.width/2,f=t.width/2),this.paddingLeft=Math.max((u-h+a)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-d+a)*this.width/(this.width-d),0)}else{let h=t.height/2,d=i.height/2;o==="start"?(h=0,d=i.height):o==="end"&&(h=t.height,d=0),this.paddingTop=h+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){H(this.options.afterFit,[this])}isHorizontal(){let{axis:i,position:t}=this.options;return t==="top"||t==="bottom"||i==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){this.beforeTickToLabelConversion(),this.generateTickLabels(i);let t,n;for(t=0,n=i.length;t<n;t++)z(i[t].label)&&(i.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let i=this._labelSizes;if(!i){let t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=na(n,t)),this._labelSizes=i=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return i}_computeLabelSizes(i,t,n){let{ctx:s,_longestTextCache:o}=this,a=[],r=[],l=Math.floor(t/ia(t,n)),c=0,h=0,d,u,f,g,p,m,b,_,y,v,x;for(d=0;d<t;d+=l){if(g=i[d].label,p=this._resolveTickFontOptions(d),s.font=m=p.string,b=o[m]=o[m]||{data:{},gc:[]},_=p.lineHeight,y=v=0,!z(g)&&!$(g))y=De(s,b.data,b.gc,y,g),v=_;else if($(g))for(u=0,f=g.length;u<f;++u)x=g[u],!z(x)&&!$(x)&&(y=De(s,b.data,b.gc,y,x),v+=_);a.push(y),r.push(v),c=Math.max(y,c),h=Math.max(v,h)}zc(o,t);let S=a.indexOf(c),P=r.indexOf(h),w=T=>({width:a[T]||0,height:r[T]||0});return{first:w(0),last:w(t-1),widest:w(S),highest:w(P),widths:a,heights:r}}getLabelForValue(i){return i}getPixelForValue(i,t){return NaN}getValueForPixel(i){}getPixelForTick(i){let t=this.ticks;return i<0||i>t.length-1?null:this.getPixelForValue(t[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);let t=this._startPixel+i*this._length;return _o(this._alignToPixels?Rt(this.chart,t,0):t)}getDecimalForPixel(i){let t=(i-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:i,max:t}=this;return i<0&&t<0?t:i>0&&t>0?i:0}getContext(i){let t=this.ticks||[];if(i>=0&&i<t.length){let n=t[i];return n.$context||(n.$context=Nc(this.getContext(),i,n))}return this.$context||(this.$context=Bc(this.chart.getContext(),this))}_tickSize(){let i=this.options.ticks,t=ut(this.labelRotation),n=Math.abs(Math.cos(t)),s=Math.abs(Math.sin(t)),o=this._getLabelSizes(),a=i.autoSkipPadding||0,r=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*n>r*s?r/n:l/s:l*s<r*n?l/n:r/s}_isVisible(){let i=this.options.display;return i!=="auto"?!!i:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(i){let t=this.axis,n=this.chart,s=this.options,{grid:o,position:a,border:r}=s,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=Fe(o),f=[],g=r.setContext(this.getContext()),p=g.display?g.width:0,m=p/2,b=function(X){return Rt(n,X,p)},_,y,v,x,S,P,w,T,O,A,N,et;if(a==="top")_=b(this.bottom),P=this.bottom-u,T=_-m,A=b(i.top)+m,et=i.bottom;else if(a==="bottom")_=b(this.top),A=i.top,et=b(i.bottom)-m,P=_+m,T=this.top+u;else if(a==="left")_=b(this.right),S=this.right-u,w=_-m,O=b(i.left)+m,N=i.right;else if(a==="right")_=b(this.left),O=i.left,N=b(i.right)-m,S=_+m,w=this.left+u;else if(t==="x"){if(a==="center")_=b((i.top+i.bottom)/2+.5);else if(B(a)){let X=Object.keys(a)[0],Q=a[X];_=b(this.chart.scales[X].getPixelForValue(Q))}A=i.top,et=i.bottom,P=_+m,T=P+u}else if(t==="y"){if(a==="center")_=b((i.left+i.right)/2);else if(B(a)){let X=Object.keys(a)[0],Q=a[X];_=b(this.chart.scales[X].getPixelForValue(Q))}S=_-m,w=S-u,O=i.left,N=i.right}let ht=L(s.ticks.maxTicksLimit,d),V=Math.max(1,Math.ceil(d/ht));for(y=0;y<d;y+=V){let X=this.getContext(y),Q=o.setContext(X),ft=r.setContext(X),st=Q.lineWidth,Jt=Q.color,$e=ft.dash||[],te=ft.dashOffset,ye=Q.tickWidth,Wt=Q.tickColor,Se=Q.tickBorderDash||[],Vt=Q.tickBorderDashOffset;v=Fc(this,y,l),v!==void 0&&(x=Rt(n,v,st),c?S=w=O=N=x:P=T=A=et=x,f.push({tx1:S,ty1:P,tx2:w,ty2:T,x1:O,y1:A,x2:N,y2:et,width:st,color:Jt,borderDash:$e,borderDashOffset:te,tickWidth:ye,tickColor:Wt,tickBorderDash:Se,tickBorderDashOffset:Vt}))}return this._ticksLength=d,this._borderValue=_,f}_computeLabelItems(i){let t=this.axis,n=this.options,{position:s,ticks:o}=n,a=this.isHorizontal(),r=this.ticks,{align:l,crossAlign:c,padding:h,mirror:d}=o,u=Fe(n.grid),f=u+h,g=d?-h:f,p=-ut(this.labelRotation),m=[],b,_,y,v,x,S,P,w,T,O,A,N,et="middle";if(s==="top")S=this.bottom-g,P=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+g,P=this._getXAxisLabelAlignment();else if(s==="left"){let V=this._getYAxisLabelAlignment(u);P=V.textAlign,x=V.x}else if(s==="right"){let V=this._getYAxisLabelAlignment(u);P=V.textAlign,x=V.x}else if(t==="x"){if(s==="center")S=(i.top+i.bottom)/2+f;else if(B(s)){let V=Object.keys(s)[0],X=s[V];S=this.chart.scales[V].getPixelForValue(X)+f}P=this._getXAxisLabelAlignment()}else if(t==="y"){if(s==="center")x=(i.left+i.right)/2-f;else if(B(s)){let V=Object.keys(s)[0],X=s[V];x=this.chart.scales[V].getPixelForValue(X)}P=this._getYAxisLabelAlignment(u).textAlign}t==="y"&&(l==="start"?et="top":l==="end"&&(et="bottom"));let ht=this._getLabelSizes();for(b=0,_=r.length;b<_;++b){y=r[b],v=y.label;let V=o.setContext(this.getContext(b));w=this.getPixelForTick(b)+o.labelOffset,T=this._resolveTickFontOptions(b),O=T.lineHeight,A=$(v)?v.length:1;let X=A/2,Q=V.color,ft=V.textStrokeColor,st=V.textStrokeWidth,Jt=P;a?(x=w,P==="inner"&&(b===_-1?Jt=this.options.reverse?"left":"right":b===0?Jt=this.options.reverse?"right":"left":Jt="center"),s==="top"?c==="near"||p!==0?N=-A*O+O/2:c==="center"?N=-ht.highest.height/2-X*O+O:N=-ht.highest.height+O/2:c==="near"||p!==0?N=O/2:c==="center"?N=ht.highest.height/2-X*O:N=ht.highest.height-A*O,d&&(N*=-1),p!==0&&!V.showLabelBackdrop&&(x+=O/2*Math.sin(p))):(S=w,N=(1-A)*O/2);let $e;if(V.showLabelBackdrop){let te=nt(V.backdropPadding),ye=ht.heights[b],Wt=ht.widths[b],Se=N-te.top,Vt=0-te.left;switch(et){case"middle":Se-=ye/2;break;case"bottom":Se-=ye;break}switch(P){case"center":Vt-=Wt/2;break;case"right":Vt-=Wt;break;case"inner":b===_-1?Vt-=Wt:b>0&&(Vt-=Wt/2);break}$e={left:Vt,top:Se,width:Wt+te.width,height:ye+te.height,color:V.backdropColor}}m.push({label:v,font:T,textOffset:N,options:{rotation:p,color:Q,strokeColor:ft,strokeWidth:st,textAlign:Jt,textBaseline:et,translation:[x,S],backdrop:$e}})}return m}_getXAxisLabelAlignment(){let{position:i,ticks:t}=this.options;if(-ut(this.labelRotation))return i==="top"?"left":"right";let s="center";return t.align==="start"?s="left":t.align==="end"?s="right":t.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(i){let{position:t,ticks:{crossAlign:n,mirror:s,padding:o}}=this.options,a=this._getLabelSizes(),r=i+o,l=a.widest.width,c,h;return t==="left"?s?(h=this.right+o,n==="near"?c="left":n==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-r,n==="near"?c="right":n==="center"?(c="center",h-=l/2):(c="left",h=this.left)):t==="right"?s?(h=this.left+o,n==="near"?c="right":n==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+r,n==="near"?c="left":n==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;let i=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:i.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:i.width}}drawBackground(){let{ctx:i,options:{backgroundColor:t},left:n,top:s,width:o,height:a}=this;t&&(i.save(),i.fillStyle=t,i.fillRect(n,s,o,a),i.restore())}getLineWidthForValue(i){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let s=this.ticks.findIndex(o=>o.value===i);return s>=0?t.setContext(this.getContext(s)).lineWidth:0}drawGrid(i){let t=this.options.grid,n=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i)),o,a,r=(l,c,h)=>{!h.width||!h.color||(n.save(),n.lineWidth=h.width,n.strokeStyle=h.color,n.setLineDash(h.borderDash||[]),n.lineDashOffset=h.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(t.display)for(o=0,a=s.length;o<a;++o){let l=s[o];t.drawOnChartArea&&r({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),t.drawTicks&&r({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){let{chart:i,ctx:t,options:{border:n,grid:s}}=this,o=n.setContext(this.getContext()),a=n.display?o.width:0;if(!a)return;let r=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue,c,h,d,u;this.isHorizontal()?(c=Rt(i,this.left,a)-a/2,h=Rt(i,this.right,r)+r/2,d=u=l):(d=Rt(i,this.top,a)-a/2,u=Rt(i,this.bottom,r)+r/2,c=h=l),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(c,d),t.lineTo(h,u),t.stroke(),t.restore()}drawLabels(i){if(!this.options.ticks.display)return;let n=this.ctx,s=this._computeLabelArea();s&&Le(n,s);let o=this.getLabelItems(i);for(let a of o){let r=a.options,l=a.font,c=a.label,h=a.textOffset;It(n,c,0,h,l,r)}s&&Ae(n)}drawTitle(){let{ctx:i,options:{position:t,title:n,reverse:s}}=this;if(!n.display)return;let o=J(n.font),a=nt(n.padding),r=n.align,l=o.lineHeight/2;t==="bottom"||t==="center"||B(t)?(l+=a.bottom,$(n.text)&&(l+=o.lineHeight*(n.text.length-1))):l+=a.top;let{titleX:c,titleY:h,maxWidth:d,rotation:u}=Vc(this,l,t,r);It(i,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:u,textAlign:Wc(r,t,s),textBaseline:"middle",translation:[c,h]})}draw(i){this._isVisible()&&(this.drawBackground(),this.drawGrid(i),this.drawBorder(),this.drawTitle(),this.drawLabels(i))}_layers(){let i=this.options,t=i.ticks&&i.ticks.z||0,n=L(i.grid&&i.grid.z,-1),s=L(i.border&&i.border.z,0);return!this._isVisible()||this.draw!==e.prototype.draw?[{z:t,draw:o=>{this.draw(o)}}]:[{z:n,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(i){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",s=[],o,a;for(o=0,a=t.length;o<a;++o){let r=t[o];r[n]===this.id&&(!i||r.type===i)&&s.push(r)}return s}_resolveTickFontOptions(i){let t=this.options.ticks.setContext(this.getContext(i));return J(t.font)}_maxDigits(){let i=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/i}},be=class{constructor(i,t,n){this.type=i,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(i){return Object.prototype.isPrototypeOf.call(this.type.prototype,i.prototype)}register(i){let t=Object.getPrototypeOf(i),n;$c(t)&&(n=this.register(t));let s=this.items,o=i.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+i);return o in s||(s[o]=i,Hc(i,a,n),this.override&&G.override(i.id,i.overrides)),a}get(i){return this.items[i]}unregister(i){let t=this.items,n=i.id,s=this.scope;n in t&&delete t[n],s&&n in G[s]&&(delete G[s][n],this.override&&delete Ot[n])}};function Hc(e,i,t){let n=le(Object.create(null),[t?G.get(t):{},G.get(i),e.defaults]);G.set(i,n),e.defaultRoutes&&jc(i,e.defaultRoutes),e.descriptors&&G.describe(i,e.descriptors)}function jc(e,i){Object.keys(i).forEach(t=>{let n=t.split("."),s=n.pop(),o=[e].concat(n).join("."),a=i[t].split("."),r=a.pop(),l=a.join(".");G.route(o,s,l,r)})}function $c(e){return"id"in e&&"defaults"in e}var On=class{constructor(){this.controllers=new be(Nt,"datasets",!0),this.elements=new be(pt,"elements"),this.plugins=new be(Object,"plugins"),this.scales=new be(Qt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,t,n){[...t].forEach(s=>{let o=n||this._getRegistryForType(s);n||o.isForType(s)||o===this.plugins&&s.id?this._exec(i,o,s):W(s,a=>{let r=n||this._getRegistryForType(a);this._exec(i,r,a)})})}_exec(i,t,n){let s=ii(i);H(n["before"+s],[],n),t[i](n),H(n["after"+s],[],n)}_getRegistryForType(i){for(let t=0;t<this._typedRegistries.length;t++){let n=this._typedRegistries[t];if(n.isForType(i))return n}return this.plugins}_get(i,t,n){let s=t.get(i);if(s===void 0)throw new Error('"'+i+'" is not a registered '+n+".");return s}},St=new On,Rn=class{constructor(){this._init=[]}notify(i,t,n,s){t==="beforeInit"&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install"));let o=s?this._descriptors(i).filter(s):this._descriptors(i),a=this._notify(o,i,t,n);return t==="afterDestroy"&&(this._notify(o,i,"stop"),this._notify(this._init,i,"uninstall")),a}_notify(i,t,n,s){s=s||{};for(let o of i){let a=o.plugin,r=a[n],l=[t,s,o.options];if(H(r,l,a)===!1&&s.cancelable)return!1}return!0}invalidate(){z(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;let t=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),t}_createDescriptors(i,t){let n=i&&i.config,s=L(n.options&&n.options.plugins,{}),o=Yc(n);return s===!1&&!t?[]:Gc(i,o,s,t)}_notifyStateChanges(i){let t=this._oldCache||[],n=this._cache,s=(o,a)=>o.filter(r=>!a.some(l=>r.plugin.id===l.plugin.id));this._notify(s(t,n),i,"stop"),this._notify(s(n,t),i,"start")}};function Yc(e){let i={},t=[],n=Object.keys(St.plugins.items);for(let o=0;o<n.length;o++)t.push(St.getPlugin(n[o]));let s=e.plugins||[];for(let o=0;o<s.length;o++){let a=s[o];t.indexOf(a)===-1&&(t.push(a),i[a.id]=!0)}return{plugins:t,localIds:i}}function Uc(e,i){return!i&&e===!1?null:e===!0?{}:e}function Gc(e,{plugins:i,localIds:t},n,s){let o=[],a=e.getContext();for(let r of i){let l=r.id,c=Uc(n[l],s);c!==null&&o.push({plugin:r,options:Xc(e.config,{plugin:r,local:t[l]},c,a)})}return o}function Xc(e,{plugin:i,local:t},n,s){let o=e.pluginScopeKeys(i),a=e.getOptionScopes(n,o);return t&&i.defaults&&a.push(i.defaults),e.createResolver(a,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function In(e,i){let t=G.datasets[e]||{};return((i.datasets||{})[e]||{}).indexAxis||i.indexAxis||t.indexAxis||"x"}function Kc(e,i){let t=e;return e==="_index_"?t=i:e==="_value_"&&(t=i==="x"?"y":"x"),t}function qc(e,i){return e===i?"_index_":"_value_"}function oa(e){if(e==="x"||e==="y"||e==="r")return e}function Zc(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Fn(e,...i){if(oa(e))return e;for(let t of i){let n=t.axis||Zc(t.position)||e.length>1&&oa(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function aa(e,i,t){if(t[i+"AxisID"]===e)return{axis:i}}function Qc(e,i){if(i.data&&i.data.datasets){let t=i.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(t.length)return aa(e,"x",t[0])||aa(e,"y",t[0])}return{}}function Jc(e,i){let t=Ot[e.type]||{scales:{}},n=i.scales||{},s=In(e.type,i),o=Object.create(null);return Object.keys(n).forEach(a=>{let r=n[a];if(!B(r))return console.error(`Invalid scale configuration for scale: ${a}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=Fn(a,r,Qc(a,e),G.scales[r.type]),c=qc(l,s),h=t.scales||{};o[a]=he(Object.create(null),[{axis:l},r,h[l],h[c]])}),e.data.datasets.forEach(a=>{let r=a.type||e.type,l=a.indexAxis||In(r,i),h=(Ot[r]||{}).scales||{};Object.keys(h).forEach(d=>{let u=Kc(d,l),f=a[u+"AxisID"]||u;o[f]=o[f]||Object.create(null),he(o[f],[{axis:u},n[f],h[d]])})}),Object.keys(o).forEach(a=>{let r=o[a];he(r,[G.scales[r.type],G.scale])}),o}function Ga(e){let i=e.options||(e.options={});i.plugins=L(i.plugins,{}),i.scales=Jc(e,i)}function Xa(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function th(e){return e=e||{},e.data=Xa(e.data),Ga(e),e}var ra=new Map,Ka=new Set;function pi(e,i){let t=ra.get(e);return t||(t=i(),ra.set(e,t),Ka.add(t)),t}var ze=(e,i,t)=>{let n=wt(i,t);n!==void 0&&e.add(n)},zn=class{constructor(i){this._config=th(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=Xa(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){let i=this._config;this.clearCache(),Ga(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return pi(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,t){return pi(`${i}.transition.${t}`,()=>[[`datasets.${i}.transitions.${t}`,`transitions.${t}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,t){return pi(`${i}-${t}`,()=>[[`datasets.${i}.elements.${t}`,`datasets.${i}`,`elements.${t}`,""]])}pluginScopeKeys(i){let t=i.id,n=this.type;return pi(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,t){let n=this._scopeCache,s=n.get(i);return(!s||t)&&(s=new Map,n.set(i,s)),s}getOptionScopes(i,t,n){let{options:s,type:o}=this,a=this._cachedScopes(i,n),r=a.get(t);if(r)return r;let l=new Set;t.forEach(h=>{i&&(l.add(i),h.forEach(d=>ze(l,i,d))),h.forEach(d=>ze(l,s,d)),h.forEach(d=>ze(l,Ot[o]||{},d)),h.forEach(d=>ze(l,G,d)),h.forEach(d=>ze(l,ai,d))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Ka.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:i,type:t}=this;return[i,Ot[t]||{},G.datasets[t]||{},{type:t},G,ai]}resolveNamedOptions(i,t,n,s=[""]){let o={$shared:!0},{resolver:a,subPrefixes:r}=la(this._resolverCache,i,s),l=a;if(ih(a,t)){o.$shared=!1,n=kt(n)?n():n;let c=this.createResolver(i,n,r);l=Gt(a,n,c)}for(let c of t)o[c]=l[c];return o}createResolver(i,t,n=[""],s){let{resolver:o}=la(this._resolverCache,i,n);return B(t)?Gt(o,t,void 0,s):o}};function la(e,i,t){let n=e.get(i);n||(n=new Map,e.set(i,n));let s=t.join(),o=n.get(s);return o||(o={resolver:ci(i,t),subPrefixes:t.filter(r=>!r.toLowerCase().includes("hover"))},n.set(s,o)),o}var eh=e=>B(e)&&Object.getOwnPropertyNames(e).some(i=>kt(e[i]));function ih(e,i){let{isScriptable:t,isIndexable:n}=ln(e);for(let s of i){let o=t(s),a=n(s),r=(a||o)&&e[s];if(o&&(kt(r)||eh(r))||a&&$(r))return!0}return!1}var nh="4.4.8",sh=["top","bottom","left","right","chartArea"];function ca(e,i){return e==="top"||e==="bottom"||sh.indexOf(e)===-1&&i==="x"}function ha(e,i){return function(t,n){return t[e]===n[e]?t[i]-n[i]:t[e]-n[e]}}function da(e){let i=e.chart,t=i.options.animation;i.notifyPlugins("afterRender"),H(t&&t.onComplete,[e],i)}function oh(e){let i=e.chart,t=i.options.animation;H(t&&t.onProgress,[e],i)}function qa(e){return hi()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Si={},ua=e=>{let i=qa(e);return Object.values(Si).filter(t=>t.canvas===i).pop()};function ah(e,i,t){let n=Object.keys(e);for(let s of n){let o=+s;if(o>=i){let a=e[s];delete e[s],(t>0||o>i)&&(e[o+t]=a)}}}function rh(e,i,t,n){return!t||e.type==="mouseout"?null:n?i:e}function mi(e,i,t){return e.options.clip?e[t]:i[t]}function lh(e,i){let{xScale:t,yScale:n}=e;return t&&n?{left:mi(t,i,"left"),right:mi(t,i,"right"),top:mi(n,i,"top"),bottom:mi(n,i,"bottom")}:i}var Di=(()=>{class e{static defaults=G;static instances=Si;static overrides=Ot;static registry=St;static version=nh;static getChart=ua;static register(...t){St.add(...t),fa()}static unregister(...t){St.remove(...t),fa()}constructor(t,n){let s=this.config=new zn(n),o=qa(t),a=ua(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||Dc(o)),this.platform.updateConfig(s);let l=this.platform.acquireContext(o,r.aspectRatio),c=l&&l.canvas,h=c&&c.height,d=c&&c.width;if(this.id=ho(),this.ctx=l,this.canvas=c,this.width=d,this.height=h,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Rn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Co(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],Si[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Dt.listen(this,"complete",da),Dt.listen(this,"progress",oh),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:o,_aspectRatio:a}=this;return z(t)?n&&a?a:o?s/o: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}get registry(){return St}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():un(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return on(this.canvas,this.ctx),this}stop(){return Dt.stop(this),this}resize(t,n){Dt.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){let s=this.options,o=this.canvas,a=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(o,t,n,a),l=s.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,un(this,l,!0)&&(this.notifyPlugins("resize",{size:r}),H(s.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let n=this.options.scales||{};W(n,(s,o)=>{s.id=o})}buildOrUpdateScales(){let t=this.options,n=t.scales,s=this.scales,o=Object.keys(s).reduce((r,l)=>(r[l]=!1,r),{}),a=[];n&&(a=a.concat(Object.keys(n).map(r=>{let l=n[r],c=Fn(r,l),h=c==="r",d=c==="x";return{options:l,dposition:h?"chartArea":d?"bottom":"left",dtype:h?"radialLinear":d?"category":"linear"}}))),W(a,r=>{let l=r.options,c=l.id,h=Fn(c,l),d=L(l.type,r.dtype);(l.position===void 0||ca(l.position,h)!==ca(r.dposition))&&(l.position=r.dposition),o[c]=!0;let u=null;if(c in s&&s[c].type===d)u=s[c];else{let f=St.getScale(d);u=new f({id:c,type:d,ctx:this.ctx,chart:this}),s[u.id]=u}u.init(l,t)}),W(o,(r,l)=>{r||delete s[l]}),W(s,r=>{ot.configure(this,r,r.options),ot.addBox(this,r)})}_updateMetasets(){let t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((o,a)=>o.index-a.index),s>n){for(let o=n;o<s;++o)this._destroyDatasetMeta(o);t.splice(n,s-n)}this._sortedMetasets=t.slice(0).sort(ha("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((s,o)=>{n.filter(a=>a===s._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let t=[],n=this.data.datasets,s,o;for(this._removeUnreferencedMetasets(),s=0,o=n.length;s<o;s++){let a=n[s],r=this.getDatasetMeta(s),l=a.type||this.config.type;if(r.type&&r.type!==l&&(this._destroyDatasetMeta(s),r=this.getDatasetMeta(s)),r.type=l,r.indexAxis=a.indexAxis||In(l,this.options),r.order=a.order||0,r.index=s,r.label=""+a.label,r.visible=this.isDatasetVisible(s),r.controller)r.controller.updateIndex(s),r.controller.linkScales();else{let c=St.getController(l),{datasetElementType:h,dataElementType:d}=G.datasets[l];Object.assign(c,{dataElementType:St.getElement(d),datasetElementType:h&&St.getElement(h)}),r.controller=new c(this,s),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){W(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let n=this.config;n.update();let s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let h=0,d=this.data.datasets.length;h<d;h++){let{controller:u}=this.getDatasetMeta(h),f=!o&&a.indexOf(u)===-1;u.buildOrUpdateElements(f),r=Math.max(+u.getMaxOverflow(),r)}r=this._minPadding=s.layout.autoPadding?r:0,this._updateLayout(r),o||W(a,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ha("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){W(this.scales,t=>{ot.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Yi(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(let{method:s,start:o,count:a}of n){let r=s==="_removeElements"?-a:a;ah(t,o,r)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let n=this.data.datasets.length,s=a=>new Set(t.filter(r=>r[0]===a).map((r,l)=>l+","+r.splice(1).join(","))),o=s(0);for(let a=1;a<n;a++)if(!Yi(o,s(a)))return;return Array.from(o).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ot.update(this,this.width,this.height,t);let n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],W(this.boxes,o=>{s&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,kt(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){let s=this.getDatasetMeta(t),o={meta:s,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(s.controller._update(n),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Dt.has(this)?this.attached&&!Dt.running(this)&&Dt.start(this):(this.draw(),da({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:s,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let n=this._sortedMetasets,s=[],o,a;for(o=0,a=n.length;o<a;++o){let r=n[o];(!t||r.visible)&&s.push(r)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let n=this.ctx,s=t._clip,o=!s.disabled,a=lh(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Le(n,{left:s.left===!1?0:a.left-s.left,right:s.right===!1?this.width:a.right+s.right,top:s.top===!1?0:a.top-s.top,bottom:s.bottom===!1?this.height:a.bottom+s.bottom}),t.controller.draw(),o&&Ae(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return _t(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,o){let a=cc.modes[n];return typeof a=="function"?a(this,t,s,o):[]}getDatasetMeta(t){let n=this.data.datasets[t],s=this._metasets,o=s.filter(a=>a&&a._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},s.push(o)),o}getContext(){return this.$context||(this.$context=Pt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let n=this.data.datasets[t];if(!n)return!1;let s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){let s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){let o=s?"show":"hide",a=this.getDatasetMeta(t),r=a.controller._resolveAnimations(void 0,o);de(n)?(a.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(a,{visible:s}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){let n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Dt.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),on(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Si[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,n=this.platform,s=(a,r)=>{n.addEventListener(this,a,r),t[a]=r},o=(a,r,l)=>{a.offsetX=r,a.offsetY=l,this._eventHandler(a)};W(this.options.events,a=>s(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,n=this.platform,s=(c,h)=>{n.addEventListener(this,c,h),t[c]=h},o=(c,h)=>{t[c]&&(n.removeEventListener(this,c,h),delete t[c])},a=(c,h)=>{this.canvas&&this.resize(c,h)},r,l=()=>{o("attach",l),this.attached=!0,this.resize(),s("resize",a),s("detach",r)};r=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),s("attach",l)},n.isAttached(this.canvas)?l():r()}unbindEvents(){W(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},W(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){let o=s?"set":"remove",a,r,l,c;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){r=t[l];let h=r&&this.getDatasetMeta(r.datasetIndex).controller;h&&h[o+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let n=this._active||[],s=t.map(({datasetIndex:a,index:r})=>{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[r],index:r}});!Te(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){let o=this.options.hover,a=(c,h)=>c.filter(d=>!h.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),r=a(n,t),l=s?t:a(t,n);r.length&&this.updateHoverStyle(r,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){let s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,o)===!1)return;let a=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,o),(a||s.changed)&&this.render(),this}_handleEvent(t,n,s){let{_active:o=[],options:a}=this,r=n,l=this._getActiveElements(t,o,s,r),c=go(t),h=rh(t,this._lastEvent,s,c);s&&(this._lastEvent=null,H(a.onHover,[t,l,this],this),c&&H(a.onClick,[t,l,this],this));let d=!Te(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=h,d}_getActiveElements(t,n,s,o){if(t.type==="mouseout")return[];if(!s)return n;let a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,o)}}return e})();function fa(){return W(Di.instances,e=>e._plugins.invalidate())}function ch(e,i,t){let{startAngle:n,pixelMargin:s,x:o,y:a,outerRadius:r,innerRadius:l}=i,c=s/r;e.beginPath(),e.arc(o,a,r,n-c,t+c),l>s?(c=s/l,e.arc(o,a,l,t+c,n-c,!0)):e.arc(o,a,s,t+Z,n-Z),e.closePath(),e.clip()}function hh(e){return li(e,["outerStart","outerEnd","innerStart","innerEnd"])}function dh(e,i,t,n){let s=hh(e.options.borderRadius),o=(t-i)/2,a=Math.min(o,n*i/2),r=l=>{let c=(t-Math.min(o,l))*n/2;return tt(l,0,Math.min(o,c))};return{outerStart:r(s.outerStart),outerEnd:r(s.outerEnd),innerStart:tt(s.innerStart,0,a),innerEnd:tt(s.innerEnd,0,a)}}function _e(e,i,t,n){return{x:t+e*Math.cos(i),y:n+e*Math.sin(i)}}function Mi(e,i,t,n,s,o){let{x:a,y:r,startAngle:l,pixelMargin:c,innerRadius:h}=i,d=Math.max(i.outerRadius+n+t-c,0),u=h>0?h+n+t+c:0,f=0,g=s-l;if(n){let V=h>0?h-n:0,X=d>0?d-n:0,Q=(V+X)/2,ft=Q!==0?g*Q/(Q+n):g;f=(g-ft)/2}let p=Math.max(.001,g*d-t/Y)/d,m=(g-p)/2,b=l+m+f,_=s-m-f,{outerStart:y,outerEnd:v,innerStart:x,innerEnd:S}=dh(i,u,d,_-b),P=d-y,w=d-v,T=b+y/P,O=_-v/w,A=u+x,N=u+S,et=b+x/A,ht=_-S/N;if(e.beginPath(),o){let V=(T+O)/2;if(e.arc(a,r,d,T,V),e.arc(a,r,d,V,O),v>0){let st=_e(w,O,a,r);e.arc(st.x,st.y,v,O,_+Z)}let X=_e(N,_,a,r);if(e.lineTo(X.x,X.y),S>0){let st=_e(N,ht,a,r);e.arc(st.x,st.y,S,_+Z,ht+Math.PI)}let Q=(_-S/u+(b+x/u))/2;if(e.arc(a,r,u,_-S/u,Q,!0),e.arc(a,r,u,Q,b+x/u,!0),x>0){let st=_e(A,et,a,r);e.arc(st.x,st.y,x,et+Math.PI,b-Z)}let ft=_e(P,b,a,r);if(e.lineTo(ft.x,ft.y),y>0){let st=_e(P,T,a,r);e.arc(st.x,st.y,y,b-Z,T)}}else{e.moveTo(a,r);let V=Math.cos(T)*d+a,X=Math.sin(T)*d+r;e.lineTo(V,X);let Q=Math.cos(O)*d+a,ft=Math.sin(O)*d+r;e.lineTo(Q,ft)}e.closePath()}function uh(e,i,t,n,s){let{fullCircles:o,startAngle:a,circumference:r}=i,l=i.endAngle;if(o){Mi(e,i,t,n,l,s);for(let c=0;c<o;++c)e.fill();isNaN(r)||(l=a+(r%U||U))}return Mi(e,i,t,n,l,s),e.fill(),l}function fh(e,i,t,n,s){let{fullCircles:o,startAngle:a,circumference:r,options:l}=i,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:u}=l,f=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=u,f?(e.lineWidth=c*2,e.lineJoin=
vendor: 5,845 bytes, line 1
1h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let g=i.endAngle;if(o){Mi(e,i,t,n,g,s);for(let p=0;p<o;++p)e.stroke();isNaN(r)||(g=a+(r%U||U))}f&&ch(e,i,g),o||(Mi(e,i,t,n,g,s),e.stroke())}var Bn=class extends pt{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:i=>i!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(i){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,i&&Object.assign(this,i)}inRange(i,t,n){let s=this.getProps(["x","y"],n),{angle:o,distance:a}=Ki(s,{x:i,y:t}),{startAngle:r,endAngle:l,innerRadius:c,outerRadius:h,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),u=(this.options.spacing+this.options.borderWidth)/2,f=L(d,l-r),g=fe(o,r,l)&&r!==l,p=f>=U||g,m=xt(a,c+u,h+u);return p&&m}getCenterPoint(i){let{x:t,y:n,startAngle:s,endAngle:o,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:l,spacing:c}=this.options,h=(s+o)/2,d=(a+r+c+l)/2;return{x:t+Math.cos(h)*d,y:n+Math.sin(h)*d}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:t,circumference:n}=this,s=(t.offset||0)/4,o=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=n>U?Math.floor(n/U):0,n===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let r=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(r)*s,Math.sin(r)*s);let l=1-Math.sin(Math.min(Y,n||0)),c=s*l;i.fillStyle=t.backgroundColor,i.strokeStyle=t.borderColor,uh(i,this,c,o,a),fh(i,this,c,o,a),i.restore()}};function Za(e,i,t=i){e.lineCap=L(t.borderCapStyle,i.borderCapStyle),e.setLineDash(L(t.borderDash,i.borderDash)),e.lineDashOffset=L(t.borderDashOffset,i.borderDashOffset),e.lineJoin=L(t.borderJoinStyle,i.borderJoinStyle),e.lineWidth=L(t.borderWidth,i.borderWidth),e.strokeStyle=L(t.borderColor,i.borderColor)}function gh(e,i,t){e.lineTo(t.x,t.y)}function ph(e){return e.stepped?wo:e.tension||e.cubicInterpolationMode==="monotone"?Po:gh}function Qa(e,i,t={}){let n=e.length,{start:s=0,end:o=n-1}=t,{start:a,end:r}=i,l=Math.max(s,a),c=Math.min(o,r),h=s<a&&o<a||s>r&&o>r;return{count:n,start:l,loop:i.loop,ilen:c<l&&!h?n+c-l:c-l}}function mh(e,i,t,n){let{points:s,options:o}=i,{count:a,start:r,loop:l,ilen:c}=Qa(s,t,n),h=ph(o),{move:d=!0,reverse:u}=n||{},f,g,p;for(f=0;f<=c;++f)g=s[(r+(u?c-f:f))%a],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):h(e,p,g,u,o.stepped),p=g);return l&&(g=s[(r+(u?c:0))%a],h(e,p,g,u,o.stepped)),!!l}function _h(e,i,t,n){let s=i.points,{count:o,start:a,ilen:r}=Qa(s,t,n),{move:l=!0,reverse:c}=n||{},h=0,d=0,u,f,g,p,m,b,_=v=>(a+(c?r-v:v))%o,y=()=>{p!==m&&(e.lineTo(h,m),e.lineTo(h,p),e.lineTo(h,b))};for(l&&(f=s[_(0)],e.moveTo(f.x,f.y)),u=0;u<=r;++u){if(f=s[_(u)],f.skip)continue;let v=f.x,x=f.y,S=v|0;S===g?(x<p?p=x:x>m&&(m=x),h=(d*h+v)/++d):(y(),e.lineTo(v,x),g=S,d=0,p=m=x),b=x}y()}function Nn(e){let i=e.options,t=i.borderDash&&i.borderDash.length;return!e._decimated&&!e._loop&&!i.tension&&i.cubicInterpolationMode!=="monotone"&&!i.stepped&&!t?_h:mh}function bh(e){return e.stepped?Fo:e.tension||e.cubicInterpolationMode==="monotone"?zo:At}function xh(e,i,t,n){let s=i._path;s||(s=i._path=new Path2D,i.path(s,t,n)&&s.closePath()),Za(e,i.options),e.stroke(s)}function yh(e,i,t,n){let{segments:s,options:o}=i,a=Nn(i);for(let r of s)Za(e,o,r.style),e.beginPath(),a(e,i,r,{start:t,end:t+n-1})&&e.closePath(),e.stroke()}var Sh=typeof Path2D=="function";function Ch(e,i,t,n){Sh&&!i.options.segment?xh(e,i,t,n):yh(e,i,t,n)}var Ti=(()=>{class e extends pt{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){let s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){let o=s.spanGaps?this._loop:this._fullLoop;Oo(this._points,s,t,o,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=No(this,this.options.segment))}first(){let t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){let t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){let s=this.options,o=t[n],a=this.points,r=_n(this,{property:n,start:o,end:o});if(!r.length)return;let l=[],c=bh(s),h,d;for(h=0,d=r.length;h<d;++h){let{start:u,end:f}=r[h],g=a[u],p=a[f];if(g===p){l.push(g);continue}let m=Math.abs((o-g[n])/(p[n]-g[n])),b=c(g,p,m,s.stepped);b[n]=t[n],l.push(b)}return l.length===1?l[0]:l}pathSegment(t,n,s){return Nn(this)(t,this,n,s)}path(t,n,s){let o=this.segments,a=Nn(this),r=this._loop;n=n||0,s=s||this.points.length-n;for(let l of o)r&=a(t,this,l,{start:n,end:n+s-1});return!!r}draw(t,n,s,o){let a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),Ch(t,this,s,o),t.restore(
1)),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return e})();function ga(e,i,t,n){let s=e.options,{[t]:o}=e.getProps([t],n);return Math.abs(i-o)<s.radius+s.hitRadius}var vh=(()=>{class e extends pt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};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,n,s){let o=this.options,{x:a,y:r}=this.getProps(["x","y"],s);return Math.pow(t-a,2)+Math.pow(n-r,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(t,n){return ga(this,t,"x",n)}inYRange(t,n){return ga(this,t,"y",n)}getCenterPoint(t){let{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);let s=n&&t.borderWidth||0;return(n+s)*2}draw(t,n){let s=this.options;this.skip||s.radius<.1||!_t(this,n,this.size(s)/2)||(t.strokeStyle=s.borderColor,t.lineWidth=s.borderWidth,t.fillStyle=s.backgroundColor,ri(t,s,this.x,this.y))}getRange(){let t=this.options||{};return t.radius+t.hitRadius}}return e})();function Ja(e,i){let{x:t,y:n,base:s,width:o,height:a}=e.getProps(["x","y","base","width","height"],i),r,l,c,h,d;return e.horizontal?(d=a/2,r=Math.min(t,s),l=Math.max(t,s),c=n-d,h=n+d):(d=o/2,r=t-d,l=t+d,c=Math.min(n,s),h=Math.max(n,s)),{left:r,top:c,right:l,bottom:h}}function Bt(e,i,t,n){return e?0:tt(i,t,n)}function kh(e,i,t){let n=e.options.borderWidth,s=e.borderSkipped,o=rn(n);return{t:Bt(s.top,o.top,0,t),r:Bt(s.right,o.right,0,i),b:Bt(s.bottom,o.bottom,0,t),l:Bt(s.left,o.left,0,i)}}function Mh(e,i,t){let{enableBorderRadius:n}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,o=Ft(s),a=Math.min(i,t),r=e.borderSkipped,l=n||B(s);return{topLeft:Bt(!l||r.top||r.left,o.topLeft,0,a),topRight:Bt(!l||r.top||r.right,o.topRight,0,a),bottomLeft:Bt(!l||r.bottom||r.left,o.bottomLeft,0,a),bottomRight:Bt(!l||r.bottom||r.right,o.bottomRight,0,a)}}function wh(e){let i=Ja(e),t=i.right-i.left,n=i.bottom-i.top,s=kh(e,t/2,n/2),o=Mh(e,t/2,n/2);return{outer:{x:i.left,y:i.top,w:t,h:n,radius:o},inner:{x:i.left+s.l,y:i.top+s.t,w:t-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function Mn(e,i,t,n){let s=i===null,o=t===null,r=e&&!(s&&o)&&Ja(e,n);return r&&(s||xt(i,r.left,r.right))&&(o||xt(t,r.top,r.bottom))}function Ph(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Dh(e,i){e.rect(i.x,i.y,i.w,i.h)}function wn(e,i,t={}){let n=e.x!==t.x?-i:0,s=e.y!==t.y?-i:0,o=(e.x+e.w!==t.x+t.w?i:0)-n,a=(e.y+e.h!==t.y+t.h?i:0)-s;return{x:e.x+n,y:e.y+s,w:e.w+o,h:e.h+a,radius:e.radius}}var Wn=class extends pt{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(i){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,i&&Object.assign(this,i)}draw(i){let{inflateAmount:t,options:{borderColor:n,backgroundColor:s}}=this,{inner:o,outer:a}=wh(this),r=Ph(a.radius)?pe:Dh;i.save(),(a.w!==o.w||a.h!==o.h)&&(i.beginPath(),r(i,wn(a,t,o)),i.clip(),r(i,wn(o,-t,a)),i.fillStyle=n,i.fill("evenodd")),i.beginPath(),r(i,wn(o,t)),i.fillStyle=s,i.fill(),i.restore()}inRange(i,t,n){return Mn(this,i,t,n)}inXRange(i,t){return Mn(this,i,null,t)}inYRange(i,t){return Mn(this,null,i,t)}getCenterPoint(i){let{x:t,y:n,base:s,horizontal:o}=this.getProps(["x","y","base","horizontal"],i);return{x:o?(t+s)/2:t,y:o?n:(n+s)/2}}getRange(i){return i==="x"?this.width/2:this.height/2}},Th=Object.freeze({__proto__:null,ArcElement:Bn,BarElement:Wn,LineElement:Ti,PointElement:vh}),Vn=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],pa=Vn.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function tr(e){return Vn[e%Vn.length]}function er(e){return pa[e%pa.length]}function Eh(e,i){return e.borderColor=tr(i),e.backgroundColor=er(i),++i}function Lh(e,i){return e.backgroundColor=e.data.map(()=>tr(i++)),i}function Ah(e,i){return e.backgroundColor=e.data.map(()=>er(i++)),i}function Oh(e){let i=0;return(t,n)=>{let s=e.getDatasetMeta(n).controller;s instanceof Kn?i=Lh(t,i):s instanceof Ha?i=Ah(t,i):s&&(i=Eh(t,i))}}function ma(e){let i;for(i in e)if(e[i].borderColor||e[i].backgroundColor)return!0;return!1}function Rh(e){return e&&(e.borderColor||e.backgroundColor)}function Ih(){return G.borderColor!=="rgba(0,0,0,0.1)"||G.backgroundColor!=="rgba(0,0,0,0.1)"}
1var Fh={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,i,t){if(!t.enabled)return;let{data:{datasets:n},options:s}=e.config,{elements:o}=s,a=ma(n)||Rh(s)||o&&ma(o)||Ih();if(!t.forceOverride&&a)return;let r=Oh(e);n.forEach(r)}};function zh(e,i,t,n,s){let o=s.samples||n;if(o>=t)return e.slice(i,i+t);let a=[],r=(t-2)/(o-2),l=0,c=i+t-1,h=i,d,u,f,g,p;for(a[l++]=e[h],d=0;d<o-2;d++){let m=0,b=0,_,y=Math.floor((d+1)*r)+1+i,v=Math.min(Math.floor((d+2)*r)+1,t)+i,x=v-y;for(_=y;_<v;_++)m+=e[_].x,b+=e[_].y;m/=x,b/=x;let S=Math.floor(d*r)+1+i,P=Math.min(Math.floor((d+1)*r)+1,t)+i,{x:w,y:T}=e[h];for(f=g=-1,_=S;_<P;_++)g=.5*Math.abs((w-m)*(e[_].y-T)-(w-e[_].x)*(b-T)),g>f&&(f=g,u=e[_],p=_);a[l++]=u,h=p}return a[l++]=e[c],a}function Bh(e,i,t,n){let s=0,o=0,a,r,l,c,h,d,u,f,g,p,m=[],b=i+t-1,_=e[i].x,v=e[b].x-_;for(a=i;a<i+t;++a){r=e[a],l=(r.x-_)/v*n,c=r.y;let x=l|0;if(x===h)c<g?(g=c,d=a):c>p&&(p=c,u=a),s=(o*s+r.x)/++o;else{let S=a-1;if(!z(d)&&!z(u)){let P=Math.min(d,u),w=Math.max(d,u);P!==f&&P!==S&&m.push(ie(ee({},e[P]),{x:s})),w!==f&&w!==S&&m.push(ie(ee({},e[w]),{x:s}))}a>0&&S!==f&&m.push(e[S]),m.push(r),h=x,o=0,g=p=c,d=u=f=a}}return m}function ir(e){if(e._decimated){let i=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:i})}}function _a(e){e.data.datasets.forEach(i=>{ir(i)})}function Nh(e,i){let t=i.length,n=0,s,{iScale:o}=e,{min:a,max:r,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(n=tt(mt(i,o.axis,a).lo,0,t-1)),c?s=tt(mt(i,o.axis,r).hi+1,n,t)-n:s=t-n,{start:n,count:s}}var Wh={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,i,t)=>{if(!t.enabled){_a(e);return}let n=e.width;e.data.datasets.forEach((s,o)=>{let{_data:a,indexAxis:r}=s,l=e.getDatasetMeta(o),c=a||s.data;if(me([r,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let h=e.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||e.options.parsing)return;let{start:d,count:u}=Nh(l,c),f=t.threshold||4*n;if(u<=f){ir(s);return}z(a)&&(s._data=c,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let g;switch(t.algorithm){case"lttb":g=zh(c,d,u,n,t);break;case"min-max":g=Bh(c,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}s._decimated=g})},destroy(e){_a(e)}};function Vh(e,i,t){let n=e.segments,s=e.points,o=i.points,a=[];for(let r of n){let{start:l,end:c}=r;c=qn(l,c,s);let h=Hn(t,s[l],s[c],r.loop);if(!i.segments){a.push({source:r,target:h,start:s[l],end:s[c]});continue}let d=_n(i,h);for(let u of d){let f=Hn(t,o[u.start],o[u.end],u.loop),g=mn(r,s,f);for(let p of g)a.push({source:p,target:u,start:{[t]:ba(h,f,"start",Math.max)},end:{[t]:ba(h,f,"end",Math.min)}})}}return a}function Hn(e,i,t,n){if(n)return;let s=i[e],o=t[e];return e==="angle"&&(s=at(s),o=at(o)),{property:e,start:s,end:o}}function Hh(e,i){let{x:t=null,y:n=null}=e||{},s=i.points,o=[];return i.segments.forEach(({start:a,end:r})=>{r=qn(a,r,s);let l=s[a],c=s[r];n!==null?(o.push({x:l.x,y:n}),o.push({x:c.x,y:n})):t!==null&&(o.push({x:t,y:l.y}),o.push({x:t,y:c.y}))}),o}function qn(e,i,t){for(;i>e;i--){let n=t[i];if(!isNaN(n.x)&&!isNaN(n.y))break}return i}function ba(e,i,t,n){return e&&i?n(e[t],i[t]):e?e[t]:i?i[t]:0}function nr(e,i){let t=[],n=!1;return $(e)?(n=!0,t=e):t=Hh(e,i),t.length?new Ti({points:t,options:{tension:0},_loop:n,_fullLoop:n}):null}function xa(e){return e&&e.fill!==!1}function jh(e,i,t){let s=e[i].fill,o=[i],a;if(!t)return s;for(;s!==!1&&o.indexOf(s)===-1;){if(!q(s))return s;if(a=e[s],!a)return!1;if(a.visible)return s;o.push(s),s=a.fill}return!1}function $h(e,i,t){let n=Xh(e);if(B(n))return isNaN(n.value)?!1:n;let s=parseFloat(n);return q(s)&&Math.floor(s)===s?Yh(n[0],i,s,t):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Yh(e,i,t,n){return(e==="-"||e==="+")&&(t=i+t),t===i||t<0||t>=n?!1:t}function Uh(e,i){let t=null;return e==="start"?t=i.bottom:e==="end"?t=i.top:B(e)?t=i.getPixelForValue(e.value):i.getBasePixel&&(t=i.getBasePixel()),t}function Gh(e,i,t){let n;return e==="start"?n=t:e==="end"?n=i.options.reverse?i.min:i.max:B(e)?n=e.value:n=i.getBaseValue(),n}function Xh(e){let i=e.options,t=i.fill,n=L(t&&t.target,t);return n===void 0&&(n=!!i.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function Kh(e){let{scale:i,index:t,line:n}
vendor: 6,154 bytes, line 1
1=e,s=[],o=n.segments,a=n.points,r=qh(i,t);r.push(nr({x:null,y:i.bottom},n));for(let l=0;l<o.length;l++){let c=o[l];for(let h=c.start;h<=c.end;h++)Zh(s,a[h],r)}return new Ti({points:s,options:{}})}function qh(e,i){let t=[],n=e.getMatchingVisibleMetas("line");for(let s=0;s<n.length;s++){let o=n[s];if(o.index===i)break;o.hidden||t.unshift(o.dataset)}return t}function Zh(e,i,t){let n=[];for(let s=0;s<t.length;s++){let o=t[s],{first:a,last:r,point:l}=Qh(o,i,"x");if(!(!l||a&&r)){if(a)n.unshift(l);else if(e.push(l),!r)break}}e.push(...n)}function Qh(e,i,t){let n=e.interpolate(i,t);if(!n)return{};let s=n[t],o=e.segments,a=e.points,r=!1,l=!1;for(let c=0;c<o.length;c++){let h=o[c],d=a[h.start][t],u=a[h.end][t];if(xt(s,d,u)){r=s===d,l=s===u;break}}return{first:r,last:l,point:n}}var wi=class{constructor(i){this.x=i.x,this.y=i.y,this.radius=i.radius}pathSegment(i,t,n){let{x:s,y:o,radius:a}=this;return t=t||{start:0,end:U},i.arc(s,o,a,t.end,t.start,!0),!n.bounds}interpolate(i){let{x:t,y:n,radius:s}=this,o=i.angle;return{x:t+Math.cos(o)*s,y:n+Math.sin(o)*s,angle:o}}};function Jh(e){let{chart:i,fill:t,line:n}=e;if(q(t))return td(i,t);if(t==="stack")return Kh(e);if(t==="shape")return!0;let s=ed(e);return s instanceof wi?s:nr(s,n)}function td(e,i){let t=e.getDatasetMeta(i);return t&&e.isDatasetVisible(i)?t.dataset:null}function ed(e){return(e.scale||{}).getPointPositionForValue?nd(e):id(e)}function id(e){let{scale:i={},fill:t}=e,n=Uh(t,i);if(q(n)){let s=i.isHorizontal();return{x:s?n:null,y:s?null:n}}return null}function nd(e){let{scale:i,fill:t}=e,n=i.options,s=i.getLabels().length,o=n.reverse?i.max:i.min,a=Gh(t,i,o),r=[];if(n.grid.circular){let l=i.getPointPositionForValue(0,o);return new wi({x:l.x,y:l.y,radius:i.getDistanceFromCenterForValue(a)})}for(let l=0;l<s;++l)r.push(i.getPointPositionForValue(l,a));return r}function Pn(e,i,t){let n=Jh(i),{line:s,scale:o,axis:a}=i,r=s.options,l=r.fill,c=r.backgroundColor,{above:h=c,below:d=c}=l||{};n&&s.points.length&&(Le(e,t),sd(e,{line:s,target:n,above:h,below:d,area:t,scale:o,axis:a}),Ae(e))}function sd(e,i){let{line:t,target:n,above:s,below:o,area:a,scale:r}=i,l=t._loop?"angle":i.axis;e.save(),l==="x"&&o!==s&&(ya(e,n,a.top),Sa(e,{line:t,target:n,color:s,scale:r,property:l}),e.restore(),e.save(),ya(e,n,a.bottom)),Sa(e,{line:t,target:n,color:o,scale:r,property:l}),e.restore()}function ya(e,i,t){let{segments:n,points:s}=i,o=!0,a=!1;e.beginPath();for(let r of n){let{start:l,end:c}=r,h=s[l],d=s[qn(l,c,s)];o?(e.moveTo(h.x,h.y),o=!1):(e.lineTo(h.x,t),e.lineTo(h.x,h.y)),a=!!i.pathSegment(e,r,{move:a}),a?e.closePath():e.lineTo(d.x,t)}e.lineTo(i.first().x,t),e.closePath(),e.clip()}function Sa(e,i){let{line:t,target:n,property:s,color:o,scale:a}=i,r=Vh(t,n,s);for(let{source:l,target:c,start:h,end:d}of r){let{style:{backgroundColor:u=o}={}}=l,f=n!==!0;e.save(),e.fillStyle=u,od(e,a,f&&Hn(s,h,d)),e.beginPath();let g=!!t.pathSegment(e,l),p;if(f){g?e.closePath():Ca(e,n,d,s);let m=!!n.pathSegment(e,c,{move:g,reverse:!0});p=g&&m,p||Ca(e,n,h,s)}e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function od(e,i,t){let{top:n,bottom:s}=i.chart.chartArea,{property:o,start:a,end:r}=t||{};o==="x"&&(e.beginPath(),e.rect(a,n,r-a,s-n),e.clip())}function Ca(e,i,t,n){let s=i.interpolate(t,n);s&&e.lineTo(s.x,s.y)}var ad={id:"filler",afterDatasetsUpdate(e,i,t){let n=(e.data.datasets||[]).length,s=[],o,a,r,l;for(a=0;a<n;++a)o=e.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof Ti&&(l={visible:e.isDatasetVisible(a),index:a,fill:$h(r,a,n),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,s.push(l);for(a=0;a<n;++a)l=s[a],!(!l||l.fill===!1)&&(l.fill=jh(s,a,t.propagate))},beforeDraw(e,i,t){let n=t.drawTime==="beforeDraw",s=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=s.length-1;a>=0;--a){let r=s[a].$filler;r&&(r.line.updateControlPoints(o,r.axis),n&&r.fill&&Pn(e.ctx,r,o))}},beforeDatasetsDraw(e,i,t){if(t.drawTime!=="beforeDatasetsDraw")return;let n=e.getSortedVisibleDatasetMetas();for(let s=n.length-1;s>=0;--s){let o=n[s].$filler;xa(o)&&Pn(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,i,t){let n=i.meta.$filler;!xa(n)||t.drawTime!=="beforeDatasetDraw"||Pn(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},va=(e,i)=>{let{boxHeight:t=i,boxWidth:n=i}=e;return e.usePointStyle&&(t=Math.min(t,i),n=e.pointStyleWidth||Math.min(n,i)),{boxWidth:n,boxHeight:t,itemHeight:Math.max(i,t)}},rd=(e,i)=>e!==null&&i!==null&&e.datasetIndex===i.datasetIndex&&e.index===i.index,Pi=class extends pt{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.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(i,t,n){this.maxWidth=i,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let i=this.options.labels||{},t=H(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(n=>i.filter(n,this.chart.data))),i.sort&&(t=t.sort((n,s)=>i.sort(n,s,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:i,ctx:t}=this;if(!i.display){this.width=this.height=0;return}let n=i.labels,s=J(n.font),o=s.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:l}=va(n,o),c,h;t.font=s.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(a,o,r,l)+10):(h=this.maxHeight,c=this._fitCols(a,s,r,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(h,i.maxHeight||this.maxHeight)}_fitRows(i,t,n,s){let{ctx:o,maxWidth:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=s+r,d=i;o.textAlign="left",o.textBaseline="middle";let u=-1,f=-h;
vendor: 5,959 bytes, line 1
1return this.legendItems.forEach((g,p)=>{let m=n+t/2+o.measureText(g.text).width;(p===0||c[c.length-1]+m+2*r>a)&&(d+=h,c[c.length-(p>0?0:1)]=0,f+=h,u++),l[p]={left:0,top:f,row:u,width:m,height:s},c[c.length-1]+=m+r}),d}_fitCols(i,t,n,s){let{ctx:o,maxHeight:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=a-i,d=r,u=0,f=0,g=0,p=0;return this.legendItems.forEach((m,b)=>{let{itemWidth:_,itemHeight:y}=ld(n,t,o,m,s);b>0&&f+y+2*r>h&&(d+=u+r,c.push({width:u,height:f}),g+=u+r,p++,u=f=0),l[b]={left:g,top:f,col:p,width:_,height:y},u=Math.max(u,_),f+=y+r}),d+=u,c.push({width:u,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;let i=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:s},rtl:o}}=this,a=Kt(o,this.left,this.width);if(this.isHorizontal()){let r=0,l=it(n,this.left+s,this.right-this.lineWidths[r]);for(let c of t)r!==c.row&&(r=c.row,l=it(n,this.left+s,this.right-this.lineWidths[r])),c.top+=this.top+i+s,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+s}else{let r=0,l=it(n,this.top+i+s,this.bottom-this.columnSizes[r].height);for(let c of t)c.col!==r&&(r=c.col,l=it(n,this.top+i+s,this.bottom-this.columnSizes[r].height)),c.top=l,c.left+=this.left+s,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let i=this.ctx;Le(i,this),this._draw(),Ae(i)}}_draw(){let{options:i,columnSizes:t,lineWidths:n,ctx:s}=this,{align:o,labels:a}=i,r=G.color,l=Kt(i.rtl,this.left,this.width),c=J(a.font),{padding:h}=a,d=c.size,u=d/2,f;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;let{boxWidth:g,boxHeight:p,itemHeight:m}=va(a,d),b=function(S,P,w){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;s.save();let T=L(w.lineWidth,1);if(s.fillStyle=L(w.fillStyle,r),s.lineCap=L(w.lineCap,"butt"),s.lineDashOffset=L(w.lineDashOffset,0),s.lineJoin=L(w.lineJoin,"miter"),s.lineWidth=T,s.strokeStyle=L(w.strokeStyle,r),s.setLineDash(L(w.lineDash,[])),a.usePointStyle){let O={radius:p*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:T},A=l.xPlus(S,g/2),N=P+u;an(s,O,A,N,a.pointStyleWidth&&g)}else{let O=P+Math.max((d-p)/2,0),A=l.leftForLtr(S,g),N=Ft(w.borderRadius);s.beginPath(),Object.values(N).some(et=>et!==0)?pe(s,{x:A,y:O,w:g,h:p,radius:N}):s.rect(A,O,g,p),s.fill(),T!==0&&s.stroke()}s.restore()},_=function(S,P,w){It(s,w.text,S,P+m/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},y=this.isHorizontal(),v=this._computeTitleHeight();y?f={x:it(o,this.left+h,this.right-n[0]),y:this.top+h+v,line:0}:f={x:this.left+h,y:it(o,this.top+v+h,this.bottom-t[0].height),line:0},gn(this.ctx,i.textDirection);let x=m+h;this.legendItems.forEach((S,P)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;let w=s.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=a.textAlign)),O=g+u+w,A=f.x,N=f.y;l.setWidth(this.width),y?P>0&&A+O+h>this.right&&(N=f.y+=x,f.line++,A=f.x=it(o,this.left+h,this.right-n[f.line])):P>0&&N+x>this.bottom&&(A=f.x=A+t[f.line].width+h,f.line++,N=f.y=it(o,this.top+v+h,this.bottom-t[f.line].height));let et=l.x(A);if(b(et,N,S),A=vo(T,A+g+u,y?A+O:this.right,i.rtl),_(l.x(A),N,S),y)f.x+=O+h;else if(typeof S.text!="string"){let ht=c.lineHeight;f.y+=sr(S,ht)+h}else f.y+=x}),pn(this.ctx,i.textDirection)}drawTitle(){let i=this.options,t=i.title,n=J(t.font),s=nt(t.padding);if(!t.display)return;let o=Kt(i.rtl,this.left,this.width),a=this.ctx,r=t.position,l=n.size/2,c=s.top+l,h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=it(i.align,d,this.right-u);else{let g=this.columnSizes.reduce((p,m)=>Math.max(p,m.height),0);h=c+it(i.align,this.top,this.bottom-g-i.labels.padding-this._computeTitleHeight())}let f=it(r,d,d+u);a.textAlign=o.textAlign(oi(r)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,It(a,t.text,f,h,n)}_computeTitleHeight(){let i=this.options.title,t=J(i.font),n=nt(i.padding);return i.display?t.lineHeight+n.height:0}_getLegendItemAt(i,t){let n,s,o;if(xt(i,this.left,this.right)&&xt(t,this.top,this.bottom)){for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(s=o[n],xt(i,s.left,s.left+s.width)&&xt(t,s.top,s.top+s.height))return this.legendItems[n]}return null}handleEvent(i){let t=this.options;if(!dd(i.type,t))return;let n=this._getLegendItemAt(i.x,i.y);if(i.type==="mousemove"||i.type==="mouseout"){let s=this._hoveredItem,o=rd(s,n);s&&!o&&H(t.onLeave,[i,s,this],this),this._hoveredItem=n,n&&!o&&H(t.onHover,[i,n,this],this)}else n&&H(t.onClick,[i,n,this],this)}};function ld(e,i,t,n,s){let o=cd(n,e,i,t),a=hd(s,n,i.lineHeight);return{itemWidth:o,itemHeight:a}}function cd(e,i,t,n){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((o,a)=>o.length>a.length?o:a)),i+t.size/2+n.measureText(s).width}function hd(e,i,t){let n=e;return typeof i.text!="string"&&(n=sr(i,t)),n}function sr(e,i){let t=e.text?e.text.length:0;return i*t}function dd(e,i){return!!((e==="mousemove"||e==="mouseout")&&(i.onHover||i.onLeave)||i.onClick&&(e==="click"||e==="mouseup"))}var ud={id:"legend",_element:Pi,start(e,i,t){let n=e.legend=new Pi({ctx:e.ctx,options:t,chart:e});ot.configure(e,n,t),ot.addBox(e,n)},stop(e){ot.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,i,t){let n=e.legend;ot.configure(e,n,t),n.options=t},afterUpdate(e){let i=e.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(e,i){i.replay||e.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,i,t){let n=i.datasetIndex,s=t.chart;s.isDatasetVisible(n)?(s.hide(n),i.hidden=!0):(s.show(n),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let i=e.data.datasets,{labels:{usePointStyle:t,pointStyle:n,textAlign:s,color:o,useBorderRadius:a,borderRadius:r}}=e.legend.options;
vendor: 4,649 bytes, lines 1-3
1return e._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(t?0:void 0),h=nt(c.borderWidth);return{text:i[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:a&&(r||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},Ve=class extends pt{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.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(i,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=i,this.height=this.bottom=t;let s=$(n.text)?n.text.length:1;this._padding=nt(n.padding);let o=s*J(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let i=this.options.position;return i==="top"||i==="bottom"}_drawArgs(i){let{top:t,left:n,bottom:s,right:o,options:a}=this,r=a.align,l=0,c,h,d;return this.isHorizontal()?(h=it(r,n,o),d=t+i,c=o-n):(a.position==="left"?(h=n+i,d=it(r,s,t),l=Y*-.5):(h=o-i,d=it(r,t,s),l=Y*.5),c=s-t),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){let i=this.ctx,t=this.options;if(!t.display)return;let n=J(t.font),o=n.lineHeight/2+this._padding.top,{titleX:a,titleY:r,maxWidth:l,rotation:c}=this._drawArgs(o);It(i,t.text,0,0,n,{color:t.color,maxWidth:l,rotation:c,textAlign:oi(t.align),textBaseline:"middle",translation:[a,r]})}};function fd(e,i){let t=new Ve({ctx:e.ctx,options:i,chart:e});ot.configure(e,t,i),ot.addBox(e,t),e.titleBlock=t}var gd={id:"title",_element:Ve,start(e,i,t){fd(e,t)},stop(e){let i=e.titleBlock;ot.removeBox(e,i),delete e.titleBlock},beforeUpdate(e,i,t){let n=e.titleBlock;ot.configure(e,n,t),n.options=t},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}},_i=new WeakMap,pd={id:"subtitle",start(e,i,t){let n=new Ve({ctx:e.ctx,options:t,chart:e});ot.configure(e,n,t),ot.addBox(e,n),_i.set(e,n)},stop(e){ot.removeBox(e,_i.get(e)),_i.delete(e)},beforeUpdate(e,i,t){let n=_i.get(e);ot.configure(e,n,t),n.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Ne={average(e){if(!e.length)return!1;let i,t,n=new Set,s=0,o=0;for(i=0,t=e.length;i<t;++i){let r=e[i].element;if(r&&r.hasValue()){let l=r.tooltipPosition();n.add(l.x),s+=l.y,++o}}return o===0||n.size===0?!1:{x:[...n].reduce((r,l)=>r+l)/n.size,y:s/o}},nearest(e,i){if(!e.length)return!1;let t=i.x,n=i.y,s=Number.POSITIVE_INFINITY,o,a,r;for(o=0,a=e.length;o<a;++o){let l=e[o].element;if(l&&l.hasValue()){let c=l.getCenterPoint(),h=ti(i,c);h<s&&(s=h,r=l)}}if(r){let l=r.tooltipPosition();t=l.x,n=l.y}return{x:t,y:n}}};function yt(e,i){return i&&($(i)?Array.prototype.push.apply(e,i):e.push(i)),e}function Tt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
2`)>-1?e.split(`
3`):e}function md(e,i){let{element:t,datasetIndex:n,index:s}=i,o=e.getDatasetMeta(n).controller,{label:a,value:r}=o.getLabelAndValue(s);return{chart:e,label:a,parsed:o.getParsed(s),raw:e.data.datasets[n].data[s],formattedValue:r,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:t}}function ka(e,i){let t=e.chart.ctx,{body:n,footer:s,title:o}=e,{boxWidth:a,boxHeight:r}=i,l=J(i.bodyFont),c=J(i.titleFont),h=J(i.footerFont),d=o.length,u=s.length,f=n.length,g=nt(i.padding),p=g.height,m=0,b=n.reduce((v,x)=>v+x.before.length+x.lines.length+x.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(p+=d*c.lineHeight+(d-1)*i.titleSpacing+i.titleMarginBottom),b){let v=i.displayColors?Math.max(r,l.lineHeight):l.lineHeight;p+=f*v+(b-f)*l.lineHeight+(b-1)*i.bodySpacing}u&&(p+=i.footerMarginTop+u*h.lineHeight+(u-1)*i.footerSpacing);let _=0,y=function(v){m=Math.max(m,t.measureText(v).width+_)};return t.save(),t.font=c.string,W(e.title,y),t.font=l.string,W(e.beforeBody.concat(e.afterBody),y),_=i.displayColors?a+2+i.boxPadding:0,W(n,v=>{W(v.before,y),W(v.lines,y),W(v.after,y)}
vendor: 8,760 bytes, line 3
3),_=0,t.font=h.string,W(e.footer,y),t.restore(),m+=g.width,{width:m,height:p}}function _d(e,i){let{y:t,height:n}=i;return t<n/2?"top":t>e.height-n/2?"bottom":"center"}function bd(e,i,t,n){let{x:s,width:o}=n,a=t.caretSize+t.caretPadding;if(e==="left"&&s+o+a>i.width||e==="right"&&s-o-a<0)return!0}function xd(e,i,t,n){let{x:s,width:o}=t,{width:a,chartArea:{left:r,right:l}}=e,c="center";return n==="center"?c=s<=(r+l)/2?"left":"right":s<=o/2?c="left":s>=a-o/2&&(c="right"),bd(c,e,i,t)&&(c="center"),c}function Ma(e,i,t){let n=t.yAlign||i.yAlign||_d(e,t);return{xAlign:t.xAlign||i.xAlign||xd(e,i,t,n),yAlign:n}}function yd(e,i){let{x:t,width:n}=e;return i==="right"?t-=n:i==="center"&&(t-=n/2),t}function Sd(e,i,t){let{y:n,height:s}=e;return i==="top"?n+=t:i==="bottom"?n-=s+t:n-=s/2,n}function wa(e,i,t,n){let{caretSize:s,caretPadding:o,cornerRadius:a}=e,{xAlign:r,yAlign:l}=t,c=s+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=Ft(a),g=yd(i,r),p=Sd(i,l,c);return l==="center"?r==="left"?g+=c:r==="right"&&(g-=c):r==="left"?g-=Math.max(h,u)+s:r==="right"&&(g+=Math.max(d,f)+s),{x:tt(g,0,n.width-i.width),y:tt(p,0,n.height-i.height)}}function bi(e,i,t){let n=nt(t.padding);return i==="center"?e.x+e.width/2:i==="right"?e.x+e.width-n.right:e.x+n.left}function Pa(e){return yt([],Tt(e))}function Cd(e,i,t){return Pt(e,{tooltip:i,tooltipItems:t,type:"tooltip"})}function Da(e,i){let t=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return t?e.override(t):e}var or={beforeTitle:bt,title(e){if(e.length>0){let i=e[0],t=i.chart.data.labels,n=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return i.dataset.label||"";if(i.label)return i.label;if(n>0&&i.dataIndex<n)return t[i.dataIndex]}return""},afterTitle:bt,beforeBody:bt,beforeLabel:bt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let i=e.dataset.label||"";i&&(i+=": ");let t=e.formattedValue;return z(t)||(i+=t),i},labelColor(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:bt,afterBody:bt,beforeFooter:bt,footer:bt,afterFooter:bt};function lt(e,i,t,n){let s=e[i].call(t,n);return typeof s>"u"?or[i].call(t,n):s}var Ta=(()=>{class e extends pt{static positioners=Ne;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,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(){let t=this._cachedAnimations;if(t)return t;let n=this.chart,s=this.options.setContext(this.getContext()),o=s.enabled&&n.options.animation&&s.animations,a=new Ci(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=Cd(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){let{callbacks:s}=n,o=lt(s,"beforeTitle",this,t),a=lt(s,"title",this,t),r=lt(s,"afterTitle",this,t),l=[];return l=yt(l,Tt(o)),l=yt(l,Tt(a)),l=yt(l,Tt(r)),l}getBeforeBody(t,n){return Pa(lt(n.callbacks,"beforeBody",this,t))}getBody(t,n){let{callbacks:s}=n,o=[];return W(t,a=>{let r={before:[],lines:[],after:[]},l=Da(s,a);yt(r.before,Tt(lt(l,"beforeLabel",this,a))),yt(r.lines,lt(l,"label",this,a)),yt(r.after,Tt(lt(l,"afterLabel",this,a))),o.push(r)}),o}getAfterBody(t,n){return Pa(lt(n.callbacks,"afterBody",this,t))}getFooter(t,n){let{callbacks:s}=n,o=lt(s,"beforeFooter",this,t),a=lt(s,"footer",this,t),r=lt(s,"afterFooter",this,t),l=[];return l=yt(l,Tt(o)),l=yt(l,Tt(a)),l=yt(l,Tt(r)),l}_createItems(t){let n=this._active,s=this.chart.data,o=[],a=[],r=[],l=[],c,h;for(c=0,h=n.length;c<h;++c)l.push(md(this.chart,n[c]));return t.filter&&(l=l.filter((d,u,f)=>t.filter(d,u,f,s))),t.itemSort&&(l=l.sort((d,u)=>t.itemSort(d,u,s))),W(l,d=>{let u=Da(t.callbacks,d);o.push(lt(u,"labelColor",this,d)),a.push(lt(u,"labelPointStyle",this,d)),r.push(lt(u,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=r,this.dataPoints=l,l}update(t,n){let s=this.options.setContext(this.getContext()),o=this._active,a,r=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Ne[s.position].call(this,o,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);let c=this._size=ka(this,s),h=Object.assign({},l,c),d=Ma(this.chart,s,h),u=wa(s,h,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,a={opacity:1,x:u.x,y:u.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,o){let a=this.getCaretPosition(t,s,o);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,s){let{xAlign:o,yAlign:a}=this,{caretSize:r,cornerRadius:l}=s,{topLeft:c,topRight:h,bottomLeft:d,bottomRight:u}=Ft(l),{x:f,y:g}=t,{width:p,height:m}=n,b,_,y,v,x,S;return a==="center"?(x=g+m/2,o==="left"?(b=f,_=b-r,v=x+r,S=x-r):(b=f+p,_=b+r,v=x-r,S=x+r),y=b):(o==="left"?_=f+Math.max(c,d)+r:o==="right"?_=f+p-Math.max(h,u)-r:_=this.caretX,a==="top"?(v=g,x=v-r,b=_-r,y=_+r):(v=g+m,x=v+r,b=_+r,y=_-r),S=v),{x1:b,x2:_,x3:y,y1:v,y2:x,y3:S}}drawTitle(t,n,s){let o=this.title,a=o.length,r,l,c;if(a){let h=Kt(s.rtl,this.x,this.width);for(t.x=bi(this,s.titleAlign,s),n.textAlign=h.textAlign(s.titleAlign),n.textBaseline="middle",r=J(s.titleFont),l=s.titleSpacing,n.fillStyle=s.titleColor,n.font=r.string,c=0;c<a;++c)n.fillText(o[c],h.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+l,c+1===a&&(t.y+=s.titleMarginBottom-l)}}_drawColorBox(t,n,s,o,a){let r=this.labelColors[s],l=this.labelPointStyles[s],{boxHeight:c,boxWidth:h}=a,d=J(a.bodyFont),u=bi(this,"left",a),f=o.x(u),g=c<d.lineHeight?(d.lineHeight-c)/2:0,p=n.y+g;if(a.usePointStyle){let m={radius:Math.min(h,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=o.leftForLtr(f,h)+h/2,_=p+c/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,ri(t,m,b,_),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,ri(t,m,b,_)}else{t.lineWidth=B(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;let m=o.leftForLtr(f,h),b=o.leftForLtr(o.xPlus(f,1),h-2),_=Ft(r.borderRadius);Object.values(_).some(y=>y!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,pe(t,{x:m,y:p,w:h,h:c,radius:_}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),pe(t,{x:b,y:p+1,w:h-2,h:c-2,radius:_}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,p,h,c),t.strokeRect(m,p,h,c),t.fillStyle=r.backgroundColor,t.fillRect(b,p+1,h-2,c-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){let{body:o}=this,{bodySpacing:a,bodyAlign:r,displayColors:l,boxHeight:c,boxWidth:h,boxPadding:d}=s,u=J(s.bodyFont),f=u.lineHeight,g=0,p=Kt(s.rtl,this.x,this.width),m=function(T){n.fillText(T,p.x(t.x+g),t.y+f/2),t.y+=f+a},b=p.textAlign(r),_,y,v,x,S,P,w;for(n.textAlign=r,n.textBaseline="middle",n.font=u.string,t.x=bi(this,b,s),n.fillStyle=s.bodyColor,W(this.beforeBody,m),g=l&&b!=="right"?r==="center"?h/2+d:h+2+d:0,x=0,P=o.length;x<P;++x){for(_=o[x],y=this.labelTextColors[x],n.fillStyle=y,W(_.before,m),v=_.lines,l&&v.length&&(this._drawColorBox(n,t,x,p,s),f=Math.max(u.lineHeight,c)),S=0,w=v.length;S<w;++S)m(v[S]),f=u.lineHeight;W(_.after,m)}g=0,f=u.lineHeight,W(this.afterBody,m),t.y-=a}drawFooter(t,n,s){let o=this.footer,a=o.length,r,l;if(a){let c=Kt(s.rtl,this.x,this.width);for(t.x=bi(this,s.footerAlign,s),t.y+=s.footerMarginTop,n.textAlign=c.textAlign(s.footerAlign),n.textBaseline="middle",r=J(s.footerFont),n.fillStyle=s.footerColor,n.font=r.string,l=0;l<a;++l)n.fillText(o[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+s.footerSpacing}}
vendor: 6,789 bytes, line 3
3drawBackground(t,n,s,o){let{xAlign:a,yAlign:r}=this,{x:l,y:c}=t,{width:h,height:d}=s,{topLeft:u,topRight:f,bottomLeft:g,bottomRight:p}=Ft(o.cornerRadius);n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,n.lineWidth=o.borderWidth,n.beginPath(),n.moveTo(l+u,c),r==="top"&&this.drawCaret(t,n,s,o),n.lineTo(l+h-f,c),n.quadraticCurveTo(l+h,c,l+h,c+f),r==="center"&&a==="right"&&this.drawCaret(t,n,s,o),n.lineTo(l+h,c+d-p),n.quadraticCurveTo(l+h,c+d,l+h-p,c+d),r==="bottom"&&this.drawCaret(t,n,s,o),n.lineTo(l+g,c+d),n.quadraticCurveTo(l,c+d,l,c+d-g),r==="center"&&a==="left"&&this.drawCaret(t,n,s,o),n.lineTo(l,c+u),n.quadraticCurveTo(l,c,l+u,c),n.closePath(),n.fill(),o.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){let n=this.chart,s=this.$animations,o=s&&s.x,a=s&&s.y;if(o||a){let r=Ne[t.position].call(this,this._active,this._eventPosition);if(!r)return;let l=this._size=ka(this,t),c=Object.assign({},r,this._size),h=Ma(n,t,c),d=wa(t,c,h,n);(o._to!==d.x||a._to!==d.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){let n=this.options.setContext(this.getContext()),s=this.opacity;if(!s)return;this._updateAnimationTarget(n);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;let r=nt(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=s,this.drawBackground(a,t,o,n),gn(t,n.textDirection),a.y+=r.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),pn(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){let s=this._active,o=t.map(({datasetIndex:l,index:c})=>{let h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[c],index:c}}),a=!Te(s,o),r=this._positionChanged(o,n);(a||r)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],r=this._getActiveElements(t,a,n,s),l=this._positionChanged(r,t),c=n||!Te(r,a)||l;return c&&(this._active=r,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,s,o){let a=this.options;if(t.type==="mouseout")return[];if(!o)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let r=this.chart.getElementsAtEventForMode(t,a.mode,a,s);return a.reverse&&r.reverse(),r}_positionChanged(t,n){let{caretX:s,caretY:o,options:a}=this,r=Ne[a.position].call(this,t,n);return r!==!1&&(s!==r.x||o!==r.y)}}return e})(),vd={id:"tooltip",_element:Ta,positioners:Ne,afterInit(e,i,t){t&&(e.tooltip=new Ta({chart:e,options:t}))},beforeUpdate(e,i,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,i,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){let i=e.tooltip;if(i&&i._willRender()){let t={tooltip:i};if(e.notifyPlugins("beforeTooltipDraw",ie(ee({},t),{cancelable:!0}))===!1)return;i.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,i){if(e.tooltip){let t=i.replay;e.tooltip.handleEvent(i.event,t,i.inChartArea)&&(i.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:(e,i)=>i.bodyFont.size,boxWidth:(e,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:or},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},kd=Object.freeze({__proto__:null,Colors:Fh,Decimation:Wh,Filler:ad,Legend:ud,SubTitle:pd,Title:gd,Tooltip:vd}),Md=(e,i,t,n)=>(typeof i=="string"?(t=e.push(i)-1,n.unshift({index:t,label:i})):isNaN(i)&&(t=null),t);function wd(e,i,t,n){let s=e.indexOf(i);if(s===-1)return Md(e,i,t,n);let o=e.lastIndexOf(i);return s!==o?t:s}var Pd=(e,i)=>e===null?null:tt(Math.round(e),0,i);function Ea(e){let i=this.getLabels();return e>=0&&e<i.length?i[e]:e}var Dd=(()=>{class e extends Qt{static id="category";static defaults={ticks:{callback:Ea}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let n=this._addedLabels;if(n.length){let s=this.getLabels();for(let{index:o,label:a}of n)s[o]===a&&s.splice(o,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(z(t))return null;let s=this.getLabels();return n=isFinite(n)&&s[n]===t?n:wd(s,t,L(n,t),this._addedLabels),Pd(n,s.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:s,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),n||(o=this.getLabels().length-1)),this.min=s,this.max=o}buildTicks(){let t=this.min,n=this.max,s=this.options.offset,o=[],a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let r=t;r<=n;r++)o.push({value:r});return o}getLabelForValue(t){return Ea.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}return e})();function Td(e,i){let t=[],{bounds:s,step:o,min:a,max:r,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=e,f=o||1,g=h-1,{min:p,max:m}=i,b=!z(a),_=!z(r),y=!z(c),v=(m-p)/(d+1),x=Ui((m-p)/g/f)*f,S,P,w,T;if(x<1e-14&&!b&&!_)return[{value:p},{value:m}];T=Math.ceil(m/x)-Math.floor(p/x),T>g&&(x=Ui(T*x/g/f)*f),z(l)||(S=Math.pow(10,l),x=Math.ceil(x*S)/S),s==="ticks"?(P=Math.floor(p/x)*x,w=Math.ceil(m/x)*x):(P=p,w=m),b&&_&&o&&mo((r-a)
vendor: 5,081 bytes, line 3
3/o,x/1e3)?(T=Math.round(Math.min((r-a)/x,h)),x=(r-a)/T,P=a,w=r):y?(P=b?a:P,w=_?r:w,T=c-1,x=(w-P)/T):(T=(w-P)/x,ue(T,Math.round(T),x/1e3)?T=Math.round(T):T=Math.ceil(T));let O=Math.max(Xi(x),Xi(P));S=Math.pow(10,z(l)?O:l),P=Math.round(P*S)/S,w=Math.round(w*S)/S;let A=0;for(b&&(u&&P!==a?(t.push({value:a}),P<a&&A++,ue(Math.round((P+A*x)*S)/S,a,La(a,v,e))&&A++):P<a&&A++);A<T;++A){let N=Math.round((P+A*x)*S)/S;if(_&&N>r)break;t.push({value:N})}return _&&u&&w!==r?t.length&&ue(t[t.length-1].value,r,La(r,v,e))?t[t.length-1].value=r:t.push({value:r}):(!_||w===r)&&t.push({value:w}),t}function La(e,i,{horizontal:t,minRotation:n}){let s=ut(n),o=(t?Math.sin(s):Math.cos(s))||.001,a=.75*i*(""+e).length;return Math.min(i/o,a)}var xe=class extends Qt{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,t){return z(i)||(typeof i=="number"||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){let{beginAtZero:i}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:s,max:o}=this,a=l=>s=t?s:l,r=l=>o=n?o:l;if(i){let l=gt(s),c=gt(o);l<0&&c<0?r(0):l>0&&c>0&&a(0)}if(s===o){let l=o===0?1:Math.abs(o*.05);r(o+l),i||a(s-l)}this.min=s,this.max=o}getTickLimit(){let i=this.options.ticks,{maxTicksLimit:t,stepSize:n}=i,s;return n?(s=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),t=t||11),t&&(s=Math.min(t,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let i=this.options,t=i.ticks,n=this.getTickLimit();n=Math.max(2,n);let s={maxTicks:n,bounds:i.bounds,min:i.min,max:i.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},o=this._range||this,a=Td(s,o);return i.bounds==="ticks"&&Gi(a,this,"value"),i.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let i=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&i.length){let s=(n-t)/Math.max(i.length-1,1)/2;t-=s,n+=s}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(i){return ge(i,this.chart.options.locale,this.options.ticks.format)}},jn=class extends xe{static id="linear";static defaults={ticks:{callback:Ee.formatters.numeric}};determineDataLimits(){let{min:i,max:t}=this.getMinMax(!0);this.min=q(i)?i:0,this.max=q(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let i=this.isHorizontal(),t=i?this.width:this.height,n=ut(this.options.ticks.minRotation),s=(i?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/s))}getPixelForValue(i){return i===null?NaN:this.getPixelForDecimal((i-this._startValue)/this._valueRange)}getValueForPixel(i){return this._startValue+this.getDecimalForPixel(i)*this._valueRange}},He=e=>Math.floor(Mt(e)),Zt=(e,i)=>Math.pow(10,He(e)+i);function Aa(e){return e/Math.pow(10,He(e))===1}function Oa(e,i,t){let n=Math.pow(10,t),s=Math.floor(e/n);return Math.ceil(i/n)-s}function Ed(e,i){let t=i-e,n=He(t);for(;Oa(e,i,n)>10;)n++;for(;Oa(e,i,n)<10;)n--;return Math.min(n,He(e))}function Ld(e,{min:i,max:t}){i=rt(e.min,i);let n=[],s=He(i),o=Ed(i,t),a=o<0?Math.pow(10,Math.abs(o)):1,r=Math.pow(10,o),l=s>o?Math.pow(10,s):0,c=Math.round((i-l)*a)/a,h=Math.floor((i-l)/r/10)*r*10,d=Math.floor((c-h)/Math.pow(10,o)),u=rt(e.min,Math.round((l+h+d*Math.pow(10,o))*a)/a);for(;u<t;)n.push({value:u,major:Aa(u),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,a=o>=0?1:a),u=Math.round((l+h+d*Math.pow(10,o))*a)/a;let f=rt(e.max,u);return n.push({value:f,major:Aa(f),significand:d}),n}var $n=class extends Qt{static id="logarithmic";static defaults={ticks:{callback:Ee.formatters.logarithmic,major:{enabled:!0}}};constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(i,t){let n=xe.prototype.parse.apply(this,[i,t]);if(n===0){this._zero=!0;return}return q(n)&&n>0?n:null}determineDataLimits(){let{min:i,max:t}=this.getMinMax(!0);this.min=q(i)?Math.max(0,i):null,this.max=q(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!q(this._userMin)&&(this.min=i===Zt(this.min,0)?Zt(this.min,-1):Zt(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:i,maxDefined:t}=this.getUserBounds(),n=this.min,s=this.max,o=r=>n=i?n:r,a=r=>s=t?s:r;n===s&&(n<=0?(o(1),a(10)):(o(Zt(n,-1)),a(Zt(s,1)))),n<=0&&o(Zt(s,-1)),s<=0&&a(Zt(n,1)),this.min=n,this.max=s}buildTicks(){let i=this.options,t={min:this._userMin,max:this._userMax},n=Ld(t,this);return i.bounds==="ticks"&&Gi(n,this,"value"),i.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(i){return i===void 0?"0":ge(i,this.chart.options.locale,this.options.ticks.format)}configure(){let i=this.min;
vendor: 5,019 bytes, line 3
3super.configure(),this._startValue=Mt(i),this._valueRange=Mt(this.max)-Mt(i)}getPixelForValue(i){return(i===void 0||i===0)&&(i=this.min),i===null||isNaN(i)?NaN:this.getPixelForDecimal(i===this.min?0:(Mt(i)-this._startValue)/this._valueRange)}getValueForPixel(i){let t=this.getDecimalForPixel(i);return Math.pow(10,this._startValue+t*this._valueRange)}};function Yn(e){let i=e.ticks;if(i.display&&e.display){let t=nt(i.backdropPadding);return L(i.font&&i.font.size,G.font.size)+t.height}return 0}function Ad(e,i,t){return t=$(t)?t:[t],{w:Mo(e,i.string,t),h:t.length*i.lineHeight}}function Ra(e,i,t,n,s){return e===n||e===s?{start:i-t/2,end:i+t/2}:e<n||e>s?{start:i-t,end:i}:{start:i,end:i+t}}function Od(e){let i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},t=Object.assign({},i),n=[],s=[],o=e._pointLabels.length,a=e.options.pointLabels,r=a.centerPointLabels?Y/o:0;for(let l=0;l<o;l++){let c=a.setContext(e.getPointLabelContext(l));s[l]=c.padding;let h=e.getPointPosition(l,e.drawingArea+s[l],r),d=J(c.font),u=Ad(e.ctx,d,e._pointLabels[l]);n[l]=u;let f=at(e.getIndexAngle(l)+r),g=Math.round(ni(f)),p=Ra(g,h.x,u.w,0,180),m=Ra(g,h.y,u.h,90,270);Rd(t,i,f,p,m)}e.setCenterPoint(i.l-t.l,t.r-i.r,i.t-t.t,t.b-i.b),e._pointLabelItems=zd(e,n,s)}function Rd(e,i,t,n,s){let o=Math.abs(Math.sin(t)),a=Math.abs(Math.cos(t)),r=0,l=0;n.start<i.l?(r=(i.l-n.start)/o,e.l=Math.min(e.l,i.l-r)):n.end>i.r&&(r=(n.end-i.r)/o,e.r=Math.max(e.r,i.r+r)),s.start<i.t?(l=(i.t-s.start)/a,e.t=Math.min(e.t,i.t-l)):s.end>i.b&&(l=(s.end-i.b)/a,e.b=Math.max(e.b,i.b+l))}function Id(e,i,t){let n=e.drawingArea,{extra:s,additionalAngle:o,padding:a,size:r}=t,l=e.getPointPosition(i,n+s+a,o),c=Math.round(ni(at(l.angle+Z))),h=Wd(l.y,r.h,c),d=Bd(c),u=Nd(l.x,r.w,d);return{visible:!0,x:l.x,y:h,textAlign:d,left:u,top:h,right:u+r.w,bottom:h+r.h}}function Fd(e,i){if(!i)return!0;let{left:t,top:n,right:s,bottom:o}=e;return!(_t({x:t,y:n},i)||_t({x:t,y:o},i)||_t({x:s,y:n},i)||_t({x:s,y:o},i))}function zd(e,i,t){let n=[],s=e._pointLabels.length,o=e.options,{centerPointLabels:a,display:r}=o.pointLabels,l={extra:Yn(o)/2,additionalAngle:a?Y/s:0},c;for(let h=0;h<s;h++){l.padding=t[h],l.size=i[h];let d=Id(e,h,l);n.push(d),r==="auto"&&(d.visible=Fd(d,c),d.visible&&(c=d))}return n}function Bd(e){return e===0||e===180?"center":e<180?"left":"right"}function Nd(e,i,t){return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function Wd(e,i,t){return t===90||t===270?e-=i/2:(t>270||t<90)&&(e-=i),e}function Vd(e,i,t){let{left:n,top:s,right:o,bottom:a}=t,{backdropColor:r}=i;if(!z(r)){let l=Ft(i.borderRadius),c=nt(i.backdropPadding);e.fillStyle=r;let h=n-c.left,d=s-c.top,u=o-n+c.width,f=a-s+c.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),pe(e,{x:h,y:d,w:u,h:f,radius:l}),e.fill()):e.fillRect(h,d,u,f)}}function Hd(e,i){let{ctx:t,options:{pointLabels:n}}=e;for(let s=i-1;s>=0;s--){let o=e._pointLabelItems[s];if(!o.visible)continue;let a=n.setContext(e.getPointLabelContext(s));Vd(t,a,o);let r=J(a.font),{x:l,y:c,textAlign:h}=o;It(t,e._pointLabels[s],l,c+r.lineHeight/2,r,{color:a.color,textAlign:h,textBaseline:"middle"})}}function ar(e,i,t,n){let{ctx:s}=e;if(t)s.arc(e.xCenter,e.yCenter,i,0,U);else{let o=e.getPointPosition(0,i);s.moveTo(o.x,o.y);for(let a=1;a<n;a++)o=e.getPointPosition(a,i),s.lineTo(o.x,o.y)}}function jd(e,i,t,n,s){let o=e.ctx,a=i.circular,{color:r,lineWidth:l}=i;!a&&!n||!r||!l||t<0||(o.save(),o.strokeStyle=r,o.lineWidth=l,o.setLineDash(s.dash||[]),o.lineDashOffset=s.dashOffset,o.beginPath(),ar(e,t,a,n),o.closePath(),o.stroke(),o.restore())}function $d(e,i,t){return Pt(e,{label:t,index:i,type:"pointLabel"})}var Un=class extends xe{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ee.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(i){return i},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(i){super(i),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let i=this._padding=nt(Yn(this.options)/2),t=this.width=this.maxWidth-i.width,n=this.height=this.maxHeight-i.height;this.xCenter=Math.floor(this.left+t/2+i.left),this.yCenter=Math.floor(this.top+n/2+i.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){let{min:i,max:t}=this.getMinMax(!1);this.min=q(i)&&!isNaN(i)?i:0,this.max=q(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Yn(this.options))}generateTickLabels(i){xe.prototype.generateTickLabels.call(this,i),this._pointLabels=this.getLabels().map((t,n)=>{let s=H(this.options.pointLabels.callback,[t,n],this);return s||s===0?s:""}
vendor: 5,504 bytes, line 3
3).filter((t,n)=>this.chart.getDataVisibility(n))}fit(){let i=this.options;i.display&&i.pointLabels.display?Od(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(i,t,n,s){this.xCenter+=Math.floor((i-t)/2),this.yCenter+=Math.floor((n-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(i,t,n,s))}getIndexAngle(i){let t=U/(this._pointLabels.length||1),n=this.options.startAngle||0;return at(i*t+ut(n))}getDistanceFromCenterForValue(i){if(z(i))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-i)*t:(i-this.min)*t}getValueForDistanceFromCenter(i){if(z(i))return NaN;let t=i/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(i){let t=this._pointLabels||[];if(i>=0&&i<t.length){let n=t[i];return $d(this.getContext(),i,n)}}getPointPosition(i,t,n=0){let s=this.getIndexAngle(i)-Z+n;return{x:Math.cos(s)*t+this.xCenter,y:Math.sin(s)*t+this.yCenter,angle:s}}getPointPositionForValue(i,t){return this.getPointPosition(i,this.getDistanceFromCenterForValue(t))}getBasePosition(i){return this.getPointPositionForValue(i||0,this.getBaseValue())}getPointLabelPosition(i){let{left:t,top:n,right:s,bottom:o}=this._pointLabelItems[i];return{left:t,top:n,right:s,bottom:o}}drawBackground(){let{backgroundColor:i,grid:{circular:t}}=this.options;if(i){let n=this.ctx;n.save(),n.beginPath(),ar(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=i,n.fill(),n.restore()}}drawGrid(){let i=this.ctx,t=this.options,{angleLines:n,grid:s,border:o}=t,a=this._pointLabels.length,r,l,c;if(t.pointLabels.display&&Hd(this,a),s.display&&this.ticks.forEach((h,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(h.value);let u=this.getContext(d),f=s.setContext(u),g=o.setContext(u);jd(this,f,l,a,g)}}),n.display){for(i.save(),r=a-1;r>=0;r--){let h=n.setContext(this.getPointLabelContext(r)),{color:d,lineWidth:u}=h;!u||!d||(i.lineWidth=u,i.strokeStyle=d,i.setLineDash(h.borderDash),i.lineDashOffset=h.borderDashOffset,l=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(r,l),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(c.x,c.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){let i=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let s=this.getIndexAngle(0),o,a;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(s),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((r,l)=>{if(l===0&&this.min>=0&&!t.reverse)return;let c=n.setContext(this.getContext(l)),h=J(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=h.string,a=i.measureText(r.label).width,i.fillStyle=c.backdropColor;let d=nt(c.backdropPadding);i.fillRect(-a/2-d.left,-o-h.size/2-d.top,a+d.width,h.size+d.height)}It(i,r.label,0,-o,h,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),i.restore()}drawTitle(){}},Ei={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}},ct=Object.keys(Ei);function Ia(e,i){return e-i}function Fa(e,i){if(z(i))return null;let t=e._adapter,{parser:n,round:s,isoWeekday:o}=e._parseOpts,a=i;return typeof n=="function"&&(a=n(a)),q(a)||(a=typeof n=="string"?t.parse(a,n):t.parse(a)),a===null?null:(s&&(a=s==="week"&&(Xt(o)||o===!0)?t.startOf(a,"isoWeek",o):t.startOf(a,s)),+a)}function za(e,i,t,n){let s=ct.length;for(let o=ct.indexOf(e);o<s-1;++o){let a=Ei[ct[o]],r=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((t-i)/(r*a.size))<=n)return ct[o]}return ct[s-1]}function Yd(e,i,t,n,s){for(let o=ct.length-1;o>=ct.indexOf(t);o--){let a=ct[o];if(Ei[a].common&&e._adapter.diff(s,n,a)>=i-1)return a}return ct[t?ct.indexOf(t):0]}function Ud(e){for(let i=ct.indexOf(e)+1,t=ct.length;i<t;++i)if(Ei[ct[i]].common)return ct[i]}function Ba(e,i,t){if(!t)e[i]=!0;else if(t.length){let{lo:n,hi:s}=si(t,i),o=t[n]>=i?t[n]:t[s];e[o]=!0}}function Gd(e,i,t,n){let s=e._adapter,o=+s.startOf(i[0].value,n),a=i[i.length-1].value,r,l;for(r=o;r<=a;r=+s.add(r,1,n))l=t[r],l>=0&&(i[l].major=!0);return i}function Na(e,i,t){let n=[],s={},o=i.length,a,r;for(a=0;a<o;++a)r=i[a],s[r]=a,n.push({value:r,major:!1});return o===0||!t?n:Gd(e,n,s,t)}var Gn=(()=>{class e extends Qt{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};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,n={}){let s=t.time||(t.time={}),o=this._adapter=new sc._date(t.adapters.date);o.init(n),he(s.displayFormats,o.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Fa(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,n=this._adapter,s=t.time.unit||"day",{min:o,max:a,minDefined:r,maxDefined:l}=this.getUserBounds();function c(h){!r&&!isNaN(h.min)&&(o=Math.min(o,h.min)),!l&&!isNaN(h.max)&&(a=Math.max(a,h.max))}
vendor: 6,475 bytes, line 3
3(!r||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=q(o)&&!isNaN(o)?o:+n.startOf(Date.now(),s),a=q(a)&&!isNaN(a)?a:+n.endOf(Date.now(),s)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let t=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],s=t[t.length-1]),{min:n,max:s}}buildTicks(){let t=this.options,n=t.time,s=t.ticks,o=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,r=this.max,l=xo(o,a,r);return this._unit=n.unit||(s.autoSkip?za(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):Yd(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:Ud(this._unit),this.initOffsets(o),t.reverse&&l.reverse(),Na(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,s=0,o,a;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?s=a:s=(a-this.getDecimalForValue(t[t.length-2]))/2);let r=t.length<3?.5:.25;n=tt(n,0,r),s=tt(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){let t=this._adapter,n=this.min,s=this.max,o=this.options,a=o.time,r=a.unit||za(a.minUnit,n,s,this._getLabelCapacity(n)),l=L(o.ticks.stepSize,1),c=r==="week"?a.isoWeekday:!1,h=Xt(c)||c===!0,d={},u=n,f,g;if(h&&(u=+t.startOf(u,"isoWeek",c)),u=+t.startOf(u,h?"day":r),t.diff(s,n,r)>1e5*l)throw new Error(n+" and "+s+" are too far apart with stepSize of "+l+" "+r);let p=o.ticks.source==="data"&&this.getDataTimestamps();for(f=u,g=0;f<s;f=+t.add(f,l,r),g++)Ba(d,f,p);return(f===s||o.bounds==="ticks"||g===1)&&Ba(d,f,p),Object.keys(d).sort(Ia).map(m=>+m)}getLabelForValue(t){let n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){let o=this.options.time.displayFormats,a=this._unit,r=n||o[a];return this._adapter.format(t,r)}_tickFormatFunction(t,n,s,o){let a=this.options,r=a.ticks.callback;if(r)return H(r,[t,n,s],this);let l=a.time.displayFormats,c=this._unit,h=this._majorUnit,d=c&&l[c],u=h&&l[h],f=s[n],g=h&&u&&f&&f.major;return this._adapter.format(t,o||(g?u:d))}generateTickLabels(t){let n,s,o;for(n=0,s=t.length;n<s;++n)o=t[n],o.label=this._tickFormatFunction(o.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let n=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(t){let n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){let n=this.options.ticks,s=this.ctx.measureText(t).width,o=ut(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(o),r=Math.sin(o),l=this._resolveTickFontOptions(0).size;return{w:s*a+l*r,h:s*r+l*a}}_getLabelCapacity(t){let n=this.options.time,s=n.displayFormats,o=s[n.unit]||s.millisecond,a=this._tickFormatFunction(t,0,Na(this,[t],this._majorUnit),o),r=this._getLabelSize(a),l=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,s=o.length;n<s;++n)t=t.concat(o[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],n,s;if(t.length)return t;let o=this.getLabels();for(n=0,s=o.length;n<s;++n)t.push(Fa(this,o[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Zi(t.sort(Ia))}}return e})();function xi(e,i,t){let n=0,s=e.length-1,o,a,r,l;t?(i>=e[n].pos&&i<=e[s].pos&&({lo:n,hi:s}=mt(e,"pos",i)),{pos:o,time:r}=e[n],{pos:a,time:l}=e[s]):(i>=e[n].time&&i<=e[s].time&&({lo:n,hi:s}=mt(e,"time",i)),{time:o,pos:r}=e[n],{time:a,pos:l}=e[s]);let c=a-o;return c?r+(l-r)*(i-o)/c:r}var Xn=class extends Gn{static id="timeseries";static defaults=Gn.defaults;constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let i=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(i);this._minPos=xi(t,this.min),this._tableRange=xi(t,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){let{min:t,max:n}=this,s=[],o=[],a,r,l,c,h;for(a=0,r=i.length;a<r;++a)c=i[a],c>=t&&c<=n&&s.push(c);if(s.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,r=s.length;a<r;++a)h=s[a+1],l=s[a-1],c=s[a],Math.round((h+l)/2)!==c&&o.push({time:c,pos:a/(r-1)});return o}_generate(){let i=this.min,t=this.max,n=super.getDataTimestamps();return(!n.includes(i)||!n.length)&&n.splice(0,0,i),(!n.includes(t)||n.length===1)&&n.push(t),n.sort((s,o)=>s-o)}_getTimestampsForTable(){let i=this._cache.all||[];if(i.length)return i;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return t.length&&n.length?i=this.normalize(t.concat(n)):i=t.length?t:n,i=this._cache.all=i,i}getDecimalForValue(i){return(xi(this._table,i)-this._minPos)/this._tableRange}getValueForPixel(i){let t=this._offsets,n=this.getDecimalForPixel(i)/t.factor-t.end;return xi(this._table,n*this._tableRange+this._minPos,!0)}},Xd=Object.freeze({__proto__:null,CategoryScale:Dd,LinearScale:jn,LogarithmicScale:$n,RadialLinearScale:Un,TimeScale:Gn,TimeSeriesScale:Xn}),rr=[nc,Th,kd,Xd];var Kd=["myChart"],lr=(e,i)=>i.idField;function qd(e,i){e&1&&(C(0,"th",22),M(1,"Position"),k())}function Zd(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),jt(t.position)}}function Qd(e,i){e&1&&(C(0,"th",22),M(1,"Player / Team"),k())}function Jd(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),jt(t.entityName)}}function tu(e,i){e&1&&(C(0,"th",22),M(1,"Adjusted Total After Drop"),k())}function eu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.netTotalLeaguePoints.toFixed(2)," ")}}function iu(e,i){e&1&&(C(0,"th",22),M(1,"Total League Points"),k())}function nu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.grossTotalLeaguePoints.toFixed(2)," ")}}function su(e,i){if(e&1&&(C(0,"th",22),M(1),k()),e&2){let t=K().$implicit;D(),jt(t.title)}}
3function ou(e,i){e&1&&(C(0,"mat-icon",26),M(1," close_small "),k())}function au(e,i){if(e&1&&(C(0,"td",23),M(1),E(2,ou,2,0,"mat-icon",25),k()),e&2){let t=i.$implicit,n=K().index;D(),F(" ",t["gameday_"+n].toFixed(2)," "),D(),j("ngIf",t.lowestScoreIndex===n)}}function ru(e,i){if(e&1&&(R(0,24),E(1,su,2,1,"th",14)(2,au,3,2,"td",15),I()),e&2){let t=i.index;j("matColumnDef","gameday_"+t)}}function lu(e,i){e&1&&Ct(0,"tr",27)}function cu(e,i){e&1&&Ct(0,"tr",28)}function hu(e,i){if(e&1&&(C(0,"mat-tab",11)(1,"div",6)(2,"table",12),R(3,13),E(4,qd,2,0,"th",14)(5,Zd,2,1,"td",15),I(),R(6,16),E(7,Qd,2,0,"th",14)(8,Jd,2,1,"td",15),I(),R(9,17),E(10,tu,2,0,"th",14)(11,eu,2,1,"td",15),I(),R(12,18),E(13,iu,2,0,"th",14)(14,nu,2,1,"td",15),I(),E(15,ru,3,1,"ng-container",19)(16,lu,1,0,"tr",20)(17,cu,1,0,"tr",21),k()()()),e&2){let t=K();D(2),j("dataSource",t.leaguePointLeaderboardData()),D(13),j("ngForOf",t.selectableGamedays()),D(),j("matHeaderRowDef",t.displayedLeaguePointLeaderboardColumns())("matHeaderRowDefSticky",!0),D(),j("matRowDefColumns",t.displayedLeaguePointLeaderboardColumns())}}function du(e,i){if(e&1&&(C(0,"mat-option",5),M(1),k()),e&2){let t=i.$implicit;j("value",t),D(),F(" ",t.title," ")}}function uu(e,i){e&1&&(C(0,"th",22),M(1,"Current rank"),k())}function fu(e,i){if(e&1&&(C(0,"mat-icon",46),M(1),k()),e&2){let t=K().$implicit,n=K(2);Li("color",n.getRankChange(t)>0?"green":"red"),D(),F(" ",n.getRankChange(t)>0?"arrow_upward":"arrow_downward"," ")}}function gu(e,i){if(e&1&&(C(0,"td",44),M(1),E(2,fu,2,3,"mat-icon",45),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",t.postRank.rank," "),D(),j("ngIf",n.getRankChange(t)!==0)}}function pu(e,i){e&1&&(C(0,"th",22),M(1,"Previous rank"),k())}function mu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t,n=i.$implicit,s=K(2);D(),F(" ",(t=s.getPreviousRank(n))!==null&&t!==void 0?t:"\u2014"," ")}}function _u(e,i){e&1&&(C(0,"th",22),M(1,"League points"),k())}function bu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.totalLeaguePoints.toFixed(2)," ")}}function xu(e,i){e&1&&(C(0,"th",22),M(1,"Team name"),k())}function yu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",n.getTeamName(t.identifier.id)," ")}}function Su(e,i){e&1&&(C(0,"th",22),M(1,"Player name"),k())}function Cu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",n.getFullPlayerName(t.identifier.id)," ")}}function vu(e,i){e&1&&(C(0,"th",22),M(1,"Wins"),k())}function ku(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.totalWins," ")}}function Mu(e,i){e&1&&(C(0,"th",22),M(1,"Losses"),k())}function wu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.totalLosses," ")}}function Pu(e,i){e&1&&(C(0,"th",22),M(1,"Winning %"),k())}function Du(e,i){if(e&1&&(C(0,"td",23),M(1),ne(2,"percent"),k()),e&2){let t=i.$implicit;D(),F(" ",se(2,1,t.totalWins/(t.totalWins+t.totalLosses),"1.2-2")," ")}}function Tu(e,i){e&1&&(C(0,"th",22),M(1,"Points for"),k())}function Eu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.totalPointsFor," ")}}function Lu(e,i){e&1&&(C(0,"th",22),M(1,"Points against"),k())}function Au(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.totalPointsAgainst," ")}}function Ou(e,i){e&1&&(C(0,"th",22),M(1,"Point differential"),k())}function Ru(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.totalPointsFor-t.totalPointsAgainst," ")}}function Iu(e,i){e&1&&(C(0,"th",22),M(1,"Point differential %"),k())}function Fu(e,i){if(e&1&&(C(0,"td",23),M(1),ne(2,"percent"),k()),e&2){let t=i.$implicit;D(),F(" ",se(2,1,(t.totalPointsFor-t.totalPointsAgainst)/((t.totalWins+t.totalLosses)*11),"1.2-2")," ")}}function zu(e,i){e&1&&(C(0,"th",22),M(1,"Missed weeks"),k())}function Bu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.totalMissedWeeks," ")}}function Nu(e,i){e&1&&Ct(0,"tr",27)}function Wu(e,i){e&1&&Ct(0,"tr",28)}function Vu(e,i){if(e&1&&(C(0,"table",29),R(1,30),E(2,uu,2,0,"th",14)(3,gu,3,2,"td",31),I(),R(4,32),E(5,pu,2,0,"th",14)(6,mu,2,1,"td",15),I(),R(7,33),E(8,_u,2,0,"th",14)(9,bu,2,1,"td",15),I(),R(10,34),E(11,xu,2,0,"th",14)(12,yu,2,1,"td",15),I(),R(13,35),E(14,Su,2,0,"th",14)(15,Cu,2,1,"td",15),I(),R(16,36),E(17,vu,2,0,"th",14)(18,ku,2,1,"td",15),I(),R(19,37),E(20,Mu,2,0,"th",14)(21,wu,2,1,"td",15),I(),R(22,38),E(23,Pu,2,0,"th",14)(24,Du,3,4,"td",15),I(),R(25,39),E(26,Tu,2,0,"th",14)(27,Eu,2,1,"td",15),I(),R(28,40),E(29,Lu,2,0,"th",14)(30,Au,2,1,"td",15),I(),R(31,41),E(32,Ou,2,0,"th",14)(33,Ru,2,1,"td",15),I(),R(34,42),E(35,Iu,2,0,"th",14)(36,Fu,3,4,"td",15),I(),R(37,43),E(38,zu,2,0,"th",14)(39,Bu,2,1,"td",15),I(),E(40,Nu,1,0,"tr",20)(41,Wu,1,0,"tr",21),k()),e&2){let t=K();j("dataSource",t.standingData()),D(40),j("matHeaderRowDef",t.displayedCurrentRankColumns)("matHeaderRowDefSticky",!0),D(),j("matRowDefColumns",t.displayedCurrentRankColumns)}}function Hu(e,i){if(e&1&&(C(0,"mat-option",5),M(1),k()),e&2){let t=i.$implicit;j("value",t),D(),F(" ",t.title," ")}}function ju(e,i){e&1&&(C(0,"th",22),M(1,"Current rank"),k())}function $u(e,i){if(e&1&&(C(0,"mat-icon",46),M(1),k()),e&2){let t=K().$implicit,n=K(2);Li("color",n.getRankChange(t)>0?"green":"red"),D(),F(" ",n.getRankChange(t)>0?"arrow_upward":"arrow_downward"," ")}}function Yu(e,i){if(e&1&&(C(0,"td",44),M(1),E(2,$u,2,3,"mat-icon",45),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",t.postRank.rank," "),D(),j("ngIf",n.getRankChange(t)!==0)}}function Uu(e,i){e&1&&(C(0,"th",22),M(1,"Previous rank"),k())}function Gu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t,n=i.$implicit,s=K(2);D(),F(" ",(t=s.getPreviousRank(n))!==null&&t!==void 0?t:"\u2014"," ")}}function Xu(e,i){e&1&&(C(0,"th",22),M(1,"League points"),k())}function Ku(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.weekLeaguePoints.toFixed(2)," ")}}function qu(e,i){e&1&&(C(0,"th",22),M(1,"Team name"),k())}function Zu(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",n.getTeamName(t.identifier.id)," ")}}function Qu(e,i){e&1&&(C(0,"th",22),M(1,"Player name"),k())}function Ju(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",n.getFullPlayerName(t.identifier.id)," ")}}function tf(e,i){e&1&&(C(0,"th",22),M(1,"Wins"),k())}function ef(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.weekWins," ")}}function nf(e,i){e&1&&(C(0,"th",22),M(1,"Losses"),k())}function sf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.weekLosses," ")}}function of(e,i){e&1&&(C(0,"th",22),M(1,"Winning %"),k())}function af(e,i){if(e&1&&(C(0,"td",23),M(1),ne(2,"percent"),k()),e&2){let t=i.$implicit;D(),F(" ",se(2,1,t.weekWins/(t.weekWins+t.weekLosses),"1.2-2")," ")}}
3function rf(e,i){e&1&&(C(0,"th",22),M(1,"Points for"),k())}function lf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.weekPointsFor," ")}}function cf(e,i){e&1&&(C(0,"th",22),M(1,"Points against"),k())}function hf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.weekPointsAgainst," ")}}function df(e,i){e&1&&(C(0,"th",22),M(1,"Point differential"),k())}function uf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),F(" ",t.weekPointsFor-t.weekPointsAgainst," ")}}function ff(e,i){e&1&&(C(0,"th",22),M(1,"Point differential %"),k())}function gf(e,i){if(e&1&&(C(0,"td",23),M(1),ne(2,"percent"),k()),e&2){let t=i.$implicit;D(),F(" ",se(2,1,(t.weekPointsFor-t.weekPointsAgainst)/((t.weekWins+t.weekLosses)*11),"1.2-2")," ")}}function pf(e,i){e&1&&Ct(0,"tr",27)}function mf(e,i){e&1&&Ct(0,"tr",28)}function _f(e,i){if(e&1&&(C(0,"table",29),R(1,30),E(2,ju,2,0,"th",14)(3,Yu,3,2,"td",31),I(),R(4,32),E(5,Uu,2,0,"th",14)(6,Gu,2,1,"td",15),I(),R(7,33),E(8,Xu,2,0,"th",14)(9,Ku,2,1,"td",15),I(),R(10,34),E(11,qu,2,0,"th",14)(12,Zu,2,1,"td",15),I(),R(13,35),E(14,Qu,2,0,"th",14)(15,Ju,2,1,"td",15),I(),R(16,36),E(17,tf,2,0,"th",14)(18,ef,2,1,"td",15),I(),R(19,37),E(20,nf,2,0,"th",14)(21,sf,2,1,"td",15),I(),R(22,38),E(23,of,2,0,"th",14)(24,af,3,4,"td",15),I(),R(25,39),E(26,rf,2,0,"th",14)(27,lf,2,1,"td",15),I(),R(28,40),E(29,cf,2,0,"th",14)(30,hf,2,1,"td",15),I(),R(31,41),E(32,df,2,0,"th",14)(33,uf,2,1,"td",15),I(),R(34,42),E(35,ff,2,0,"th",14)(36,gf,3,4,"td",15),I(),E(37,pf,1,0,"tr",20)(38,mf,1,0,"tr",21),k()),e&2){let t=K();j("dataSource",t.standingData()),D(37),j("matHeaderRowDef",t.displayedWeeklyRankColumns)("matHeaderRowDefSticky",!0),D(),j("matRowDefColumns",t.displayedWeeklyRankColumns)}}function bf(e,i){e&1&&(C(0,"th",22),M(1,"Date"),k())}function xf(e,i){if(e&1&&(C(0,"td",23),M(1),ne(2,"date"),k()),e&2){let t=i.$implicit;D(),F(" ",se(2,1,t.date.seconds*1e3,"longDate")," ")}}function yf(e,i){e&1&&(C(0,"th",22),M(1,"Game number"),k())}function Sf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),jt(t.gameNumber)}}function Cf(e,i){e&1&&(C(0,"th",22),M(1,"Team 1 - Player 1"),k())}function vf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",n.getFullPlayerName(t.team1Player1.id)," ")}}function kf(e,i){e&1&&(C(0,"th",22),M(1,"Team 1 - Player 2"),k())}function Mf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",n.getFullPlayerName(t.team1Player2.id)," ")}}function wf(e,i){e&1&&(C(0,"th",22),M(1,"Team 1 score"),k())}function Pf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),jt(t.team1Score)}}function Df(e,i){e&1&&(C(0,"th",22),M(1,"Team 2 - Player 1"),k())}function Tf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",n.getFullPlayerName(t.team2Player1.id)," ")}}function Ef(e,i){e&1&&(C(0,"th",22),M(1,"Team 2 - Player 2"),k())}function Lf(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit,n=K(2);D(),F(" ",n.getFullPlayerName(t.team2Player2.id)," ")}}function Af(e,i){e&1&&(C(0,"th",22),M(1,"Team 2 score"),k())}function Of(e,i){if(e&1&&(C(0,"td",23),M(1),k()),e&2){let t=i.$implicit;D(),jt(t.team2Score)}}function Rf(e,i){e&1&&Ct(0,"tr",27)}function If(e,i){e&1&&Ct(0,"tr",28)}function Ff(e,i){if(e&1&&(C(0,"table",29),R(1,47),E(2,bf,2,0,"th",14)(3,xf,3,4,"td",15),I(),R(4,48),E(5,yf,2,0,"th",14)(6,Sf,2,1,"td",15),I(),R(7,49),E(8,Cf,2,0,"th",14)(9,vf,2,1,"td",15),I(),R(10,50),E(11,kf,2,0,"th",14)(12,Mf,2,1,"td",15),I(),R(13,51),E(14,wf,2,0,"th",14)(15,Pf,2,1,"td",15),I(),R(16,52),E(17,Df,2,0,"th",14)(18,Tf,2,1,"td",15),I(),R(19,53),E(20,Ef,2,0,"th",14)(21,Lf,2,1,"td",15),I(),R(22,54),E(23,Af,2,0,"th",14)(24,Of,2,1,"td",15),I(),E(25,Rf,1,0,"tr",20)(26,If,1,0,"tr",21),k()),e&2){let t=K();j("dataSource",t.gamesDataSource),D(25),j("matHeaderRowDef",t.displayedGameColumns)("matHeaderRowDefSticky",!0),D(),j("matRowDefColumns",t.displayedGameColumns)}}Di.register(...rr);var cr=class e{myChartCanvas;leagueService=ts(Ps);timestampPipe=new Ii;destroy$=new Zn;leagueId;leagueSignal=Ht(void 0);gamesSignal=Ht([]);gamedaysSignal=Ht([]);playersSignal=Ht([]);
3teamsSignal=Ht([]);gamesDataSource=new js([]);selectedGameday=Ht(void 0);playerMap=$t(()=>this.buildPlayersMap());teamMap=$t(()=>this.buildTeamsMap());selectableGamedays=$t(()=>this.gamedaysSignal().filter(i=>i.postRank&&i.postRank.length>0));leaguePointLeaderboardData=$t(()=>{let i=this.leagueSignal(),t=this.selectableGamedays(),n=this.playersSignal().filter(l=>!l.isSubstitution),s=this.teamsSignal();if(!i||t.length===0)return[];let o=oe(i?.type),a=[];return(o?s:n).forEach(l=>{let c={entityName:o?this.getTeamName(l.idField):this.getFullPlayerName(l.idField),grossTotalLeaguePoints:0},h=[];if(t.forEach((d,u)=>{if(d.weeklyTotals){let g=Ri(d).get(l.docRef.path)?.leaguePoints||0;h.push({score:g,index:u}),c[`gameday_${u}`]=g,c.grossTotalLeaguePoints+=g}}),h.length>0&&i.presetLeagueConfig!=="PRESET_LEAGUE_CONFIG_MORNING_SERIES"){let d=h.reduce((u,f)=>u.score<f.score?u:f);c.lowestScoreIndex=d.index,c.netTotalLeaguePoints=c.grossTotalLeaguePoints-d.score}else c.netTotalLeaguePoints=c.grossTotalLeaguePoints;a.push(c)}),a.sort((l,c)=>{let h=c.netTotalLeaguePoints-l.netTotalLeaguePoints;return h!==0?h:c.grossTotalLeaguePoints-l.grossTotalLeaguePoints}).map((l,c)=>ie(ee({},l),{position:c+1}))});displayedLeaguePointLeaderboardColumns=$t(()=>["position","entityName","netTotalLeaguePoints",...this.selectableGamedays().map((t,n)=>`gameday_${n}`),"grossTotalLeaguePoints"]);standingData=$t(()=>{let i=this.selectedGameday(),t=this.leagueSignal();if(!i||!i.postRank||!t)return[];let n=oe(t.type),s=ws(i),o=Ri(i);return i.postRank.flatMap(r=>{let l=n?r.team:r.player;return l?.path?[{identifier:l,postRank:r,preRank:this.getPreRank(i,l.path),weekWins:o.get(l.path)?.wins||0,totalWins:s.get(l.path)?.totalWins||0,weekLosses:o.get(l.path)?.losses||0,totalLosses:s.get(l.path)?.totalLosses||0,weekPointsFor:o.get(l.path)?.pointsFor||0,totalPointsFor:s.get(l.path)?.totalPointsFor||0,weekPointsAgainst:o.get(l.path)?.pointsAgainst||0,totalPointsAgainst:s.get(l.path)?.totalPointsAgainst||0,weekLeaguePoints:o.get(l.path)?.leaguePoints||0,totalLeaguePoints:s.get(l.path)?.totalLeaguePoints||0,totalMissedWeeks:s.get(l.path)?.totalMissedWeeks||0}]:[]}).sort((r,l)=>r.postRank.rank-l.postRank.rank)});filterValue="";displayedGameColumns=["date","gameNumber","team1Player1","team1Player2","team1Score","team2Player1","team2Player2","team2Score"];displayedCurrentRankColumns=[];displayedWeeklyRankColumns=[];ngOnInit(){Qn({league:this.leagueService.getLeague(this.leagueId),games:this.leagueService.getAllGamesForLeague(this.leagueId),players:this.leagueService.listAllPlayers(this.leagueId),gamedays:this.leagueService.getSortedGamedays(this.leagueId),teams:this.leagueService.listTeams(this.leagueId)}).pipe(Jn(this.destroy$)).subscribe(({league:i,games:t,players:n,gamedays:s,teams:o})=>{this.leagueSignal.set(i),this.gamesSignal.set(t.sort((r,l)=>r.date.seconds!==l.date.seconds?r.date.seconds-l.date.seconds:r.podNumber!==l.podNumber?r.podNumber-l.podNumber:r.gameNumber-l.gameNumber)),this.playersSignal.set(n),this.gamesDataSource.data=this.gamesSignal(),this.gamedaysSignal.set(s),this.teamsSignal.set(o),s&&s.length>0&&!this.selectedGameday()&&this.selectedGameday.set(this.getLatestFinishedGameday());let a=["rank","previousRank"].concat(i.useLeaguePoints?["leaguePoints"]:[]).concat(oe(i.type)?["teamName"]:["playerName"]).concat(["totalWins","totalLosses","totalWinningPercentage"]).concat(["pointsFor","pointsAgainst","totalPointDifferential","totalPointDifferentialPercentage"]);this.displayedCurrentRankColumns=a.concat(["totalMissedWeeks"]),this.displayedWeeklyRankColumns=a},i=>{console.error("Error fetching initial data:",i)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}applyFilter(i){let t=i.target.value;this.filterValue=t.trim().toLowerCase(),this.gamesDataSource.filterPredicate=(n,s)=>{let o=s.toLowerCase();return this.getFullPlayerName(n.team1Player1.id).toLowerCase().includes(o)||this.getFullPlayerName(n.team1Player2.id).toLowerCase().includes(o)||this.getFullPlayerName(n.team2Player1.id).toLowerCase().includes(o)||this.getFullPlayerName(n.team2Player2.id).toLowerCase().includes(o)},this.gamesDataSource.filter=this.filterValue}getPreviousRank(i){return i.preRank?.rank}getCurrentRank(i){return i.postRank.rank}getPreRank(i,t){let n=oe(this.leagueSignal().type);return i.preRank?.find(s=>
3n?s.team?.path===t:s.player?.path===t)}getRankChange(i){let t=this.getPreviousRank(i);return t===void 0?0:t-this.getCurrentRank(i)}getLatestPostRank(){let i=this.getLatestFinishedGameday();return i?i.postRank.sort((t,n)=>t.rank-n.rank):[]}getWeeklyRanks(i){return i?i.postRank.sort((t,n)=>t.rank-n.rank):[]}getLatestFinishedGameday(){let i;return this.gamedaysSignal().forEach(t=>{t.postRank&&t.postRank.length>0&&(i=t)}),i}getTeamName(i){let t=this.teamMap().get(i);return t?t.players.length===1?this.getFullPlayerName(t?.players[0].id):this.getFullPlayerName(t?.players[0].id)+" / "+this.getFullPlayerName(t?.players[1].id):"Unknown Team"}getFullPlayerName(i){let t=this.playerMap().get(i);return t?.firstName+" "+t?.lastName}buildPlayersMap(){let i=this.playersSignal(),t=new Map;if(i)for(let n of i)t.set(n.idField,n);return t}buildTeamsMap(){let i=this.teamsSignal(),t=new Map;if(i)for(let n of i)t.set(n.idField,n);return t}createChart(i,t){let n=i.map(a=>this.timestampPipe.transform(a.date,"dateOnly")),s=this.mapRanksOverGamedays(i,t),o=this.myChartCanvas.nativeElement.getContext("2d");o&&new Di(o,{type:"line",data:{labels:n,datasets:this.transformMapToChartDatasets(s)},options:{responsive:!0,scales:{y:{type:"linear",reverse:!0,title:{display:!0,text:"Rank"},ticks:{stepSize:1,callback:function(a){return Number.isInteger(a)?a:""}}}}}})}mapRanksOverGamedays(i,t){let n=new Map;for(let s of i)if(s.postRank)for(let o of s.postRank){let a=oe(t.type)?this.getTeamName(o.team.id):this.getFullPlayerName(o.player.id);n.has(a)?n.get(a).push(o.rank):n.set(a,[o.rank])}return n}transformMapToChartDatasets(i){let t=[],n=["#3366CC","#DC3912","#FF9900","#109618","#990099","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#651067","#329262","#5574A6","#3B3EAC","#AD0B68","#325C80","#11ACCD","#D2703E","#137952","#AF735E","#7266AA","#BA5536","#5CBF47","#407887","coral","darkgoldenrod","forestgreen","indigo","maroon","olive","sienna","teal","darkkhaki","lightcoral"],s=0;for(let[o,a]of i.entries()){let r=n[s%n.length];t.push({label:o,data:a,borderColor:r,fill:!1}),s++}return t}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=es({type:e,selectors:[["app-standings"]],viewQuery:function(t,n){if(t&1&&ns(Kd,5),t&2){let s;ss(s=os())&&(n.myChartCanvas=s.first)}},inputs:{leagueId:"leagueId"},features:[hs([Ii])],decls:29,vars:7,consts:[["label","League Point Leaderboard",4,"ngIf"],["label","Cumulative Results"],[1,"current-standings-title"],["appearance","fill"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"table-container"],["mat-table","",3,"dataSource",4,"ngIf"],["label","Per Week Results"],["label","Game Log"],["matInput","","placeholder","Filter by player name",3,"input","ngModelChange","ngModel"],["label","League Point Leaderboard"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","entityName"],["matColumnDef","netTotalLeaguePoints"],["matColumnDef","grossTotalLeaguePoints"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[3,"matColumnDef"],["class","lowest-score-icon","aria-label","Lowest score, will be dropped",4,"ngIf"],["aria-label","Lowest score, will be dropped",1,"lowest-score-icon"],["mat-header-row",""],["mat-row",""],["mat-table","",3,"dataSource"],["matColumnDef","rank"],["mat-cell","","class","highlight-column",4,"matCellDef"],["matColumnDef","previousRank"],["matColumnDef","leaguePoints"],["matColumnDef","teamName"],["matColumnDef","playerName"],["matColumnDef","totalWins"],["matColumnDef","totalLosses"],["matColumnDef","totalWinningPercentage"],["matColumnDef","pointsFor"],["matColumnDef","pointsAgainst"],["matColumnDef","totalPointDifferential"],["matColumnDef","totalPointDifferentialPercentage"],["matColumnDef","totalMissedWeeks"],["mat-cell","",1,"highlight-column"],["class","rank-change-icon",3,"color",4,"ngIf"],[1,"rank-change-icon"],["matColumnDef","date"],["matColumnDef","gameNumber"],["matColumnDef","team1Player1"],["matColumnDef","team1Player2"],["matColumnDef","team1Score"],["matColumnDef","team2Player1"],["matColumnDef","team2Player2"],["matColumnDef","team2Score"]],template:function(t,n){if(t&1){let s=is();cs(0)(1),C(2,"mat-tab-group"),E(3,hu,18,5,"mat-tab",0),C(4,"mat-tab",1)(5,"h2",2)(6,"mat-form-field",3)(7,"mat-label"),M(8,"Select a Week"),k(),C(9,"mat-select",4),Ye("ngModelChange",function(a){return Ce(s),ve(n.selectedGameday.set(a))}),Ai(10,du,2,2,"mat-option",5,lr),k()()(),C(12,"div",6),E(13,Vu,42,4,"table",7),k()(),C(14,"mat-tab",8)(15,"h2",2)(16,"mat-form-field",3)(17,"mat-label"),M(18,"Select a Week"),k(),C(19,"mat-select",4),Ye("ngModelChange",function(a){return Ce(s),ve(n.selectedGameday.set(a))}),Ai(20,Hu,2,2,"mat-option",5,lr),k()()(),C(22,"div",6),E(23,_f,39,4,"table",7),k()(),C(24,"mat-tab",9)(25,"mat-form-field")(26,"input",10),Ye("input",function(a){return Ce(s),ve(n.applyFilter(a))}),ls("ngModelChange",function(a){return Ce(s),rs(n.filterValue,a)||(n.filterValue=a),ve(a)}),k()(),C(27,"div",6),E(28,Ff,27,4,"table",7),k()()()}if(t&2){let s=n.gamesSignal(),o=n.leagueSignal();D(3),j("ngIf",o&&o.useLeaguePoints),D(6),j("ngModel",n.selectedGameday()),D(),Oi(n.selectableGamedays()),D(3),j("ngIf",o),D(6),j("ngModel",n.selectedGameday()),D(),Oi(n.selectableGamedays()),D(3),j("ngIf",o),D(3),as("ngModel",n.filterValue),D(2),j("ngIf",s)}},dependencies:[Hs,As,Rs,Bs,Is,Os,Ns,Fs,zs,Ws,Vs,ps,ds,us,gs,fs,Us,$s,Ys,Ts,Ds,vs,Cs,Ss,xs,ms,_s,bs,Ls,Es,ys,Ms,ks],styles:[".rank-change-icon[_ngcontent-%COMP%], .lowest-score-icon[_ngcontent-%COMP%]{vertical-align:middle;font-size:16px;width:16px;height:16px;padding-bottom:2px}.highlight-column[_ngcontent-%COMP%]{background-color:#add8e6}.table-container[_ngcontent-%COMP%]{height:calc(100vh - 200px);overflow:auto}table[_ngcontent-%COMP%]{width:100%}.mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0;z-index:100;background-color:#fff}.mat-mdc-header-row[_ngcontent-%COMP%]{background-color:#f5f5f5}"]})};export{cr as StandingsComponent};

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.