PageSourceSearch

https://hdc-youngchang.com/static/js/20.b4c03dde.chunk.js

js hdc-youngchang.com collected 2026-09-25 10:43:55 UTC 211,700 bytes, 2 lines download raw bytes

1/*! For license information please see 20.b4c03dde.chunk.js.LICENSE.txt */
2(this["webpackJsonpkeymedi.com"]=this["webpackJsonpkeymedi.com"]||[]).push([[20],{1078:function(t,e,i){"use strict";i.d(e,"a",(function(){return x}));var n=i(678);n.c.register(...n.f);var s=n.c,o=i(3),r=i.n(o);function a(t){for(var e=arguments,i=function(i){var n=null!=e[i]?e[i]:{},s=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),s.forEach((function(e){!function(t,e,i){e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(t,e,n[e])}))},n=1;n<arguments.length;n++)i(n);return t}function l(t,e){if(null==t)return{};var i,n,s=function(t,e){if(null==t)return{};var i,n,s={},o=Object.keys(t);for(n=0;n<o.length;n++)i=o[n],e.indexOf(i)>=0||(s[i]=t[i]);return s}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)i=o[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(s[i]=t[i])}return s}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(t,e){"function"===typeof t?t(e):t&&(t.current=e)}function d(t,e){t.labels=e}function u(t,e){t.datasets=e.map((function(e){var i=t.datasets.find((function(t){return t.label===e.label&&t.type===e.type}));return i&&e.data?(Object.assign(i,e),i):a({},e)}))}function f(t){var e={labels:[],datasets:[]};return d(e,t.labels),u(e,t.datasets),e}var g={datasets:[]};function b(t,e){var i=t.height,n=void 0===i?150:i,b=t.width,p=void 0===b?300:b,m=t.redraw,x=void 0!==m&&m,_=t.type,y=t.data,v=t.options,O=t.plugins,j=void 0===O?[]:O,w=t.getDatasetAtEvent,M=t.getElementAtEvent,k=t.getElementsAtEvent,S=t.fallbackContent,P=t.onClick,D=l(t,["height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent","onClick"]),C=Object(o.useRef)(null),A=Object(o.useRef)(),E=c(Object(o.useState)()),L=E[0],T=E[1],R=L||("function"===typeof y?g:y),I=function(){C.current&&(A.current=new s(C.current,{type:_,data:f(R),options:v,plugins:j}),h(e,A.current))},z=function(){h(e,null),A.current&&(A.current.destroy(),A.current=null)};return Object(o.useEffect)((function(){"function"===typeof y&&C.current&&T(y(C.current))}),[y]),Object(o.useEffect)((function(){!x&&A.current&&v&&function(t,e){t.options=a({},e)}(A.current,v)}),[x,v]),Object(o.useEffect)((function(){!x&&A.current&&d(A.current.config.data,R.labels)}),[x,R.labels]),Object(o.useEffect)((function(){!x&&A.current&&R.datasets&&u(A.current.config.data,R.datasets)}),[x,R.datasets]),Object(o.useEffect)((function(){A.current&&(x?(z(),setTimeout(I)):A.current.update())}),[x,v,R.labels,R.datasets]),Object(o.useEffect)((function(){return I(),function(){return z()}}),[]),r.a.createElement("canvas",Object.assign({ref:C,role:"img",height:n,width:p,onClick:function(t){P&&P(t);var e=A.current;e&&(w&&w(e.getElementsAtEventForMode(t.nativeEvent,"dataset",{intersect:!0},!1),t),M&&M(e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1),t),k&&k(e.getElementsAtEventForMode(t.nativeEvent,"index",{intersect:!0},!1),t))}},D),S)}var p=Object(o.forwardRef)(b);function m(t){return Object(o.forwardRef)((function(e,i){return r.a.createElement(p,Object.assign({},e,{ref:i,type:t}))}))}m("line");var x=m("bar");m("radar"),m("doughnut"),m("polarArea"),m("bubble"),m("pie"),m("scatter")},462:function(t,e,i){"use strict";function n(){}i.d(e,"a",(function(){return pe})),i.d(e,"b",(function(){return V})),i.d(e,"c",(function(){return c})),i.d(e,"d",(function(){return f})),i.d(e,"e",(function(){return Te})),i.d(e,"f",(function(){return Q})),i.d(e,"g",(function(){return U})),i.d(e,"h",(function(){return he})),i.d(e,"i",(function(){return T})),i.d(e,"j",(function(){return tt})),i.d(e,"k",(function(){return ue})),i.d(e,"l",(function(){return Ae})),i.d(e,"m",(function(){return me})),i.d(e,"n",(function(){return ve})),i.d(e,"o",(function(){return xe})),i.d(e,"p",(function(){return Ee})),i.d(e,"q",(function(){return D})),i.d(e,"r",(function(){return g})),i.d(e,"s",(function(){return ft})),i.d(e,"t",(function(){return gt})),i.d(e,"u",(function(){return C})),i.d(e,"v",(function(){return oe})),i.d(e,"w",(function(){return _})),i.d(e,"x",(function(){return w})),i.d(e,"y",(function(){return hi})),i.d(e,"z",(function(){return st})),i.d(e,"A",(function(){return nt})),i.d(e,"B",(function(){return ct})),i.d(e,"C",(function(){return Le})),i.d(e,"D",(function(){return J})),i.d(e,"E",(function(){return ui})),i.d(e,"F",(function(){return si}
2)),i.d(e,"G",(function(){return bi})),i.d(e,"H",(function(){return dt})),i.d(e,"I",(function(){return gi})),i.d(e,"J",(function(){return ni})),i.d(e,"K",(function(){return re})),i.d(e,"L",(function(){return k})),i.d(e,"M",(function(){return ze})),i.d(e,"N",(function(){return ji})),i.d(e,"O",(function(){return wi})),i.d(e,"P",(function(){return bt})),i.d(e,"Q",(function(){return Mi})),i.d(e,"R",(function(){return be})),i.d(e,"S",(function(){return n})),i.d(e,"T",(function(){return q})),i.d(e,"U",(function(){return $})),i.d(e,"V",(function(){return W})),i.d(e,"W",(function(){return H})),i.d(e,"X",(function(){return N})),i.d(e,"Y",(function(){return X})),i.d(e,"Z",(function(){return de})),i.d(e,"ab",(function(){return ot})),i.d(e,"bb",(function(){return it})),i.d(e,"cb",(function(){return Ie})),i.d(e,"db",(function(){return Fe})),i.d(e,"eb",(function(){return y})),i.d(e,"fb",(function(){return s})),i.d(e,"gb",(function(){return ut})),i.d(e,"hb",(function(){return fi})),i.d(e,"ib",(function(){return fe})),i.d(e,"jb",(function(){return S})),i.d(e,"kb",(function(){return b})),i.d(e,"lb",(function(){return P})),i.d(e,"mb",(function(){return et})),i.d(e,"nb",(function(){return Pe})),i.d(e,"ob",(function(){return ii})),i.d(e,"pb",(function(){return Ci})),i.d(e,"qb",(function(){return Di})),i.d(e,"rb",(function(){return mi})),i.d(e,"sb",(function(){return xi})),i.d(e,"tb",(function(){return pi})),i.d(e,"ub",(function(){return _e})),i.d(e,"vb",(function(){return ye})),i.d(e,"wb",(function(){return ge})),i.d(e,"xb",(function(){return je})),i.d(e,"yb",(function(){return De})),i.d(e,"zb",(function(){return Ce})),i.d(e,"Ab",(function(){return Pi})),i.d(e,"Bb",(function(){return G})),i.d(e,"Cb",(function(){return r})),i.d(e,"Db",(function(){return ne})),i.d(e,"Eb",(function(){return ce})),i.d(e,"Fb",(function(){return vt})),i.d(e,"Gb",(function(){return j})),i.d(e,"Hb",(function(){return l})),i.d(e,"Ib",(function(){return Re})),i.d(e,"Jb",(function(){return a})),i.d(e,"Kb",(function(){return M})),i.d(e,"Lb",(function(){return o})),i.d(e,"Mb",(function(){return at})),i.d(e,"Nb",(function(){return d})),i.d(e,"Ob",(function(){return u})),i.d(e,"Pb",(function(){return yi})),i.d(e,"Qb",(function(){return Z})),i.d(e,"Rb",(function(){return pt})),i.d(e,"Sb",(function(){return ht})),i.d(e,"Tb",(function(){return F})),i.d(e,"Ub",(function(){return Y})),i.d(e,"Vb",(function(){return lt})),i.d(e,"Wb",(function(){return h})),i.d(e,"Xb",(function(){return mt})),i.d(e,"Yb",(function(){return B})),i.d(e,"Zb",(function(){return qe})),i.d(e,"ac",(function(){return z}));const s=function(){let t=0;return function(){return t++}}();function o(t){return null===t||"undefined"===typeof t}function r(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function a(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const l=t=>("number"===typeof t||t instanceof Number)&&isFinite(+t);function c(t,e){return l(t)?t:e}function h(t,e){return"undefined"===typeof t?e:t}const d=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,u=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function f(t,e,i){if(t&&"function"===typeof t.call)return t.apply(i,e)}function g(t,e,i,n){let s,o,l;if(r(t))if(o=t.length,n)for(s=o-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;s<o;s++)e.call(i,t[s],s);else if(a(t))for(l=Object.keys(t),o=l.length,s=0;s<o;s++)e.call(i,t[l[s]],l[s])}function b(t,e){let i,n,s,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],o=e[i],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function p(t){if(r(t))return t.map(p);if(a(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=p(t[i[s]]);return e}return t}function m(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function x(t,e,i,n){if(!m(t))return;const s=e[t],o=i[t];a(s)&&a(o)?_(s,o,n):e[t]=p(o)}function _(t,e,i){const n=r(e)?e:[e],s=n.length;if(!a(t))return t;const o=(i=i||{}).merger||x;for(let r=0;r<s;++r){if(!a(e=n[r]))continue;const s=Object.keys(e);for(let n=0,r=s.length;n<r;++n)o(s[n],t,e,i)}return t}function y(t,e){return _(t,e,{merger:v})}function v(t,e,i){if(!m(t))return;const n=e[t],s=i[t];a(n)&&a(s)?y(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=p(s))}const O={"":t=>t,x:t=>t.x,y:t=>t.y};function j(t,e){const i=O[e]||(O[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const s of e)n+=s,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function w(t){return t.charAt(0).toUpperCase()+t.slice(1)}const M=t=>"undefined"!==typeof t,k=t=>"function"===typeof t,S=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function P(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const D=Math.PI,C=2*D,A=C+D,E=Number.POSITIVE_INFINITY,L=D/180,T=D/2,R=D/4,I=2*D/3,z=Math.log10,F=Math.sign;function W(t){const e=Math.round(t);t=N(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(z(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function V(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n===0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}function B(t){return!isNaN(parseFloat(t))&&isFinite(t)}
2function N(t,e,i){return Math.abs(t-e)<i}function H(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function $(t,e,i){let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Y(t){return t*(D/180)}function U(t){return t*(180/D)}function X(t){if(!l(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function J(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*D&&(o+=C),{angle:o,distance:s}}function q(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function K(t,e){return(t-e+A)%C-D}function G(t){return(t%C+C)%C}function Z(t,e,i,n){const s=G(t),o=G(e),r=G(i),a=G(o-s),l=G(r-s),c=G(s-o),h=G(s-r);return s===o||s===r||n&&o===r||a>l&&c<h}function Q(t,e,i){return Math.max(e,Math.min(i,t))}function tt(t){return Q(t,-32768,32767)}function et(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function it(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,o=0;for(;s-o>1;)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const nt=(t,e,i,n)=>it(t,i,n?n=>t[n][e]<=i:n=>t[n][e]<i),st=(t,e,i)=>it(t,i,(n=>t[n][e]>=i));function ot(t,e,i){let n=0,s=t.length;for(;n<s&&t[n]<e;)n++;for(;s>n&&t[s-1]>i;)s--;return n>0||s<t.length?t.slice(n,s):t}const rt=["push","pop","shift","splice","unshift"];function at(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),rt.forEach((e=>{const i="_onData"+w(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(){for(var e=arguments.length,s=new Array(e),o=0;o<e;o++)s[o]=arguments[o];const r=n.apply(this,s);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[i]&&t[i](...s)})),r}})})))}function lt(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(rt.forEach((e=>{delete t[e]})),delete t._chartjs)}function ct(t){const e=new Set;let i,n;for(i=0,n=t.length;i<n;++i)e.add(t[i]);return e.size===n?t:Array.from(e)}const ht="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function dt(t,e,i){const n=i||(t=>Array.prototype.slice.call(t));let s=!1,o=[];return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];o=n(r),s||(s=!0,ht.call(window,(()=>{s=!1,t.apply(e,o)})))}}function ut(t,e){let i;return function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}const ft=t=>"start"===t?"left":"end"===t?"right":"center",gt=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,bt=(t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e;function pt(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:h,minDefined:d,maxDefined:u}=r.getUserBounds();d&&(s=Q(Math.min(nt(a,r.axis,c).lo,i?n:nt(e,l,r.getPixelForValue(c)).lo),0,n-1)),o=u?Q(Math.max(nt(a,r.axis,h,!0).hi+1,i?0:nt(e,l,r.getPixelForValue(h),!0).hi+1),s,n)-s:n-s}return{start:s,count:o}}function mt(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}const xt=t=>0===t||1===t,_t=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*C/i),yt=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*C/i)+1,vt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*T),easeOutSine:t=>Math.sin(t*T),easeInOutSine:t=>-.5*(Math.cos(D*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>xt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))
vendor: 9,906 bytes, line 2
2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>xt(t)?t:_t(t,.075,.3),easeOutElastic:t=>xt(t)?t:yt(t,.075,.3),easeInOutElastic(t){const e=.1125;return xt(t)?t:t<.5?.5*_t(2*t,e,.45):.5+.5*yt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-vt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*vt.easeInBounce(2*t):.5*vt.easeOutBounce(2*t-1)+.5};function Ot(t){return t+.5|0}const jt=(t,e,i)=>Math.max(Math.min(t,i),e);function wt(t){return jt(Ot(2.55*t),0,255)}function Mt(t){return jt(Ot(255*t),0,255)}function kt(t){return jt(Ot(t/2.55)/100,0,1)}function St(t){return jt(Ot(100*t),0,100)}const Pt={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},Dt=[..."0123456789ABCDEF"],Ct=t=>Dt[15&t],At=t=>Dt[(240&t)>>4]+Dt[15&t],Et=t=>(240&t)>>4===(15&t);function Lt(t){var e=(t=>Et(t.r)&&Et(t.g)&&Et(t.b)&&Et(t.a))(t)?Ct:At;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Tt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Rt(t,e,i){const n=e*Math.min(i,1-i),s=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+t/30)%12;return i-n*Math.max(Math.min(s-3,9-s,1),-1)};return[s(0),s(8),s(4)]}function It(t,e,i){const n=function(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(n+t/60)%6;return i-i*e*Math.max(Math.min(s,4-s,1),0)};return[n(5),n(3),n(1)]}function zt(t,e,i){const n=Rt(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function Ft(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),r=(s+o)/2;let a,l,c;return s!==o&&(c=s-o,l=r>.5?c/(2-s-o):c/(s+o),a=function(t,e,i,n,s){return t===s?(e-i)/n+(e<i?6:0):e===s?(i-t)/n+2:(t-e)/n+4}(e,i,n,c,s),a=60*a+.5),[0|a,l||0,r]}function Wt(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(Mt)}function Vt(t,e,i){return Wt(Rt,t,e,i)}function Bt(t){return(t%360+360)%360}function Nt(t){const e=Tt.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?wt(+e[5]):Mt(+e[5]));const s=Bt(+e[2]),o=+e[3]/100,r=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Wt(zt,t,e,i)}(s,o,r):"hsv"===e[1]?function(t,e,i){return Wt(It,t,e,i)}(s,o,r):Vt(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}const Ht={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"},$t={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"};let Yt;function Ut(t){Yt||(Yt=function(){const t={},e=Object.keys($t),i=Object.keys(Ht);let n,s,o,r,a;for(n=0;n<e.length;n++){for(r=a=e[n],s=0;s<i.length;s++)o=i[s],a=a.replace(o,Ht[o]);o=parseInt($t[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),Yt.transparent=[0,0,0,0]);const e=Yt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Xt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Jt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,qt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Kt(t,e,i){if(t){let n=Ft(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=Vt(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Gt(t,e){return t?Object.assign(e||{},t):t}function Zt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Mt(t[3]))):(e=Gt(t,{r:0,g:0,b:0,a:1})).a=Mt(e.a),e}function Qt(t){return"r"===t.charAt(0)?function(t){const e=Xt.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?wt(t):jt(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?wt(i):jt(i,0,255)),n=255&(e[4]?wt(n):jt(n,0,255)),s=255&(e[6]?wt(s):jt(s,0,255)),{r:i,g:n,b:s,a:o}}}(t):Nt(t)}class te{constructor(t){if(t instanceof te)return t;const e=typeof t;let i;"object"===e?i=Zt(t):"string"===e&&(i=function(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*Pt[t[1]],g:255&17*Pt[t[2]],b:255&17*Pt[t[3]],a:5===i?17*Pt[t[4]]:255}:7!==i&&9!==i||(e={r:Pt[t[1]]<<4|Pt[t[2]],g:Pt[t[3]]<<4|Pt[t[4]],b:Pt[t[5]]<<4|Pt[t[6]],a:9===i?Pt[t[7]]<<4|Pt[t[8]]:255})),e}(t)||Ut(t)||Qt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Gt(this._rgb);return t&&(t.a=kt(t.a)),t}set rgb(t){this._rgb=Zt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Lt(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Ft(t),i=e[0],n=St(e[1]),s=St(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${kt(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let s;const o=e===s?.5:e,r=2*o-1,a=i.a-n.a,l=((r*a===-1?r:(r+a)/(1+r*a))+1)/2;s=1-l,i.r=255&l*i.r+s*n.r+.5,i.g=255&l*i.g+s*n.g+.5,i.b=255&l*i.b+s*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=qt(kt(t.r)),s=qt(kt(t.g)),o=qt(kt(t.b));return{r:Mt(Jt(n+i*(qt(kt(e.r))-n))),g:Mt(Jt(s+i*(qt(kt(e.g))-s))),b:Mt(Jt(o+i*(qt(kt(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new te(this.rgb)}alpha(t){return this._rgb.a=Mt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Ot(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Kt(this._rgb,2,t),this}darken(t){return Kt(this._rgb,2,-t),this}saturate(t){return Kt(this._rgb,1,t),this}desaturate(t){return Kt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Ft(t);i[0]=Bt(i[0]+e),i=Vt(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function ee(t){return new te(t)}function ie(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function ne(t){return ie(t)?t:ee(t)}function se(t){return ie(t)?t:ee(t).saturate(.5).darken(.1).hexString()}const oe=Object.create(null),re=Object.create(null);function ae(t,e){if(!e)return t;const i=e.split(".");for(let n=0,s=i.length;n<s;++n){const e=i[n];t=t[e]||(t[e]=Object.create(null))}return t}function le(t,e,i){return"string"===typeof e?_(ae(t,e),i):_(ae(t,""),e)}var ce=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>se(e.backgroundColor),this.hoverBorderColor=(t,e)=>se(e.borderColor),this.hoverColor=(t,e)=>se(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
2,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return le(this,t,e)}get(t){return ae(this,t)}describe(t,e){return le(re,t,e)}override(t,e){return le(oe,t,e)}route(t,e,i,n){const s=ae(this,t),o=ae(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[n];return a(t)?Object.assign({},e,t):h(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function he(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function de(t,e,i,n){let s=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let a=0;const l=i.length;let c,h,d,u,f;for(c=0;c<l;c++)if(u=i[c],void 0!==u&&null!==u&&!0!==r(u))a=he(t,s,o,a,u);else if(r(u))for(h=0,d=u.length;h<d;h++)f=u[h],void 0===f||null===f||r(f)||(a=he(t,s,o,a,f));t.restore();const g=o.length/2;if(g>i.length){for(c=0;c<g;c++)delete s[o[c]];o.splice(0,g)}return a}function ue(t,e,i){const n=t.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((e-s)*n)/n+s}function fe(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ge(t,e,i,n){be(t,e,i,n,null)}function be(t,e,i,n,s){let o,r,a,l,c,h;const d=e.pointStyle,u=e.rotation,f=e.radius;let g=(u||0)*L;if(d&&"object"===typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,n),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:s?t.ellipse(i,n,s/2,f,0,0,C):t.arc(i,n,f,0,C),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(g)*f,n-Math.cos(g)*f),g+=I,t.lineTo(i+Math.sin(g)*f,n-Math.cos(g)*f),g+=I,t.lineTo(i+Math.sin(g)*f,n-Math.cos(g)*f),t.closePath();break;case"rectRounded":c=.516*f,l=f-c,r=Math.cos(g+R)*l,a=Math.sin(g+R)*l,t.arc(i-r,n-a,c,g-D,g-T),t.arc(i+a,n-r,c,g-T,g),t.arc(i+r,n+a,c,g,g+T),t.arc(i-a,n+r,c,g+T,g+D),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*f,h=s?s/2:l,t.rect(i-h,n-l,2*h,2*l);break}g+=R;case"rectRot":r=Math.cos(g)*f,a=Math.sin(g)*f,t.moveTo(i-r,n-a),t.lineTo(i+a,n-r),t.lineTo(i+r,n+a),t.lineTo(i-a,n+r),t.closePath();break;case"crossRot":g+=R;case"cross":r=Math.cos(g)*f,a=Math.sin(g)*f,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a),t.moveTo(i+a,n-r),t.lineTo(i-a,n+r);break;case"star":r=Math.cos(g)*f,a=Math.sin(g)*f,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a),t.moveTo(i+a,n-r),t.lineTo(i-a,n+r),g+=R,r=Math.cos(g)*f,a=Math.sin(g)*f,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a),t.moveTo(i+a,n-r),t.lineTo(i-a,n+r);break;case"line":r=s?s/2:Math.cos(g)*f,a=Math.sin(g)*f,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(g)*f,n+Math.sin(g)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function pe(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function me(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function xe(t){t.restore()}function _e(t,e,i,n,s){if(!e)return t.lineTo(i.x,i.y);if("middle"===s){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===s!==!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function ye(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function ve(t,e,i,n,s){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const l=r(e)?e:[e],c=a.strokeWidth>0&&""!==a.strokeColor;let h,d;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);o(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),h=0;h<l.length;++h)d=l[h],c&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),o(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(d,i,n,a.maxWidth)),t.fillText(d,i,n,a.maxWidth),Oe(t,i,n,d,a),n+=s.lineHeight;
2t.restore()}function Oe(t,e,i,n,s){if(s.strikethrough||s.underline){const o=t.measureText(n),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,c=i+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(a,h),t.stroke()}}function je(t,e){const{x:i,y:n,w:s,h:o,radius:r}=e;t.arc(i+r.topLeft,n+r.topLeft,r.topLeft,-T,D,!0),t.lineTo(i,n+o-r.bottomLeft),t.arc(i+r.bottomLeft,n+o-r.bottomLeft,r.bottomLeft,D,T,!0),t.lineTo(i+s-r.bottomRight,n+o),t.arc(i+s-r.bottomRight,n+o-r.bottomRight,r.bottomRight,T,0,!0),t.lineTo(i+s,n+r.topRight),t.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-T,!0),t.lineTo(i+r.topLeft,n)}const we=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Me=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ke(t,e){const i=(""+t).match(we);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const Se=t=>+t||0;function Pe(t,e){const i={},n=a(e),s=n?Object.keys(e):e,o=a(t)?n?i=>h(t[i],t[e[i]]):e=>t[e]:()=>t;for(const r of s)i[r]=Se(o(r));return i}function De(t){return Pe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ce(t){return Pe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ae(t){const e=De(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ee(t,e){t=t||{},e=e||ce.font;let i=h(t.size,e.size);"string"===typeof i&&(i=parseInt(i,10));let n=h(t.style,e.style);n&&!(""+n).match(Me)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const s={family:h(t.family,e.family),lineHeight:ke(h(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:h(t.weight,e.weight),string:""};return s.string=function(t){return!t||o(t.size)||o(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function Le(t,e,i,n){let s,o,a,l=!0;for(s=0,o=t.length;s<o;++s)if(a=t[s],void 0!==a&&(void 0!==e&&"function"===typeof a&&(a=a(e),l=!1),void 0!==i&&r(a)&&(a=a[i%a.length],l=!1),void 0!==a))return n&&!l&&(n.cacheable=!1),a}function Te(t,e,i){const{min:n,max:s}=t,o=u(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}function Re(t,e){return Object.assign(Object.create(t),e)}function Ie(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>t[0];M(n)||(n=Xe("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:s,override:s=>Ie([s,...t],e,i,n)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Be(i,n,(()=>function(t,e,i,n){let s;for(const o of e)if(s=Xe(We(o,t),i),M(s))return Ve(t,s)?Ye(i,n,t,s):s}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Je(t).includes(e),ownKeys:t=>Je(t),set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function ze(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Fe(t,n),setContext:e=>ze(t,e,i,n),override:s=>ze(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Be(t,e,(()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:l}=t;let c=n[e];k(c)&&l.isScriptable(e)&&(c=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(o,r||n),a.delete(t),Ve(t,e)&&(e=Ye(s._scopes,s,t,e));return e}(e,c,t,i));r(c)&&c.length&&(c=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:l}=i;if(M(o.index)&&n(t))e=e[o.index%e.length];else if(a(e[0])){const i=e,n=s._scopes.filter((t=>t!==i));e=[];for(const a of i){const i=Ye(n,s,t,a);e.push(ze(i,o,r&&r[t],l))}}return e}(e,c,t,l.isIndexable));Ve(e,c)&&(c=ze(c,s,o&&o[e],l));return c}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function Fe(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:k(i)?i:()=>i,isIndexable:k(n)?n:()=>n}}const We=(t,e)=>t?t+w(e):e,Ve=(t,e)=>a(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Be(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function Ne(t,e,i){return k(t)?t(e,i):t}const He=(t,e)=>!0===t?e:"string"===typeof t?j(e,t):void 0;function $e(t,e,i,n,s){for(const o of e){const e=He(i,o);if(e){t.add(e);const o=Ne(e._fallback,i,s);if(M(o)&&o!==i&&o!==n)return o}else if(!1===e&&M(n)&&i!==n)return null}return!1}function Ye(t,e,i,n){const s=e._rootScopes,o=Ne(e._fallback,i,n),l=[...t,...s],c=new Set;c.add(n);let h=Ue(c,l,i,o||i,n);return null!==h&&((!M(o)||o===i||(h=Ue(c,l,o,h,n),null!==h))&&Ie(Array.from(c),[""],s,o,(()=>
vendor: 4,939 bytes, line 2
2function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];if(r(s)&&a(i))return i;return s}(e,i,n))))}function Ue(t,e,i,n,s){for(;i;)i=$e(t,e,i,n,s);return i}function Xe(t,e){for(const i of e){if(!i)continue;const e=i[t];if(M(e))return e}}function Je(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function qe(t,e,i,n){const{iScale:s}=t,{key:o="r"}=this._parsing,r=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],r[a]={r:s.parse(j(h,o),c)};return r}const Ke=Number.EPSILON||1e-14,Ge=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ze=t=>"x"===t?"y":"x";function Qe(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=q(o,s),l=q(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=n*c,u=n*h;return{previous:{x:o.x-d*(r.x-s.x),y:o.y-d*(r.y-s.y)},next:{x:o.x+u*(r.x-s.x),y:o.y+u*(r.y-s.y)}}}function ti(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";const i=Ze(e),n=t.length,s=Array(n).fill(0),o=Array(n);let r,a,l,c=Ge(t,0);for(r=0;r<n;++r)if(a=l,l=c,c=Ge(t,r+1),l){if(c){const t=c[e]-l[e];s[r]=0!==t?(c[i]-l[i])/t:0}o[r]=a?c?F(s[r-1])!==F(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,i){const n=t.length;let s,o,r,a,l,c=Ge(t,0);for(let h=0;h<n-1;++h)l=c,c=Ge(t,h+1),l&&c&&(N(e[h],0,Ke)?i[h]=i[h+1]=0:(s=i[h]/e[h],o=i[h+1]/e[h],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),i[h]=s*r*e[h],i[h+1]=o*r*e[h])))}(t,s,o),function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";const n=Ze(i),s=t.length;let o,r,a,l=Ge(t,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Ge(t,c+1),!a)continue;const s=a[i],h=a[n];r&&(o=(s-r[i])/3,a[`cp1${i}`]=s-o,a[`cp1${n}`]=h-o*e[c]),l&&(o=(l[i]-s)/3,a[`cp2${i}`]=s+o,a[`cp2${n}`]=h+o*e[c])}}(t,o,e)}function ei(t,e,i){return Math.max(Math.min(t,i),e)}function ii(t,e,i,n,s){let o,r,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)ti(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],l=Qe(i,a,t[Math.min(o+1,r-(n?0:1))%r],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,i=a}e.capBezierPoints&&function(t,e){let i,n,s,o,r,a=pe(t[0],e);for(i=0,n=t.length;i<n;++i)r=o,o=a,a=i<n-1&&pe(t[i+1],e),o&&(s=t[i],r&&(s.cp1x=ei(s.cp1x,e.left,e.right),s.cp1y=ei(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=ei(s.cp2x,e.left,e.right),s.cp2y=ei(s.cp2y,e.top,e.bottom)))}(t,i)}function ni(){return"undefined"!==typeof window&&"undefined"!==typeof document}function si(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function oi(t,e,i){let n;return"string"===typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const ri=t=>window.getComputedStyle(t,null);const ai=["top","right","bottom","left"];function li(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=ai[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const ci=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function hi(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=ri(i),o="border-box"===s.boxSizing,r=li(s,"padding"),a=li(s,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:o}=n;let r,a,l=!1;if(ci(s,o,t.target))r=s,a=o;else{const t=e.getBoundingClientRect();r=n.clientX-t.left,a=n.clientY-t.top,l=!0}return{x:r,y:a,box:l}}(t,i),d=r.left+(h&&a.left),u=r.top+(h&&a.top);let{width:f,height:g}=e;return o&&(f-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-d)/f*i.width/n),y:Math.round((c-u)/g*i.height/n)}}const di=t=>Math.round(10*t)/10;function ui(t,e,i,n){const s=ri(t),o=li(s,"margin"),r=oi(s.maxWidth,t,"clientWidth")||E,a=oi(s.maxHeight,t,"clientHeight")||E,l=function(t,e,i){let n,s;if(void 0===e||void 0===i){const o=si(t);if(o){const t=o.getBoundingClientRect(),r=ri(o),a=li(r,"border","width"),l=li(r,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=oi(r.maxWidth,o,"clientWidth"),s=oi(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||E,maxHeight:s||E}}(t,e,i);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=li(s,"border","width"),e=li(s,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-o.width),h=Math.max(0,n?Math.floor(c/n):h-o.height),c=di(Math.min(c,r,l.maxWidth)),h=di(Math.min(h,a,l.maxHeight)),c&&!h&&(h=di(c/2)),{width:c,height:h}}function fi(t,e,i){const n=e||1,s=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=s/n,t.width=o/n;const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=n,r.height=s,r.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const gi=function(){let t=!1;
vendor: 4,098 bytes, line 2
2try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function bi(t,e){const i=function(t,e){return ri(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function pi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function mi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function xi(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=pi(t,s,i),a=pi(s,o,i),l=pi(o,e,i),c=pi(r,a,i),h=pi(a,l,i);return pi(c,h,i)}const _i=new Map;function yi(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=_i.get(i);return n||(n=new Intl.NumberFormat(t,e),_i.set(i,n)),n}(e,i).format(t)}const vi=function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},Oi=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function ji(t,e,i){return t?vi(e,i):Oi()}function wi(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Mi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function ki(t){return"angle"===t?{between:Z,compare:K,normalize:G}:{between:et,compare:(t,e)=>t-e,normalize:t=>t}}function Si(t){let{start:e,end:i,count:n,loop:s,style:o}=t;return{start:e%n,end:i%n,loop:s&&(i-e+1)%n===0,style:o}}function Pi(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,r=e.length,{compare:a,between:l,normalize:c}=ki(n),{start:h,end:d,loop:u,style:f}=function(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=ki(n),l=e.length;let c,h,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,c=0,h=l;c<h&&r(a(e[d%l][n]),s,o);++c)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:f,style:t.style}}(t,e,i),g=[];let b,p,m,x=!1,_=null;const y=()=>x||l(s,m,b)&&0!==a(s,m),v=()=>!x||0===a(o,b)||l(o,m,b);for(let O=h,j=h;O<=d;++O)p=e[O%r],p.skip||(b=c(p[n]),b!==m&&(x=l(b,s,o),null===_&&y()&&(_=0===a(b,s)?O:j),null!==_&&v()&&(g.push(Si({start:_,end:O,loop:u,count:r,style:f})),_=null),j=O,m=b));return null!==_&&g.push(Si({start:_,end:d,loop:u,count:r,style:f})),g}function Di(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const o=Pi(n[s],t.points,e);o.length&&i.push(...o)}return i}function Ci(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,i,n){let s=0,o=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(i,s,o,n);if(!0===n)return Ai(t,[{start:r,end:a,loop:o}],i,e);return Ai(t,function(t,e,i,n){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,l.skip&&(e=r)),l=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}(i,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-1),i,e)}function Ai(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const s=t._chart.getContext(),o=Ei(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=i.length,c=[];let h=o,d=e[0].start,u=d;function f(t,e,n,s){const o=a?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:n,style:s}),h=s,d=e%l)}}for(const g of e){d=a?d:g.start;let t,e=i[d%l];for(u=d+1;u<=g.end;u++){const o=i[u%l];t=Ei(n.setContext(Re(s,{type:"segment",p0:e,p1:o,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:r}))),Li(t,h)&&f(d,u-1,g.loop,h),e=o,h=t}d<u-1&&f(d,u-1,g.loop,h)}return c}(t,e,i,n):e}function Ei(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Li(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}}
2,678:function(t,e,i){"use strict";i.d(e,"a",(function(){return pe})),i.d(e,"b",(function(){return Te})),i.d(e,"c",(function(){return le})),i.d(e,"d",(function(){return Se})),i.d(e,"f",(function(){return qi}));var n=i(462);i.d(e,"e",(function(){return n.Eb}));var s=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const s=e.listeners[n],o=e.duration;s.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=n.Sb.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),e=0;this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const o="transparent",r={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Object(n.Db)(t||o),r=s.valid&&Object(n.Db)(e||o);return r&&r.valid?r.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class a{constructor(t,e,i,s){const o=e[i];s=Object(n.C)([t.to,s,o,t.from]);const a=Object(n.C)([t.from,o,s]);this._active=!0,this._fn=t.fn||r[t.type||typeof a],this._easing=n.Fb[t.easing]||n.Fb.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Object(n.C)([t.to,e,s,t.from]),this._from=Object(n.C)([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<i),!this._active)return this._target[n]=r,void this._notify(!0);e<0?this._target[n]=s:(a=e/i%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let n=0;n<i.length;n++)i[n][e]()}}n.Eb.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const l=Object.keys(n.Eb.animation);n.Eb.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),n.Eb.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),n.Eb.describe("animations",{_fallback:"animation"}),n.Eb.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class c{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Object(n.Jb)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const s=t[i];if(!Object(n.Jb)(s))return;const o={};for(const t of l)o[t]=s[t];
2(Object(n.Cb)(s.properties)&&s.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let s=0;s<n.length;s++){const e=t[n[s]];e&&e.active()&&i.push(e.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=s[c];const u=i.get(c);if(d){if(u&&d.active()){d.update(u,h,r);continue}d.cancel()}u&&u.duration?(s[c]=d=new a(u,t,c,h),n.push(d)):t[c]=h}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(s.add(this._chart,i),!0):void 0}}function h(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function d(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s<o;++s)i.push(n[s].index);return i}function u(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.keys,r="single"===s.mode;let a,l,c,h;if(null!==e){for(a=0,l=o.length;a<l;++a){if(c=+o[a],c===i){if(s.all)continue;break}h=t.values[c],Object(n.Hb)(h)&&(r||0===e||Object(n.Tb)(e)===Object(n.Tb)(h))&&(e+=h)}return e}}function f(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function g(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function b(t,e,i,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const e=t[s.index];if(i&&e>0||!i&&e<0)return s.index}return null}function p(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,c=r.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,r,n),d=e.length;let u;for(let f=0;f<d;++f){const t=e[f],{[l]:i,[c]:o}=t;u=(t._stacks||(t._stacks={}))[c]=g(s,h,i),u[a]=o,u._top=b(u,r,!0,n.type),u._bottom=b(u,r,!1,n.type)}}function m(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function x(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i]}}}const _=t=>"reset"===t||"none"===t,y=(t,e)=>e?t:Object.assign({},t);class v{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=f(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&x(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,o=e.xAxisID=Object(n.Wb)(i.xAxisID,m(t,"x")),r=e.yAxisID=Object(n.Wb)(i.yAxisID,m(t,"y")),a=e.rAxisID=Object(n.Wb)(i.rAxisID,m(t,"r")),l=e.indexAxis,c=e.iAxisID=s(l,o,r,a),h=e.vAxisID=s(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Object(n.Vb)(this._data,this),t._stacked&&x(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(Object(n.Jb)(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n],i[n]={x:o,y:t[o]};return i}(e);
vendor: 4,316 bytes, line 2
2else if(i!==e){if(i){Object(n.Vb)(i,this);const t=this._cachedMeta;x(t),t._parsed=[]}e&&Object.isExtensible(e)&&Object(n.Mb)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=f(e.vScale,e),e.stack!==i.stack&&(n=!0,x(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&p(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l,c,h,d=0===t&&e===s.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,h=s;else{h=Object(n.Cb)(s[t])?this.parseArrayData(i,s,t,e):Object(n.Jb)(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const o=()=>null===c[a]||u&&c[a]<u[a];for(l=0;l<e;++l)i._parsed[l+t]=c=h[l],d&&(o()&&(d=!1),u=c);i._sorted=d}r&&p(this,h)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,l=s.getLabels(),c=s===o,h=new Array(n);let d,u,f;for(d=0,u=n;d<u;++d)f=d+i,h[d]={[r]:c||s.parse(l[f],f),[a]:o.parse(e[f],f)};return h}parseArrayData(t,e,i,n){const{xScale:s,yScale:o}=t,r=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],r[a]={x:s.parse(h[0],c),y:o.parse(h[1],c)};return r}parseObjectData(t,e,i,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let h,d,u,f;for(h=0,d=s;h<d;++h)u=h+i,f=e[u],c[h]={x:o.parse(Object(n.Gb)(f,a),u),y:r.parse(Object(n.Gb)(f,l),u)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,s=this._cachedMeta,o=e[t.axis];return u({keys:d(n,!0),values:e._stacks[t.axis]},o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let o=null===s?NaN:s;const r=n&&i._stacks[e.axis];n&&r&&(n.values=r,o=u(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,o=i._sorted&&t===i.iScale,r=s.length,a=this._getOtherScale(t),l=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:d(i,!0),values:null})(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=function(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(a);let f,g;function b(){g=s[f];const e=g[a.axis];return!Object(n.Hb)(g[t.axis])||h>e||u<e}for(f=0;f<r&&(b()||(this.updateRangeFromParsed(c,t,g,l),!o));++f);if(o)for(f=r-1;f>=0;--f)if(!b()){this.updateRangeFromParsed(c,t,g,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=e.length;s<o;++s)r=e[s][t.axis],Object(n.Hb)(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,o;return Object(n.Jb)(t)?(e=t.top,i=t.right,s=t.bottom,o=t.left):e=i=s=o=t,{top:e,right:i,bottom:s,left:o,disabled:!1===t}}(Object(n.Wb)(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=h(t,i),s=h(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,n=i.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||n.length-r,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,s,r,a),c=r;c<r+a;++c){const e=n[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,s))}for(c=0;c<o.length;++c)o[c].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];
2o=e.$context||(e.$context=function(t,e,i){return Object(n.Ib)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return Object(n.Ib)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",i=arguments.length>2?arguments[2]:void 0;const s="active"===e,o=this._cachedDataOpts,r=t+"-"+e,a=o[r],l=this.enableOptionSharing&&Object(n.Kb)(i);if(a)return y(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),d=s?[`${t}Hover`,"hover",t,""]:[t,""],u=c.getOptionScopes(this.getDataset(),h),f=Object.keys(n.Eb.elements[t]),g=c.resolveNamedOptions(u,f,(()=>this.getContext(i,s)),d);return g.$shared&&(g.$shared=l,o[r]=Object.freeze(y(g,l))),g}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const l=new c(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||_(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,n){_(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!_(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[r,a,l]of this._syncList)this[r](a,l);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s<n&&this._removeElements(s,n-s)}_insertElements(t,e){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._cachedMeta,s=n.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&x(i,n)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,n]=t;this[e](i,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function O(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=Object(n.B)(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,o,r,a,l=e._length;const c=()=>{32767!==r&&-32768!==r&&(Object(n.Kb)(a)&&(l=Math.min(l,Math.abs(r-a)||l)),a=r)};for(s=0,o=i.length;s<o;++s)r=e.getPixelForValue(i[s]),c();for(a=void 0,s=0,o=e.ticks.length;s<o;++s)r=e.getPixelForTick(s),c();return l}
vendor: 4,299 bytes, line 2
2function j(t,e,i,s){return Object(n.Cb)(t)?function(t,e,i,n){const s=i.parse(t[0],n),o=i.parse(t[1],n),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function w(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,d,u;for(c=i,h=i+n;c<h;++c)u=e[c],d={},d[s.axis]=a||s.parse(r[c],c),l.push(j(u,d,o,c));return l}function M(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function k(t,e,i,n){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);if(!0===s)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:a,reverse:l,top:c,bottom:h}=function(t){let e,i,n,s,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",o="start"):(s="start",o="end"),{start:i,end:n,reverse:e,top:s,bottom:o}}(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=c:(i._bottom||0)===n?s=h:(o[S(h,r,a,l)]=!0,s=c)),o[S(s,r,a,l)]=!0,t.borderSkipped=o}function S(t,e,i,n){var s,o,r;return n?(r=i,t=P(t=(s=t)===(o=e)?r:s===r?o:s,i,e)):t=P(t,e,i),t}function P(t,e,i){return"start"===t?e:"end"===t?i:t}function D(t,e,i){let{inflateAmount:n}=e;t.inflateAmount="auto"===n?1===i?.33:0:n}v.defaults={},v.prototype.datasetElementType=null,v.prototype.dataElementType=null;class C extends v{parsePrimitiveData(t,e,i,n){return w(t,e,i,n)}parseArrayData(t,e,i,n){return w(t,e,i,n)}parseObjectData(t,e,i,s){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c="x"===o.axis?a:l,h="x"===r.axis?a:l,d=[];let u,f,g,b;for(u=i,f=i+s;u<f;++u)b=e[u],g={},g[o.axis]=o.parse(Object(n.Gb)(b,c),u),d.push(j(Object(n.Gb)(b,h),g,r,u));return d}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,s=this.getParsed(t),o=s._custom,r=M(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,s){const o="reset"===s,{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,s);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=o||Object(n.Lb)(e[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,h),b=(e._stacks||{})[a.axis],p={horizontal:c,base:i.base,enableBorderRadius:!b||M(e._custom)||r===b._top||r===b._bottom,x:c?i.head:g.center,y:c?g.center:i.head,height:c?g.size:Math.abs(i.size),width:c?Math.abs(i.size):g.size};u&&(p.options=d||this.resolveDataElementOptions(f,t[f].active?"active":s));const m=p.options||t[f].options;k(p,m,b,r),D(p,m,h.ratio),this.updateElement(t[f],f,p,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=i.options.stacked,r=[],a=t=>{const i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(Object(n.Lb)(s)||isNaN(s))return!0};for(const n of s)if((void 0===e||!a(n))&&((!1===o||-1===r.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&r.push(n.stack),n.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s<o;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const r=t.barThickness;return{min:r||O(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:s,minBarLength:o}}=this,r=s||0,a=this.getParsed(t),l=a._custom,c=M(l);let h,d,u=a[e.axis],f=0,g=i?this.applyStack(e,a,i):u;
2g!==u&&(f=g-u,g=u),c&&(u=l.barStart,g=l.barEnd-l.barStart,0!==u&&Object(n.Tb)(u)!==Object(n.Tb)(l.barEnd)&&(f=0),f+=u);const b=Object(n.Lb)(s)||c?f:s;let p=e.getPixelForValue(b);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(f+g):p,d=h-p,Math.abs(d)<o){d=function(t,e,i){return 0!==t?Object(n.Tb)(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,r)*o,u===r&&(p-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),s=Math.min(t,i),a=Math.max(t,i);p=Math.max(Math.min(p,a),s),h=p+d}if(p===e.getPixelForValue(r)){const t=Object(n.Tb)(d)*e.getLineWidthForValue(r)/2;p+=t,d-=t}return{size:d,base:p,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,o=s.skipNull,r=Object(n.Wb)(s.maxBarThickness,1/0);let a,l;if(e.grouped){const i=o?this._getStackCount(t):e.stackCount,c="flex"===s.barThickness?function(t,e,i,n){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const l=i.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/n,ratio:i.barPercentage,start:c}}(t,e,s,i):function(t,e,i,s){const o=i.barThickness;let r,a;return Object(n.Lb)(o)?(r=e.min*i.categoryPercentage,a=i.barPercentage):(r=o*s,a=1),{chunk:r/s,ratio:a,start:e.pixels[t]-r/2}}(t,e,s,i),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=c.start+c.chunk*h+c.chunk/2,l=Math.min(r,c.chunk*c.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(r,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[e.axis]&&i[s].draw(this._ctx)}}C.id="bar",C.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},C.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class A extends v{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const s=super.parsePrimitiveData(t,e,i,n);for(let o=0;o<s.length;o++)s[o]._custom=this.resolveDataElementOptions(o+i).radius;return s}parseArrayData(t,e,i,s){const o=super.parseArrayData(t,e,i,s);for(let r=0;r<o.length;r++){const t=e[i+r];o[r]._custom=Object(n.Wb)(t[2],this.resolveDataElementOptions(r+i).radius)}return o}parseObjectData(t,e,i,s){const o=super.parseObjectData(t,e,i,s);for(let r=0;r<o.length;r++){const t=e[i+r];o[r]._custom=Object(n.Wb)(t&&t.r&&+t.r,this.resolveDataElementOptions(r+i).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,s=this.getParsed(t),o=i.getLabelForValue(s.x),r=n.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+o+", "+r+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,n),c=o.axis,h=r.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!s&&this.getParsed(d),u={},f=u[c]=s?o.getPixelForDecimal(.5):o.getPixelForValue(i[c]),g=u[h]=s?r.getBasePixel():r.getPixelForValue(i[h]);u.skip=isNaN(f)||isNaN(g),l&&(u.options=a||this.resolveDataElementOptions(d,e.active?"active":n),s&&(u.options.radius=0)),this.updateElement(e,d,u,n)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const o=s.radius;return"active"!==e&&(s.radius=0),s.radius+=Object(n.Wb)(i&&i._custom,o),s}}A.id="bubble",A.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},A.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class E extends v{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let o,r,a=t=>+i[t];if(Object(n.Jb)(i[t])){const{key:t="value"}=this._parsing;a=e=>+Object(n.Gb)(i[e],t)}for(o=t,r=t+e;o<r;++o)s._parsed[o]=a(o)}}_getRotation(){return Object(n.Ub)(this.options.rotation-90)}_getCircumference(){return Object(n.Ub)(this.options.circumference)}_getRotationExtents(){let t=n.u,e=-n.u;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),o=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,o=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-r)/2,0),l=Math.min(Object(n.Nb)(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:h,rotation:d}=this._getRotationExtents(),{ratioX:u,ratioY:f,offsetX:g,offsetY:b}
2=function(t,e,i){let s=1,o=1,r=0,a=0;if(e<n.u){const l=t,c=l+e,h=Math.cos(l),d=Math.sin(l),u=Math.cos(c),f=Math.sin(c),g=(t,e,s)=>Object(n.Qb)(t,l,c,!0)?1:Math.max(e,e*i,s,s*i),b=(t,e,s)=>Object(n.Qb)(t,l,c,!0)?-1:Math.min(e,e*i,s,s*i),p=g(0,h,u),m=g(n.i,d,f),x=b(n.q,h,u),_=b(n.q+n.i,d,f);s=(p-x)/2,o=(m-_)/2,r=-(p+x)/2,a=-(m+_)/2}return{ratioX:s,ratioY:o,offsetX:r,offsetY:a}}(d,h,l),p=(i.width-r)/u,m=(i.height-r)/f,x=Math.max(Math.min(p,m)/2,0),_=Object(n.Ob)(this.options.radius,x),y=(_-Math.max(_*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*_,this.offsetY=b*_,s.total=this.calculateTotal(),this.outerRadius=_-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,o=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*o/n.u)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,h=s&&a.animateScale,d=h?0:this.innerRadius,u=h?0:this.outerRadius,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,n);let b,p=this._getRotation();for(b=0;b<e;++b)p+=this._circumference(b,s);for(b=e;b<e+i;++b){const e=this._circumference(b,s),i=t[b],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:p,endAngle:p+e,circumference:e,outerRadius:u,innerRadius:d};g&&(o.options=f||this.resolveDataElementOptions(b,i.active?"active":n)),p+=e,this.updateElement(i,b,o,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const s=t._parsed[i];null===s||isNaN(s)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(s))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?n.u*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=Object(n.Pb)(e._parsed[t],i.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){o=i.getDatasetMeta(n),t=o.data,r=o.controller;break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)a=r.resolveDataElementOptions(n),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(Object(n.Wb)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}E.id="doughnut",E.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},E.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},E.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return Object(n.Cb)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class L extends v{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:l}=Object(n.Rb)(e,s,r);this._drawStart=a,this._drawCount=l,Object(n.Xb)(e)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,e,i,s){const o="reset"===s,{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,s),u=r.axis,f=a.axis,{spanGaps:g,segment:b}=this.options,p=Object(n.Yb)(g)?g:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===s;let x=e>0&&this.getParsed(e-1);for(let _=e;_<e+i;++_){const e=t[_],i=this.getParsed(_),g=m?e:{},y=Object(n.Lb)(i[f]),v=g[u]=r.getPixelForValue(i[u],_),O=g[f]=o||y?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,i,l):i[f],_);g.skip=isNaN(v)||isNaN(O)||y,g.stop=_>0&&Math.abs(i[u]-x[u])>p,b&&(g.parsed=i,g.raw=c.data[_]),d&&(g.options=h||this.resolveDataElementOptions(_,e.active?"active":s)),m||this.updateElement(e,_,g,s),x=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}L.id="line",L.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},L.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class T extends v{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=Object(n.Pb)(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:o}}
2parseObjectData(t,e,i,s){return n.Zb.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const o="reset"===s,r=this.chart,a=r.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,h=l.yCenter,d=l.getIndexAngle(0)-.5*n.q;let u,f=d;const g=360/this.countVisibleElements();for(u=0;u<e;++u)f+=this._computeAngle(u,s,g);for(u=e;u<e+i;u++){const e=t[u];let i=f,n=f+this._computeAngle(u,s,g),b=r.getDataVisibility(u)?l.getDistanceFromCenterForValue(this.getParsed(u).r):0;f=n,o&&(a.animateScale&&(b=0),a.animateRotate&&(i=n=d));const p={x:c,y:h,innerRadius:0,outerRadius:b,startAngle:i,endAngle:n,options:this.resolveDataElementOptions(u,e.active?"active":s)};this.updateElement(e,u,p,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Object(n.Ub)(this.resolveDataElementOptions(t,e).angle||i):0}}T.id="polarArea",T.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},T.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class R extends E{}R.id="pie",R.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class I extends v{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return n.Zb.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,o="reset"===n;for(let r=e;r<e+i;r++){const e=t[r],i=this.resolveDataElementOptions(r,e.active?"active":n),a=s.getPointPositionForValue(r,this.getParsed(r).r),l=o?s.xCenter:a.x,c=o?s.yCenter:a.y,h={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(e,r,h,n)}}}I.id="radar",I.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},I.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class z{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Object(n.Yb)(this.x)&&Object(n.Yb)(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach((t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),n}}z.defaults={},z.defaultRoutes=void 0;const F={values:t=>Object(n.Cb)(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let o,r=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const a=Object(n.ac)(Math.abs(r)),l=Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Object(n.Pb)(t,s,c)},logarithmic(t,e,i){if(0===t)return"0";const s=t/Math.pow(10,Math.floor(Object(n.ac)(t)));return 1===s||2===s||5===s?F.numeric.call(this,t,e,i):""}};var W={formatters:F};function V(t,e){const i=t.options.ticks,s=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),o=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>
2s)return function(t,e,i,n){let s,o=0,r=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=i[o*n])}(e,c,o,r/s),c;const h=function(t,e,i){const s=function(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}(t),o=e.length/i;if(!s)return Math.max(o,1);const r=Object(n.b)(s);for(let n=0,a=r.length-1;n<a;n++){const t=r[n];if(t>o)return t}return Math.max(o,1)}(o,e,s);if(r>0){let t,i;const s=r>1?Math.round((l-a)/(r-1)):null;for(B(e,c,h,Object(n.Lb)(s)?0:a-s,a),t=0,i=r-1;t<i;t++)B(e,c,h,o[t],o[t+1]);return B(e,c,h,l,Object(n.Lb)(s)?e.length:l+s),c}return B(e,c,h),c}function B(t,e,i,s,o){const r=Object(n.Wb)(s,0),a=Math.min(Object(n.Wb)(o,t.length),t.length);let l,c,h,d=0;for(i=Math.ceil(i),o&&(l=o-s,i=l/Math.floor(l/i)),h=r;h<0;)d++,h=Math.round(r+d*i);for(c=Math.max(r,0);c<a;c++)c===h&&(e.push(t[c]),d++,h=Math.round(r+d*i))}n.Eb.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:W.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.Eb.route("scale.ticks","color","","color"),n.Eb.route("scale.grid","color","","borderColor"),n.Eb.route("scale.grid","borderColor","","borderColor"),n.Eb.route("scale.title","color","","color"),n.Eb.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),n.Eb.describe("scales",{_fallback:"scale"}),n.Eb.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const N=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function H(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;o<s;o+=n)i.push(t[Math.floor(o)]);return i}function $(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),o=t._startPixel,r=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(s);if(!(i&&(l=1===n?Math.max(c-o,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(s-1))/2,c+=s<e?l:-l,c<o-a||c>r+a)))return c}function Y(t){return t.drawTicks?t.tickLength:0}function U(t,e){if(!t.display)return 0;const i=Object(n.p)(t.font,e),s=Object(n.l)(t.padding);return(Object(n.Cb)(t.text)?t.text.length:1)*i.lineHeight+s.height}function X(t,e,i){let s=Object(n.s)(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>
2"left"===t?"right":"right"===t?"left":t)(s)),s}class J extends z{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=Object(n.c)(t,Number.POSITIVE_INFINITY),e=Object(n.c)(e,Number.NEGATIVE_INFINITY),i=Object(n.c)(i,Number.POSITIVE_INFINITY),s=Object(n.c)(s,Number.NEGATIVE_INFINITY),{min:Object(n.c)(t,i),max:Object(n.c)(e,s),minDefined:Object(n.Hb)(t),maxDefined:Object(n.Hb)(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:i,max:s};const a=this.getMatchingVisibleMetas();for(let n=0,l=a.length;n<l;++n)e=a[n].controller.getMinMax(this,t),o||(i=Math.min(i,e.min)),r||(s=Math.max(s,e.max));return i=r&&i>s?s:i,s=o&&i>s?i:s,{min:Object(n.c)(i,Object(n.c)(s,i)),max:Object(n.c)(s,Object(n.c)(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Object(n.d)(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Object(n.e)(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?H(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=V(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Object(n.d)(this.options.afterUpdate,[this])}beforeSetDimensions(){Object(n.d)(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(){Object(n.d)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Object(n.d)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Object(n.d)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i],o.label=Object(n.d)(e.callback,[o.value,i,t],this)}afterTickToLabelConversion(){Object(n.d)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Object(n.d)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,s=e.minRotation||0,o=e.maxR
2otation;let r,a,l,c=s;if(!this._isVisible()||!e.display||s>=o||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,f=Object(n.f)(this.chart.width-d,0,this.maxWidth);r=t.offset?this.maxWidth/i:f/(i-1),d+6>r&&(r=f/(i-(t.offset?.5:1)),a=this.maxHeight-Y(t.grid)-e.padding-U(t.title,this.chart.options.font),l=Math.sqrt(d*d+u*u),c=Object(n.g)(Math.min(Math.asin(Object(n.f)((h.highest.height+6)/r,-1,1)),Math.asin(Object(n.f)(a/l,-1,1))-Math.asin(Object(n.f)(u/l,-1,1)))),c=Math.max(s,Math.min(o,c))),this.labelRotation=c}afterCalculateLabelRotation(){Object(n.d)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Object(n.d)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=U(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=Y(o)+r):(t.height=this.maxHeight,t.width=Y(o)+r),i.display&&this.ticks.length){const{first:e,last:s,widest:o,highest:r}=this._getLabelSizes(),l=2*i.padding,c=Object(n.Ub)(this.labelRotation),h=Math.cos(c),d=Math.sin(c);if(a){const e=i.mirror?0:d*o.width+h*r.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=i.mirror?0:h*o.width+d*r.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,s,d,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;a?l?(h=n*t.width,d=i*e.height):(h=i*t.height,d=n*e.width):"start"===s?d=e.width:"end"===s?h=t.width:"inner"!==s&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Object(n.d)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)Object(n.Lb)(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=H(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:s}=this,o=[],r=[];let a,l,c,h,d,u,f,g,b,p,m,x=0,_=0;for(a=0;a<e;++a){if(h=t[a].label,d=this._resolveTickFontOptions(a),i.font=u=d.string,f=s[u]=s[u]||{data:{},gc:[]},g=d.lineHeight,b=p=0,Object(n.Lb)(h)||Object(n.Cb)(h)){if(Object(n.Cb)(h))for(l=0,c=h.length;l<c;++l)m=h[l],Object(n.Lb)(m)||Object(n.Cb)(m)||(b=Object(n.h)(i,f.data,f.gc,b,m),p+=g)}else b=Object(n.h)(i,f.data,f.gc,b,h),p=g;o.push(b),r.push(p),x=Math.max(b,x),_=Math.max(p,_)}!function(t,e){Object(n.r)(t,(t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s<n;++s)delete t.data[i[s]];i.splice(0,n)}}))}(s,e);const y=o.indexOf(x),v=r.indexOf(_),O=t=>({width:o[t]||0,height:r[t]||0});
2return{first:O(0),last:O(e-1),widest:O(y),highest:O(v),widths:o,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Object(n.j)(this._alignToPixels?Object(n.k)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return Object(n.Ib)(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=(i=this.chart.getContext(),s=this,Object(n.Ib)(i,{scale:s,type:"scale"})));var i,s}_tickSize(){const t=this.options.ticks,e=Object(n.Ub)(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*i>a*s?a/i:l/s:l*s<a*i?l/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:o,position:r}=s,a=o.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),h=Y(o),d=[],u=o.setContext(this.getContext()),f=u.drawBorder?u.borderWidth:0,g=f/2,b=function(t){return Object(n.k)(i,t,f)};let p,m,x,_,y,v,O,j,w,M,k,S;if("top"===r)p=b(this.bottom),v=this.bottom-h,j=p-g,M=b(t.top)+g,S=t.bottom;else if("bottom"===r)p=b(this.top),M=t.top,S=b(t.bottom)-g,v=p+g,j=this.top+h;else if("left"===r)p=b(this.right),y=this.right-h,O=p-g,w=b(t.left)+g,k=t.right;else if("right"===r)p=b(this.left),w=t.left,k=b(t.right)-g,y=p+g,O=this.left+h;else if("x"===e){if("center"===r)p=b((t.top+t.bottom)/2+.5);else if(Object(n.Jb)(r)){const t=Object.keys(r)[0],e=r[t];p=b(this.chart.scales[t].getPixelForValue(e))}M=t.top,S=t.bottom,v=p+g,j=v+h}else if("y"===e){if("center"===r)p=b((t.left+t.right)/2);else if(Object(n.Jb)(r)){const t=Object.keys(r)[0],e=r[t];p=b(this.chart.scales[t].getPixelForValue(e))}y=p-g,O=y-h,w=t.left,k=t.right}const P=Object(n.Wb)(s.ticks.maxTicksLimit,c),D=Math.max(1,Math.ceil(c/P));for(m=0;m<c;m+=D){const t=o.setContext(this.getContext(m)),e=t.lineWidth,s=t.color,r=t.borderDash||[],c=t.borderDashOffset,h=t.tickWidth,u=t.tickColor,f=t.tickBorderDash||[],g=t.tickBorderDashOffset;x=$(this,m,a),void 0!==x&&(_=Object(n.k)(i,x,e),l?y=O=w=k=_:v=j=M=S=_,d.push({tx1:y,ty1:v,tx2:O,ty2:j,x1:w,y1:M,x2:k,y2:S,width:e,color:s,borderDash:r,borderDashOffset:c,tickWidth:h,tickColor:u,tickBorderDash:f,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=p,d}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:o}=i,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:d}=o,u=Y(i.grid),f=u+h,g=d?-h:f,b=-Object(n.Ub)(this.labelRotation),p=[];let m,x,_,y,v,O,j,w,M,k,S,P,D="middle";if("top"===s)O=this.bottom-g,j=this._getXAxisLabelAlignment();else if("bottom"===s)O=this.top+g,j=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(u);j=t.textAlign,v=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(u);j=t.textAlign,v=t.x}else if("x"===e){if("center"===s)O=(t.top+t.bottom)/2+f;else if(Object(n.Jb)(s)){const t=Object.keys(s)[0],e=s[t];O=this.chart.scales[t].getPixelForValue(e)+f}j=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)v=(t.left+t.right)/2-f;else if(Object(n.Jb)(s)){const t=Object.keys(s)[0],e=s[t];v=this.chart.scales[t].getPixelForValue(e)}j=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===l?D="top":"end"===l&&(D="bottom"));const C=this._getLabelSizes();for(m=0,x=a.length;m<x;++m){_=a[m],y=_.label;const t=o.setContext(this.getContext(m));w=this.getPixelForTick(m)+o.labelOffset,M=this._resolveTickFontOptions(m),k=M.lineHeight,S=Object(n.Cb)(y)?y.length:1;const e=S/2,i=t.color,l=t.textStrokeColor,h=t.textStrokeWidth;let u,f=j;
2if(r?(v=w,"inner"===j&&(f=m===x-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),P="top"===s?"near"===c||0!==b?-S*k+k/2:"center"===c?-C.highest.height/2-e*k+k:-C.highest.height+k/2:"near"===c||0!==b?k/2:"center"===c?C.highest.height/2-e*k:C.highest.height-S*k,d&&(P*=-1)):(O=w,P=(1-S)*k/2),t.showLabelBackdrop){const e=Object(n.l)(t.backdropPadding),i=C.heights[m],s=C.widths[m];let o=O+P-e.top,r=v-e.left;switch(D){case"middle":o-=i/2;break;case"bottom":o-=i}switch(j){case"center":r-=s/2;break;case"right":r-=s}u={left:r,top:o,width:s+e.width,height:i+e.height,color:t.backdropColor}}p.push({rotation:b,label:y,font:M,color:i,strokeColor:l,strokeWidth:h,textOffset:P,textAlign:f,textBaseline:D,translation:[v,O],backdrop:u})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Object(n.Ub)(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,l;return"left"===e?n?(l=this.right+s,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l+=r)):(l=this.right-o,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l=this.left)):"right"===e?n?(l=this.left+s,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l-=r)):(l=this.left+o,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}
2:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:n,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s<o;++s){const t=n[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:i}}=this,s=i.setContext(this.getContext()),o=i.drawBorder?s.borderWidth:0;if(!o)return;const r=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,h,d;this.isHorizontal()?(l=Object(n.k)(t,this.left,o)-o/2,c=Object(n.k)(t,this.right,r)+r/2,h=d=a):(h=Object(n.k)(t,this.top,o)-o/2,d=Object(n.k)(t,this.bottom,r)+r/2,l=c=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(l,h),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&Object(n.m)(e,i);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=s.length;o<r;++o){const t=s[o],i=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height));let a=t.textOffset;Object(n.n)(e,r,0,a,i,t)}i&&Object(n.o)(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const o=Object(n.p)(i.font),r=Object(n.l)(i.padding),a=i.align;let l=o.lineHeight/2;"bottom"===e||"center"===e||Object(n.Jb)(e)?(l+=r.bottom,Object(n.Cb)(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:d,rotation:u}=function(t,e,i,s){const{top:o,left:r,bottom:a,right:l,chart:c}=t,{chartArea:h,scales:d}=c;let u,f,g,b=0;const p=a-o,m=l-r;if(t.isHorizontal()){if(f=Object(n.t)(s,r,l),Object(n.Jb)(i)){const t=Object.keys(i)[0],n=i[t];g=d[t].getPixelForValue(n)+p-e}else g="center"===i?(h.bottom+h.top)/2+p-e:N(t,i,e);u=l-r}else{if(Object(n.Jb)(i)){const t=Object.keys(i)[0],n=i[t];f=d[t].getPixelForValue(n)-m+e}else f="center"===i?(h.left+h.right)/2-m+e:N(t,i,e);g=Object(n.t)(s,a,o),b="left"===i?-n.i:n.i}return{titleX:f,titleY:g,maxWidth:u,rotation:b}}(this,l,e,a);Object(n.n)(t,i.text,0,0,o,{color:i.color,maxWidth:d,rotation:u,textAlign:X(a,e,s),textBaseline:"middle",translation:[c,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=Object(n.Wb)(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===J.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[i]!==this.id||t&&o.type!==t||n.push(o)}return n}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return Object(n.p)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class q{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);
2return o in s||(s[o]=t,function(t,e,i){const s=Object(n.w)(Object.create(null),[i?n.Eb.get(i):{},n.Eb.get(e),t.defaults]);n.Eb.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split("."),o=s.pop(),r=[t].concat(s).join("."),a=e[i].split("."),l=a.pop(),c=a.join(".");n.Eb.route(r,o,c,l)}))}(e,t.defaultRoutes);t.descriptors&&n.Eb.describe(e,t.descriptors)}(t,r,i),this.override&&n.Eb.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in n.Eb[s]&&(delete n.Eb[s][i],this.override&&delete n.v[i])}}var K=new class{constructor(){this.controllers=new q(v,"datasets",!0),this.elements=new q(z,"elements"),this.plugins=new q(Object,"plugins"),this.scales=new q(J,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("register",e)}remove(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("unregister",e)}addControllers(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("register",e,this.controllers)}addElements(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("register",e,this.elements)}addPlugins(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("register",e,this.plugins)}addScales(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("register",e,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("unregister",e,this.controllers)}removeElements(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("unregister",e,this.elements)}removePlugins(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("unregister",e,this.plugins)}removeScales(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this._each("unregister",e,this.scales)}_each(t,e,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):Object(n.r)(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const s=Object(n.x)(t);Object(n.d)(i["before"+s],[],i),e[t](i),Object(n.d)(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}};class G extends v{update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:o,count:r}=Object(n.Rb)(e,i,s);if(this._drawStart=o,this._drawCount=r,Object(n.Xb)(e)&&(o=0,r=i.length),this.options.showLine){const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:r},t)}this.updateElements(i,o,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=K.getElement("line")),super.addElements()}updateElements(t,e,i,s){const o="reset"===s,{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,h=this.resolveDataElementOptions(e,s),d=this.getSharedOptions(h),u=this.includeOptions(s,d),f=r.axis,g=a.axis,{spanGaps:b,segment:p}=this.options,m=Object(n.Yb)(b)?b:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||"none"===s;let _=e>0&&this.getParsed(e-1);for(let y=e;y<e+i;++y){const e=t[y],i=this.getParsed(y),h=x?e:{},b=Object(n.Lb)(i[g]),v=h[f]=r.getPixelForValue(i[f],y),O=h[g]=o||b?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,i,l):i[g],y);h.skip=isNaN(v)||isNaN(O)||b,h.stop=y>0&&Math.abs(i[f]-_[f])>m,p&&(h.parsed=i,h.raw=c.data[y]),u&&(h.options=d||this.resolveDataElementOptions(y,e.active?"active":s)),x||this.updateElement(e,y,h,s),_=i}this.updateSharedOptions(d,s,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,o)/2}}G.id="scatter",G.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},G.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Z=Object.freeze({__proto__:null,BarController:C,BubbleController:A,DoughnutController:E,LineController:L,PolarAreaController:T,PieController:R,RadarController:I,ScatterController:G});function Q(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class tt{constructor(t){this.options=t||{}}init(t){}formats(){return Q()}parse(t,e){return Q()}format(t,e){return Q()}add(t,e,i){return Q()}diff(t,e,i){return Q()}startOf(t,e,i){return Q()}endOf(t,e){return Q()}}tt.override=function(t){Object.assign(tt.prototype,t)};var et={_date:tt};function it(t,e,i,s){const{controller:o,data:r,_sorted:a}=t,l=o._cachedMeta.iScale;if(l&&e===l.axis&&"r"!==e&&a&&r.length){const t=l._reversePixels?n.z:n.A;if(!s)return t(r,e,i);if(o._sharedOptions){const n=r[0],s="function"===typeof n.getRange&&n.getRange(e);if(s){const n=t(r,e,i-s),o=t(r,e,i+s);return{lo:n.lo,hi:o.hi}}}}return{lo:0,hi:r.length-1}}function nt(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let a=0,l=o.length;a<l;++a){const{index:t,data:i}=o[a],{lo:l,hi:c}=it(o[a],e,r,s);for(let e=l;e<=c;++e){const s=i[e];s.skip||n(s,t,e)}}}function st(t,e,i,s,o){const r=[];if(!o&&!t.isPointInArea(e))return r;return nt(t,i,e,(function(i,a,l){(o||Object(n.a)(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&r.push({element:i,datasetIndex:a,index:l})}),!0),r}function ot(t,e,i,n,s,o){let r=[];const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const s=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return nt(t,i,e,(function(i,c,h){const d=i.inRange(e.x,e.y,s);if(n&&!d)return;const u=i.getCenterPoint(s);if(!(!!o||t.isPointInArea(u))&&!d)return;const f=a(e,u);f<l?(r=[{element:i,datasetIndex:c,index:h}],l=f):f===l&&r.push({element:i,datasetIndex:c,index:h})})),r}function rt(t,e,i,s,o,r){return r||t.isPointInArea(e)?"r"!==i||s?ot(t,e,i,s,o,r):function(t,e,
vendor: 6,071 bytes, line 2
2i,s){let o=[];return nt(t,i,e,(function(t,i,r){const{startAngle:a,endAngle:l}=t.getProps(["startAngle","endAngle"],s),{angle:c}=Object(n.D)(t,{x:e.x,y:e.y});Object(n.Qb)(c,a,l)&&o.push({element:t,datasetIndex:i,index:r})})),o}(t,e,i,o):[]}function at(t,e,i,n,s){const o=[],r="x"===i?"inXRange":"inYRange";let a=!1;return nt(t,i,e,((t,n,l)=>{t[r](e[i],s)&&(o.push({element:t,datasetIndex:n,index:l}),a=a||t.inRange(e.x,e.y,s))})),n&&!a?[]:o}var lt={evaluateInteractionItems:nt,modes:{index(t,e,i,s){const o=Object(n.y)(e,t),r=i.axis||"x",a=i.includeInvisible||!1,l=i.intersect?st(t,o,r,s,a):rt(t,o,r,!1,s,a),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,i=t.data[e];i&&!i.skip&&c.push({element:i,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,i,s){const o=Object(n.y)(e,t),r=i.axis||"xy",a=i.includeInvisible||!1;let l=i.intersect?st(t,o,r,s,a):rt(t,o,r,!1,s,a);if(l.length>0){const e=l[0].datasetIndex,i=t.getDatasetMeta(e).data;l=[];for(let t=0;t<i.length;++t)l.push({element:i[t],datasetIndex:e,index:t})}return l},point:(t,e,i,s)=>st(t,Object(n.y)(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const o=Object(n.y)(e,t),r=i.axis||"xy",a=i.includeInvisible||!1;return rt(t,o,r,i.intersect,s,a)},x:(t,e,i,s)=>at(t,Object(n.y)(e,t),"x",i.intersect,s),y:(t,e,i,s)=>at(t,Object(n.y)(e,t),"y",i.intersect,s)}};const ct=["left","top","right","bottom"];function ht(t,e){return t.filter((t=>t.pos===e))}function dt(t,e){return t.filter((t=>-1===ct.indexOf(t.pos)&&t.box.axis===e))}function ut(t,e){return t.sort(((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight}))}function ft(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!ct.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,l=i[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*n:r&&e.availableWidth,a.height=s):(a.width=n,a.height=c?c*s:r&&e.availableHeight)}return i}function gt(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function bt(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function pt(t,e,i,s){const{pos:o,box:r}=i,a=t.maxPadding;if(!Object(n.Jb)(o)){i.size&&(t[o]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[o]+=i.size}r.getPadding&&bt(a,r.getPadding());const l=Math.max(0,e.outerWidth-gt(a,t,"left","right")),c=Math.max(0,e.outerHeight-gt(a,t,"top","bottom")),h=l!==t.w,d=c!==t.h;return t.w=l,t.h=c,i.horizontal?{same:h,other:d}:{same:d,other:h}}function mt(t,e){const i=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}return n(t?["left","right"]:["top","bottom"])}function xt(t,e,i,n){const s=[];let o,r,a,l,c,h;for(o=0,r=t.length,c=0;o<r;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,mt(a.horizontal,e));const{same:r,other:d}=pt(e,i,a,n);c|=r&&s.length,h=h||d,l.fullSize||s.push(a)}return c&&xt(s,e,i,n)||h}function _t(t,e,i,n,s){t.top=i,t.left=e,t.right=e+n,t.bottom=i+s,t.width=n,t.height=s}function yt(t,e,i,s){const o=i.padding;let{x:r,y:a}=e;for(const l of t){const t=l.box,c=s[l.stack]||{count:1,placed:0,weight:1},h=l.stackWeight/c.weight||1;if(l.horizontal){const s=e.w*h,r=c.size||t.height;Object(n.Kb)(c.start)&&(a=c.start),t.fullSize?_t(t,o.left,a,i.outerWidth-o.right-o.left,r):_t(t,e.left+c.placed,a,s,r),c.start=a,c.placed+=s,a=t.bottom}else{const s=e.h*h,a=c.size||t.width;Object(n.Kb)(c.start)&&(r=c.start),t.fullSize?_t(t,r,o.top,a,i.outerHeight-o.bottom-o.top):_t(t,r,e.top+c.placed,a,s),c.start=r,c.placed+=s,r=t.right}}e.x=r,e.y=a}n.Eb.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var vt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const o=Object(n.l)(t.options.layout.padding),r=Math.max(e-o.width,0),a=Math.max(i-o.height,0),l=function(t){const e=function(t){const e=[];let i,n,s,o,r,a;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:i,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),i=ut(e.filter((t=>t.box.fullSize)),!0),n=ut(ht(e,"left"),!0),s=ut(ht(e,"right")),o=ut(ht(e,"top"),!0),r=ut(ht(e,"bottom")),a=dt(e,"x"),l=dt(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:ht(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),c=l.vertical,h=l.horizontal;Object(n.r)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const d=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},o);bt(f,Object(n.l)(s));const g=Object.assign({maxPadding:f,w:r,h:a,x:o.left,y:o.top},o),b=ft(c.concat(h),u);xt(l.fullSize,g,u,b),xt(c,g,u,b),xt(h,g,u,b)&&xt(c,g,u,b),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(g),yt(l.leftAndTop,g,u,b),g.x+=g.w,g.y+=g.h,yt(l.rightAndBottom,g,u,b),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},Object(n.r)(l.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})}))}};class Ot{acquireContext(t,e){}releaseContext(t){return!1}
2addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class jt extends Ot{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wt="$chartjs",Mt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},kt=t=>null===t||""===t;const St=!!n.I&&{passive:!0};function Pt(t,e,i){t.canvas.removeEventListener(e,i,St)}function Dt(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Ct(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Dt(i.addedNodes,n),e=e&&!Dt(i.removedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}function At(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Dt(i.removedNodes,n),e=e&&!Dt(i.addedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}const Et=new Map;let Lt=0;function Tt(){const t=window.devicePixelRatio;t!==Lt&&(Lt=t,Et.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Rt(t,e,i){const s=t.canvas,o=s&&Object(n.F)(s);if(!o)return;const r=Object(n.H)(((t,e)=>{const n=o.clientWidth;i(t,e),n<o.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||r(i,n)}));return a.observe(o),function(t,e){Et.size||window.addEventListener("resize",Tt),Et.set(t,e)}(t,r),a}function It(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Et.delete(t),Et.size||window.removeEventListener("resize",Tt)}(t)}function zt(t,e,i){const s=t.canvas,o=Object(n.H)((e=>{null!==t.ctx&&i(function(t,e){const i=Mt[t.type]||t.type,{x:s,y:o}=Object(n.y)(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,St)}(s,e,o),o}class Ft extends Ot{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),o=t.getAttribute("width");if(t[wt]={initial:{height:s,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",kt(o)){const e=Object(n.G)(t,"width");void 0!==e&&(t.width=e)}if(kt(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Object(n.G)(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[wt])return!1;const i=e[wt].initial;["height","width"].forEach((t=>{const s=i[t];Object(n.Lb)(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=i.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e[wt],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:Ct,detach:At,resize:Rt}[e]||zt;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:It,detach:It,resize:It}[e]||Pt)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return Object(n.E)(t,e,i,s)}isAttached(t){const e=Object(n.F)(t);return!(!e||!e.isConnected)}}class Wt{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const o of t){const t=o.plugin,r=t[i],a=[e,s,o.options];if(!1===Object(n.d)(r,a,t)&&s.cancelable)return!1}return!0}invalidate(){Object(n.Lb)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=Object(n.Wb)(i.options&&i.options.plugins,{}),o=function(t){const e={},i=[],n=Object.keys(K.plugins.items);for(let o=0;o<n.length;o++)i.push(K.getPlugin(n[o]));const s=t.plugins||[];for(let o=0;o<s.length;o++){const t=s[o];-1===i.indexOf(t)&&(i.push(t),e[t.id]=!0)}return{plugins:i,localIds:e}}(i);
2return!1!==s||e?function(t,e,i,n){let{plugins:s,localIds:o}=e;const r=[],a=t.getContext();for(const l of s){const e=l.id,s=Vt(i[e],n);null!==s&&r.push({plugin:l,options:Bt(t.config,{plugin:l,local:o[e]},s,a)})}return r}(t,o,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function Vt(t,e){return e||!1!==t?!0===t?{}:t:null}function Bt(t,e,i,n){let{plugin:s,local:o}=e;const r=t.pluginScopeKeys(s),a=t.getOptionScopes(i,r);return o&&s.defaults&&a.push(s.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Nt(t,e){const i=n.Eb.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Ht(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function $t(t){const e=t.options||(t.options={});e.plugins=Object(n.Wb)(e.plugins,{}),e.scales=function(t,e){const i=n.v[t.type]||{scales:{}},s=e.scales||{},o=Nt(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!Object(n.Jb)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const l=Ht(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(l,o),h=i.scales||{};r[l]=r[l]||t,a[t]=Object(n.eb)(Object.create(null),[{axis:l},e,h[l],h[c]])})),t.data.datasets.forEach((i=>{const o=i.type||t.type,l=i.indexAxis||Nt(o,e),c=(n.v[o]||{}).scales||{};Object.keys(c).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,l),o=i[e+"AxisID"]||r[e]||e;a[o]=a[o]||Object.create(null),Object(n.eb)(a[o],[{axis:e},s[o],c[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];Object(n.eb)(e,[n.Eb.scales[e.type],n.Eb.scale])})),a}(t,e)}function Yt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ut=new Map,Xt=new Set;function Jt(t,e){let i=Ut.get(t);return i||(i=e(),Ut.set(t,i),Xt.add(i)),i}const qt=(t,e,i)=>{const s=Object(n.Gb)(e,i);void 0!==s&&t.add(s)};class Kt{constructor(t){this._config=function(t){return(t=t||{}).data=Yt(t.data),$t(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Yt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),$t(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Jt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Jt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Jt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Jt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>qt(l,t,e)))),e.forEach((t=>qt(l,s,t))),e.forEach((t=>qt(l,n.v[o]||{},t))),e.forEach((t=>qt(l,n.Eb,t))),e.forEach((t=>qt(l,n.K,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),Xt.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,n.v[e]||{},n.Eb.datasets[e]||{},{type:e},n.Eb,n.K]}resolveNamedOptions(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const o={$shared:!0},{resolver:r,subPrefixes:a}=Gt(this._resolverCache,t,s);let l=r;if(function(t,e){const{isScriptable:i,isIndexable:s}=Object(n.db)(t);for(const o of e){const e=i(o),r=s(o),a=(r||e)&&t[o];if(e&&(Object(n.L)(a)||Zt(a))||r&&Object(n.Cb)(a))return!0}return!1}(r,e)){o.$shared=!1,i=Object(n.L)(i)?i():i;const e=this.createResolver(t,i,a);l=Object(n.M)(r,i,e)}for(const n of e)o[n]=l[n];return o}createResolver(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],s=arguments.length>3?arguments[3]:void 0;const{resolver:o}=Gt(this._resolverCache,t,i);return Object(n.Jb)(e)?Object(n.M)(o,e,void 0,s):o}}function Gt(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const o=i.join();let r=s.get(o);if(!r){r={resolver:Object(n.cb)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(o,r)}return r}const Zt=t=>Object(n.Jb)(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||Object(n.L)(t[i])),!1);const Qt=["top","bottom","left","right","chartArea"];function te(t,e){return"top"===t||"bottom"===t||-1===Qt.indexOf(t)&&"x"===e}function ee(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function ie(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),Object(n.d)(i&&i.onComplete,[t],e)}function ne(t){const e=t.chart,i=e.options.animation;Object(n.d)(i&&i.onProgress,[t],e)}function se(t){return Object(n.J)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const oe={},re=t=>{const e=se(t);return Object.values(oe).filter((t=>t.canvas===e)).pop()};function ae(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;
2if(n>=e){const o=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=o)}}}class le{constructor(t,e){const i=this.config=new Kt(e),o=se(t),r=re(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Object(n.J)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?jt:Ft}(o)),this.platform.updateConfig(i);const l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,d=c&&c.width;this.id=Object(n.fb)(),this.ctx=l,this.canvas=c,this.width=d,this.height=h,this._options=a,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 Wt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(n.gb)((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],oe[this.id]=this,l&&c?(s.listen(this,"complete",ie),s.listen(this,"progress",ne),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:o}=this;return Object(n.Lb)(t)?e&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Object(n.hb)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Object(n.ib)(this.canvas,this.ctx),this}stop(){return s.stop(this),this}resize(t,e){s.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Object(n.hb)(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Object(n.d)(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};Object(n.r)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const i=e[t],n=Ht(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),Object(n.r)(o,(e=>{const o=e.options,r=o.id,a=Ht(r,o),l=Object(n.Wb)(o.type,e.dtype);void 0!==o.position&&te(o.position,a)===te(e.dposition)||(o.position=e.dposition),s[r]=!0;let c=null;if(r in i&&i[r].type===l)c=i[r];else{c=new(K.getScale(l))({id:r,type:l,ctx:this.ctx,chart:this}),i[c.id]=c}c.init(o,t)})),Object(n.r)(s,((t,e)=>{t||delete i[e]})),Object(n.r)(i,(t=>{vt.configure(this,t,t.options),vt.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(ee("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let o=this.getDatasetMeta(i);const r=s.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=r,o.indexAxis=s.indexAxis||Nt(r,this.options),o.order=s.order||0,o.index=i,o.label=""+s.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const e=K.getController(r),{datasetElementType:s,dataElementType:a}=n.Eb.datasets[r];Object.assign(e.prototype,{dataElementType:K.getElement(a),datasetElementType:s&&K.getElement(s)}),o.controller=new e(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Object(n.r)(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;
2e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let n=0,c=this.data.datasets.length;n<c;n++){const{controller:t}=this.getDatasetMeta(n),e=!s&&-1===o.indexOf(t);t.buildOrUpdateElements(e),r=Math.max(+t.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||Object(n.r)(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ee("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Object(n.r)(this.scales,(t=>{vt.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);Object(n.jb)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e){ae(t,n,"_removeElements"===i?-s:s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let o=1;o<e;o++)if(!Object(n.jb)(s,i(o)))return;return Array.from(s).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;vt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Object(n.r)(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,Object(n.L)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(s.has(this)?this.attached&&!s.running(this)&&s.start(this):(this.draw(),ie({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];t&&!s.visible||i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(s&&Object(n.m)(e,{left:!1===i.left?0:o.left-i.left,right:!1===i.right?this.width:o.right+i.right,top:!1===i.top?0:o.top-i.top,bottom:!1===i.bottom?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&Object(n.o)(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Object(n.a)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=lt.modes[e];return"function"===typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=Object(n.Ib)(null,{chart:this,type:"chart"}))}
2getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"===typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);Object(n.Kb)(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),s.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Object(n.ib)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete oe[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Object(n.r)(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){Object(n.r)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Object(n.r)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((t=>{let{datasetIndex:e,index:i}=t;const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[i],index:i}}));!Object(n.kb)(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:o}=this,r=e,a=this._getActiveElements(t,s,i,r),l=Object(n.lb)(t),c=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,l);i&&(this._lastEvent=null,Object(n.d)(o.onHover,[t,a,this],this),l&&Object(n.d)(o.onClick,[t,a,this],this));const h=!Object(n.kb)(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=c,h}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}const ce=()=>Object(n.r)(le.instances,(t=>t._plugins.invalidate())),he=!0;function de(t,e,i){const{startAngle:s,pixelMargin:o,x:r,y:a,outerRadius:l,innerRadius:c}=e;let h=o/l;t.beginPath(),t.arc(r,a,l,s-h,i+h),c>o?(h=o/c,t.arc(r,a,c,i+h,s-h,!0)):t.arc(r,a,o,i+n.i,s-n.i),t.closePath(),t.clip()}function ue(t,e,i,s){const o=(r=t.options.borderRadius,Object(n.nb)(r,["outerStart","outerEnd","innerStart","innerEnd"]));var r;const a=(i-e)/2,l=Math.min(a,s*e/2),c=t=>{const e=(i-Math.min(a,t))*s/2;return Object(n.f)(t,0,Math.min(a,e))};return{outerStart:c(o.outerStart),outerEnd:c(o.outerEnd),innerStart:Object(n.f)(o.innerStart,0,l),innerEnd:Object(n.f)(o.innerEnd,0,l)}}function fe(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function ge(t,e,i,s,o,r){const{x:a,y:l,startAngle:c,pixelMargin:h,innerRadius:d}=e,u=Math.max(e.outerRadius+s+i-h,0),f=d>0?d+s+i+h:0;let g=0;const b=o-c;if(s){const t=((d>0?d-s:0)+(u>0?u-s:0))/2;g=(b-(0!==t?b*t/(t+s):b))/2}const p=(b-Math.max(.001,b*u-i/n.q)/u)/2,m=c+p+g,x=o-p-g,{outerStart:_,outerEnd:y,innerStart:v,innerEnd:O}=ue(e,f,u,x-m),j=u-_,w=u-y,M=m+_/j,k=x-y/w,S=f+v,P=f+O,D=m+v/S,C=x-O/P;if(t.beginPath(),r){if(t.arc(a,l,u,M,k),y>0){const e=fe(w,k,a,l);t.arc(e.x,e.y,y,k,x+n.i)}const e=fe(P,x,a,l);if(t.lineTo(e.x,e.y),O>0){const e=fe(P,C,a,l);t.arc(e.x,e.y,O,x+n.i,C+Math.PI)}if(t.arc(a,l,f,x-O/f,m+v/f,!0),v>0){const e=fe(S,D,a,l);t.arc(e.x,e.y,v,D+Math.PI,m-n.i)}const i=fe(j,m,a,l);if(t.lineTo(i.x,i.y),_>0){const e=fe(j,M,a,l);t.arc(e.x,e.y,_,m-n.i,M)}}else{t.moveTo(a,l);const e=Math.cos(M)*u+a,i=Math.sin(M)*u+l;t.lineTo(e,i);const n=Math.cos(k)*u+a,s=Math.sin(k)*u+l;t.lineTo(n,s)}t.closePath()}function be(t,e,i,s,o,r){const{options:a}=e,{borderWidth:l,borderJoinStyle:c}=a,h="inner"===a.borderAlign;l&&(h?(t.lineWidth=2*l,t.lineJoin=c||"round"):(t.lineWidth=l,t.lineJoin=c||"bevel"),e.fullCircles&&function(t,e,
2i){const{x:s,y:o,startAngle:r,pixelMargin:a,fullCircles:l}=e,c=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let d;for(i&&de(t,e,r+n.u),t.beginPath(),t.arc(s,o,h,r+n.u,r,!0),d=0;d<l;++d)t.stroke();for(t.beginPath(),t.arc(s,o,c,r,r+n.u),d=0;d<l;++d)t.stroke()}(t,e,h),h&&de(t,e,o),ge(t,e,i,s,o,r),t.stroke())}Object.defineProperties(le,{defaults:{enumerable:he,value:n.Eb},instances:{enumerable:he,value:oe},overrides:{enumerable:he,value:n.v},registry:{enumerable:he,value:K},version:{enumerable:he,value:"3.9.1"},getChart:{enumerable:he,value:re},register:{enumerable:he,value:function(){K.add(...arguments),ce()}},unregister:{enumerable:he,value:function(){K.remove(...arguments),ce()}}});class pe extends z{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.getProps(["x","y"],i),{angle:o,distance:r}=Object(n.D)(s,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,f=Object(n.Wb)(d,l-a)>=n.u||Object(n.Qb)(o,a,l),g=Object(n.mb)(r,c+u,h+u);return f&&g}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:l}=this.options,c=(n+s)/2,h=(o+r+l+a)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>n.u?Math.floor(i/n.u):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=n.q&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const l=function(t,e,i,s,o){const{fullCircles:r,startAngle:a,circumference:l}=e;let c=e.endAngle;if(r){ge(t,e,i,s,a+n.u,o);for(let e=0;e<r;++e)t.fill();isNaN(l)||(c=a+l%n.u,l%n.u===0&&(c+=n.u))}return ge(t,e,i,s,c,o),t.fill(),c}(t,this,a,o,r);be(t,this,a,o,l,r),t.restore()}}function me(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;t.lineCap=Object(n.Wb)(i.borderCapStyle,e.borderCapStyle),t.setLineDash(Object(n.Wb)(i.borderDash,e.borderDash)),t.lineDashOffset=Object(n.Wb)(i.borderDashOffset,e.borderDashOffset),t.lineJoin=Object(n.Wb)(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Object(n.Wb)(i.borderWidth,e.borderWidth),t.strokeStyle=Object(n.Wb)(i.borderColor,e.borderColor)}function xe(t,e,i){t.lineTo(i.x,i.y)}function _e(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:n,start:l,loop:e.loop,ilen:c<l&&!h?n+c-l:c-l}}function ye(t,e,i,s){const{points:o,options:r}=e,{count:a,start:l,loop:c,ilen:h}=_e(o,i,s),d=function(t){return t.stepped?n.ub:t.tension||"monotone"===t.cubicInterpolationMode?n.vb:xe}(r);let u,f,g,{move:b=!0,reverse:p}=s||{};for(u=0;u<=h;++u)f=o[(l+(p?h-u:u))%a],f.skip||(b?(t.moveTo(f.x,f.y),b=!1):d(t,g,f,p,r.stepped),g=f);return c&&(f=o[(l+(p?h:0))%a],d(t,g,f,p,r.stepped)),!!c}function ve(t,e,i,n){const s=e.points,{count:o,start:r,ilen:a}=_e(s,i,n),{move:l=!0,reverse:c}=n||{};let h,d,u,f,g,b,p=0,m=0;const x=t=>(r+(c?a-t:t))%o,_=()=>{f!==g&&(t.lineTo(p,g),t.lineTo(p,f),t.lineTo(p,b))};for(l&&(d=s[x(0)],t.moveTo(d.x,d.y)),h=0;h<=a;++h){if(d=s[x(h)],d.skip)continue;const e=d.x,i=d.y,n=0|e;n===u?(i<f?f=i:i>g&&(g=i),p=(m*p+e)/++m):(_(),t.lineTo(e,i),u=n,m=0,f=g=i),b=i}_()}function Oe(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i?ve:ye}pe.id="arc",pe.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},pe.defaultRoutes={backgroundColor:"backgroundColor"};const je="function"===typeof Path2D;
2function we(t,e,i,n){je&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),me(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:o}=e,r=Oe(e);for(const a of s)me(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class Me extends z{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Object(n.ob)(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Object(n.pb)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],o=this.points,r=Object(n.qb)(this,{property:e,start:s,end:s});if(!r.length)return;const a=[],l=function(t){return t.stepped?n.rb:t.tension||"monotone"===t.cubicInterpolationMode?n.sb:n.tb}(i);let c,h;for(c=0,h=r.length;c<h;++c){const{start:n,end:h}=r[c],d=o[n],u=o[h];if(d===u){a.push(d);continue}const f=l(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return Oe(this)(t,this,e,i)}path(t,e,i){const n=this.segments,s=Oe(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const r of n)o&=s(t,this,r,{start:e,end:e+i-1});return!!o}draw(t,e,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),we(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function ke(t,e,i,n){const s=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<s.radius+s.hitRadius}Me.id="line",Me.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Me.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Me.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Se extends z{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return ke(this,t,"x",e)}inYRange(t,e){return ke(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!Object(n.a)(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Object(n.wb)(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Pe(t,e){const{x:i,y:n,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,d;return t.horizontal?(d=r/2,a=Math.min(i,s),l=Math.max(i,s),c=n-d,h=n+d):(d=o/2,a=i-d,l=i+d,c=Math.min(n,s),h=Math.max(n,s)),{left:a,top:c,right:l,bottom:h}}function De(t,e,i,s){return t?0:Object(n.f)(e,i,s)}function Ce(t){const e=Pe(t),i=e.right-e.left,s=e.bottom-e.top,o=function(t,e,i){const s=t.options.borderWidth,o=t.borderSkipped,r=Object(n.yb)(s);return{t:De(o.top,r.top,0,i),r:De(o.right,r.right,0,e),b:De(o.bottom,r.bottom,0,i),l:De(o.left,r.left,0,e)}}(t,i/2,s/2),r=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=Object(n.zb)(o),a=Math.min(e,i),l=t.borderSkipped,c=s||Object(n.Jb)(o);return{topLeft:De(!c||l.top||l.left,r.topLeft,0,a),topRight:De(!c||l.top||l.right,r.topRight,0,a),bottomLeft:De(!c||l.bottom||l.left,r.bottomLeft,0,a),bottomRight:De(!c||l.bottom||l.right,r.bottomRight,0,a)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:i-o.l-o.r,h:s-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function Ae(t,e,i,s){const o=null===e,r=null===i,a=t&&!(o&&r)&&Pe(t,s);return a&&(o||Object(n.mb)(e,a.left,a.right))&&(r||Object(n.mb)(i,a.top,a.bottom))}function Ee(t,e){t.rect(e.x,e.y,e.w,e.h)}function Le(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=t.x!==i.x?-e:0,s=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-n,r=(t.y+t.h!==i.y+i.h?e:0)-s;return{x:t.x+n,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}Se.id="point",Se.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Se.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Te extends z{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmou
2nt=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:s}}=this,{inner:o,outer:r}=Ce(this),a=(l=r.radius).topLeft||l.topRight||l.bottomLeft||l.bottomRight?n.xb:Ee;var l;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,Le(r,e,o)),t.clip(),a(t,Le(o,-e,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,Le(o,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return Ae(this,t,e,i)}inXRange(t,e){return Ae(this,t,null,e)}inYRange(t,e){return Ae(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+n)/2:e,y:s?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Te.id="bar",Te.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Te.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Re=Object.freeze({__proto__:null,ArcElement:pe,LineElement:Me,PointElement:Se,BarElement:Te});function Ie(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function ze(t){t.data.datasets.forEach((t=>{Ie(t)}))}var Fe={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void ze(t);const s=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:r,indexAxis:a}=e,l=t.getDatasetMeta(o),c=r||e.data;if("y"===Object(n.C)([a,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const h=t.scales[l.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let s,o=0;const{iScale:r}=t,{min:a,max:l,minDefined:c,maxDefined:h}=r.getUserBounds();return c&&(o=Object(n.f)(Object(n.A)(e,r.axis,a).lo,0,i-1)),s=h?Object(n.f)(Object(n.A)(e,r.axis,l).hi+1,o,i)-o:i-o,{start:o,count:s}}(l,c);if(u<=(i.threshold||4*s))return void Ie(e);let f;switch(Object(n.Lb)(r)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":f=function(t,e,i,n,s){const o=s.samples||n;if(o>=i)return t.slice(e,e+i);const r=[],a=(i-2)/(o-2);let l=0;const c=e+i-1;let h,d,u,f,g,b=e;for(r[l++]=t[b],h=0;h<o-2;h++){let n,s=0,o=0;const c=Math.floor((h+1)*a)+1+e,p=Math.min(Math.floor((h+2)*a)+1,i)+e,m=p-c;for(n=c;n<p;n++)s+=t[n].x,o+=t[n].y;s/=m,o/=m;const x=Math.floor(h*a)+1+e,_=Math.min(Math.floor((h+1)*a)+1,i)+e,{x:y,y:v}=t[b];for(u=f=-1,n=x;n<_;n++)f=.5*Math.abs((y-s)*(t[n].y-v)-(y-t[n].x)*(o-v)),f>u&&(u=f,d=t[n],g=n);r[l++]=d,b=g}return r[l++]=t[c],r}(c,d,u,s,i);break;case"min-max":f=function(t,e,i,s){let o,r,a,l,c,h,d,u,f,g,b=0,p=0;const m=[],x=e+i-1,_=t[e].x,y=t[x].x-_;for(o=e;o<e+i;++o){r=t[o],a=(r.x-_)/y*s,l=r.y;const e=0|a;if(e===c)l<f?(f=l,h=o):l>g&&(g=l,d=o),b=(p*b+r.x)/++p;else{const i=o-1;if(!Object(n.Lb)(h)&&!Object(n.Lb)(d)){const e=Math.min(h,d),n=Math.max(h,d);e!==u&&e!==i&&m.push({...t[e],x:b}),n!==u&&n!==i&&m.push({...t[n],x:b})}o>0&&i!==u&&m.push(t[i]),m.push(r),c=e,p=0,f=g=l,h=d=u=o}}return m}(c,d,u,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=f}))},destroy(t){ze(t)}};function We(t,e,i,s){if(s)return;let o=e[t],r=i[t];return"angle"===t&&(o=Object(n.Bb)(o),r=Object(n.Bb)(r)),{property:t,start:o,end:r}}function Ve(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Be(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function Ne(t,e){let i=[],s=!1;return Object(n.Cb)(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,o=[];return e.segments.forEach((t=>{let{start:e,end:r}=t;r=Ve(e,r,s);const a=s[e],l=s[r];null!==n?(o.push({x:a.x,y:n}),o.push({x:l.x,y:n})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:l.y}))})),o}(t,e),i.length?new Me({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function He(t){return t&&!1!==t.fill}function $e(t,e,i){let s=t[e].fill;const o=[e];let r;if(!i)return s;for(;!1!==s&&-1===o.indexOf(s);){if(!Object(n.Hb)(s))return s;if(r=t[s],!r)return!1;if(r.visible)return s;o.push(s),s=r.fill}return!1}function Ye(t,e,i){const s=function(t){const e=t.options,i=e.fill;
vendor: 9,552 bytes, line 2
2let s=Object(n.Wb)(i&&i.target,i);void 0===s&&(s=!!e.backgroundColor);if(!1===s||null===s)return!1;if(!0===s)return"origin";return s}(t);if(Object(n.Jb)(s))return!isNaN(s.value)&&s;let o=parseFloat(s);return Object(n.Hb)(o)&&Math.floor(o)===o?function(t,e,i,n){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=n)return!1;return i}(s[0],e,o,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Ue(t,e,i){const n=[];for(let s=0;s<i.length;s++){const o=i[s],{first:r,last:a,point:l}=Xe(o,e,"x");if(!(!l||r&&a))if(r)n.unshift(l);else if(t.push(l),!a)break}t.push(...n)}function Xe(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const o=s[i],r=t.segments,a=t.points;let l=!1,c=!1;for(let h=0;h<r.length;h++){const t=r[h],e=a[t.start][i],s=a[t.end][i];if(Object(n.mb)(o,e,s)){l=o===e,c=o===s;break}}return{first:l,last:c,point:s}}class Je{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:o,radius:r}=this;return e=e||{start:0,end:n.u},t.arc(s,o,r,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,s=t.angle;return{x:e+Math.cos(s)*n,y:i+Math.sin(s)*n,angle:s}}}function qe(t){const{chart:e,fill:i,line:s}=t;if(Object(n.Hb)(i))return function(t,e){const i=t.getDatasetMeta(e),n=i&&t.isDatasetVisible(e);return n?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:n}=t,s=[],o=n.segments,r=n.points,a=function(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let s=0;s<n.length;s++){const t=n[s];if(t.index===e)break;t.hidden||i.unshift(t.dataset)}return i}(e,i);a.push(Ne({x:null,y:e.bottom},n));for(let l=0;l<o.length;l++){const t=o[l];for(let e=t.start;e<=t.end;e++)Ue(s,r[e],a)}return new Me({points:s,options:{}})}(t);if("shape"===i)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,s=e.options,o=e.getLabels().length,r=s.reverse?e.max:e.min,a=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:Object(n.Jb)(t)?t.value:e.getBaseValue(),s}(i,e,r),l=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,r);return new Je({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let n=0;n<o;++n)l.push(e.getPointPositionForValue(n,a));return l}(t);return function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:Object(n.Jb)(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(Object(n.Hb)(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return o instanceof Je?o:Ne(o,s)}function Ke(t,e,i){const s=qe(e),{line:o,scale:r,axis:a}=e,l=o.options,c=l.fill,h=l.backgroundColor,{above:d=h,below:u=h}=c||{};s&&o.points.length&&(Object(n.m)(t,i),function(t,e){const{line:i,target:n,above:s,below:o,area:r,scale:a}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==s&&(Ge(t,n,r.top),Ze(t,{line:i,target:n,color:s,scale:a,property:l}),t.restore(),t.save(),Ge(t,n,r.bottom));Ze(t,{line:i,target:n,color:o,scale:a,property:l}),t.restore()}(t,{line:o,target:s,above:d,below:u,area:i,scale:r,axis:a}),Object(n.o)(t))}function Ge(t,e,i){const{segments:n,points:s}=e;let o=!0,r=!1;t.beginPath();for(const a of n){const{start:n,end:l}=a,c=s[n],h=s[Ve(n,l,s)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(c.x,i),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,a,{move:r}),r?t.closePath():t.lineTo(h.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Ze(t,e){const{line:i,target:s,property:o,color:r,scale:a}=e,l=function(t,e,i){const s=t.segments,o=t.points,r=e.points,a=[];for(const l of s){let{start:t,end:s}=l;s=Ve(t,s,o);const c=We(i,o[t],o[s],l.loop);if(!e.segments){a.push({source:l,target:c,start:o[t],end:o[s]});continue}const h=Object(n.qb)(e,c);for(const e of h){const t=We(i,r[e.start],r[e.end],e.loop),s=Object(n.Ab)(l,o,t);for(const n of s)a.push({source:n,target:e,start:{[i]:Be(c,t,"start",Math.max)},end:{[i]:Be(c,t,"end",Math.min)}})}}return a}(i,s,o);for(const{source:n,target:c,start:h,end:d}of l){const{style:{backgroundColor:e=r}={}}=n,l=!0!==s;t.save(),t.fillStyle=e,Qe(t,a,l&&We(o,h,d)),t.beginPath();const u=!!i.pathSegment(t,n);let f;if(l){u?t.closePath():ti(t,s,d,o);const e=!!s.pathSegment(t,c,{move:u,reverse:!0});f=u&&e,f||ti(t,s,h,o)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function Qe(t,e,i){const{top:n,bottom:s}=e.chart.chartArea,{property:o,start:r,end:a}=i||{};"x"===o&&(t.beginPath(),t.rect(r,n,a-r,s-n),t.clip())}function ti(t,e,i,n){const s=e.interpolate(i,n);s&&t.lineTo(s.x,s.y)}var ei={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,s=[];let o,r,a,l;for(r=0;r<n;++r)o=t.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof Me&&(l={visible:t.isDatasetVisible(r),index:r,fill:Ye(a,r,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,s.push(l);for(r=0;r<n;++r)l=s[r],l&&!1!==l.fill&&(l.fill=$e(s,r,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,s=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let r=s.length-1;r>=0;--r){const e=s[r].$filler;e&&(e.line.updateControlPoints(o,e.axis),n&&e.fill&&Ke(t.ctx,e,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let s=n.length-1;s>=0;--s){const e=n[s].$filler;He(e)&&Ke(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;He(n)&&"beforeDatasetDraw"===i.drawTime&&Ke(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ii=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class ni extends z{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=Object(n.d)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=Object(n.p)(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=ii(i,o);let c,h;e.font=s.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,o,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+r;let h=t;s.textAlign="left",s.textBaseline="middle";let d=-1,u=-c;return this.legendItems.forEach(((t,f)=>{const g=i+e/2+s.measureText(t.text).width;(0===f||l[l.length-1]+g+2*r>o)&&(h+=c,l[l.length-(f>0?0:1)]=0,u+=c,d++),a[f]={left:0,top:u,row:d,width:g,height:n},l[l.length-1]+=g+r})),h}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let h=r,d=0,u=0,f=0,g=0;return this.legendItems.forEach(((t,o)=>{const b=i+e/2+s.measureText(t.text).width;o>0&&u+n+2*r>c&&(h+=d+r,l.push({width:d,height:u}),f+=d+r,g++,d=u=0),a[o]={left:f,top:u,col:g,width:b,height:n},d=Math.max(d,b),u+=n+r})),h+=d,l.push({width:d,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:o}}=this,r=Object(n.N)(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=Object(n.t)(i,this.left+s,this.right-this.lineWidths[o]);for(const l of e)o!==l.row&&(o=l.row,a=Object(n.t)(i,this.left+s,this.right-this.lineWidths[o])),l.top+=this.top+t+s,l.left=r.leftForLtr(r.x(a),l.width),a+=l.width+s}else{let o=0,a=Object(n.t)(i,this.top+t+s,this.bottom-this.columnSizes[o].height);for(const l of e)l.col!==o&&(o=l.col,a=Object(n.t)(i,this.top+t+s,this.bottom-this.columnSizes[o].height)),l.top=a,l.left+=this.left+s,l.left=r.leftForLtr(r.x(l.left),l.width),a+=l.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Object(n.m)(t,this),this._draw(),Object(n.o)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=n.Eb.color,l=Object(n.N)(t.rtl,this.left,this.width),c=Object(n.p)(r.font),{color:h,padding:d}=r,u=c.size,f=u/2;let g;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:b,boxHeight:p,itemHeight:m}=ii(r,u),x=this.isHorizontal(),_=this._computeTitleHeight();g=x?{x:Object(n.t)(o,this.left+d,this.right-i[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:Object(n.t)(o,this.top+_+d,this.bottom-e[0].height),line:0},Object(n.O)(this.ctx,t.textDirection);const y=m+d;
2this.legendItems.forEach(((v,O)=>{s.strokeStyle=v.fontColor||h,s.fillStyle=v.fontColor||h;const j=s.measureText(v.text).width,w=l.textAlign(v.textAlign||(v.textAlign=r.textAlign)),M=b+f+j;let k=g.x,S=g.y;l.setWidth(this.width),x?O>0&&k+M+d>this.right&&(S=g.y+=y,g.line++,k=g.x=Object(n.t)(o,this.left+d,this.right-i[g.line])):O>0&&S+y>this.bottom&&(k=g.x=k+e[g.line].width+d,g.line++,S=g.y=Object(n.t)(o,this.top+_+d,this.bottom-e[g.line].height));!function(t,e,i){if(isNaN(b)||b<=0||isNaN(p)||p<0)return;s.save();const o=Object(n.Wb)(i.lineWidth,1);if(s.fillStyle=Object(n.Wb)(i.fillStyle,a),s.lineCap=Object(n.Wb)(i.lineCap,"butt"),s.lineDashOffset=Object(n.Wb)(i.lineDashOffset,0),s.lineJoin=Object(n.Wb)(i.lineJoin,"miter"),s.lineWidth=o,s.strokeStyle=Object(n.Wb)(i.strokeStyle,a),s.setLineDash(Object(n.Wb)(i.lineDash,[])),r.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:o},c=l.xPlus(t,b/2),h=e+f;Object(n.R)(s,a,c,h,r.pointStyleWidth&&b)}else{const r=e+Math.max((u-p)/2,0),a=l.leftForLtr(t,b),c=Object(n.zb)(i.borderRadius);s.beginPath(),Object.values(c).some((t=>0!==t))?Object(n.xb)(s,{x:a,y:r,w:b,h:p,radius:c}):s.rect(a,r,b,p),s.fill(),0!==o&&s.stroke()}s.restore()}(l.x(k),S,v),k=Object(n.P)(w,k+b+f,x?k+M:this.right,t.rtl),function(t,e,i){Object(n.n)(s,i.text,t,e+m/2,c,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})}(l.x(k),S,v),x?g.x+=M+d:g.y+=y})),Object(n.Q)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Object(n.p)(e.font),s=Object(n.l)(e.padding);if(!e.display)return;const o=Object(n.N)(t.rtl,this.left,this.width),r=this.ctx,a=e.position,l=i.size/2,c=s.top+l;let h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=Object(n.t)(t.align,d,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=c+Object(n.t)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=Object(n.t)(a,d,d+u);r.textAlign=o.textAlign(Object(n.s)(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,Object(n.n)(r,e.text,f,h,i)}_computeTitleHeight(){const t=this.options.title,e=Object(n.p)(t.font),i=Object(n.l)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,o;if(Object(n.mb)(t,this.left,this.right)&&Object(n.mb)(e,this.top,this.bottom))for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(s=o[i],Object(n.mb)(t,s.left,s.left+s.width)&&Object(n.mb)(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,a=(o=i,null!==(s=r)&&null!==o&&s.datasetIndex===o.datasetIndex&&s.index===o.index);r&&!a&&Object(n.d)(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!a&&Object(n.d)(e.onHover,[t,i,this],this)}else i&&Object(n.d)(e.onClick,[t,i,this],this);var s,o}}var si={id:"legend",_element:ni,start(t,e,i){const n=t.legend=new ni({ctx:t.ctx,options:i,chart:t});vt.configure(t,n,i),vt.addBox(t,n)},stop(t){vt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;vt.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),e.hidden=!0):(s.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:o,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(i?0:void 0),l=Object(n.l)(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}}
2,descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class oi extends z{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=Object(n.Cb)(i.text)?i.text.length:1;this._padding=Object(n.l)(i.padding);const o=s*Object(n.p)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:o,options:r}=this,a=r.align;let l,c,h,d=0;return this.isHorizontal()?(c=Object(n.t)(a,i,o),h=e+t,l=o-i):("left"===r.position?(c=i+t,h=Object(n.t)(a,s,e),d=-.5*n.q):(c=o-t,h=Object(n.t)(a,e,s),d=.5*n.q),l=s-e),{titleX:c,titleY:h,maxWidth:l,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Object(n.p)(e.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:r,maxWidth:a,rotation:l}=this._drawArgs(s);Object(n.n)(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:l,textAlign:Object(n.s)(e.align),textBaseline:"middle",translation:[o,r]})}}var ri={id:"title",_element:oi,start(t,e,i){!function(t,e){const i=new oi({ctx:t.ctx,options:e,chart:t});vt.configure(t,i,e),vt.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;vt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;vt.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ai=new WeakMap;var li={id:"subtitle",start(t,e,i){const n=new oi({ctx:t.ctx,options:i,chart:t});vt.configure(t,n,i),vt.addBox(t,n),ai.set(t,n)},stop(t){vt.removeBox(t,ai.get(t)),ai.delete(t)},beforeUpdate(t,e,i){const n=ai.get(t);vt.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ci={average(t){if(!t.length)return!1;let e,i,n=0,s=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n+=t.x,s+=t.y,++o}}return{x:n/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,s,o,r=e.x,a=e.y,l=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=s.getCenterPoint(),i=Object(n.T)(e,t);i<l&&(l=i,o=s)}}if(o){const t=o.tooltipPosition();r=t.x,a=t.y}return{x:r,y:a}}};function hi(t,e){return e&&(Object(n.Cb)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function di(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ui(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function fi(t,e){const i=t.chart.ctx,{body:s,footer:o,title:r}=t,{boxWidth:a,boxHeight:l}=e,c=Object(n.p)(e.bodyFont),h=Object(n.p)(e.titleFont),d=Object(n.p)(e.footerFont),u=r.length,f=o.length,g=s.length,b=Object(n.l)(e.padding);let p=b.height,m=0,x=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){p+=g*(e.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(x-g)*c.lineHeight+(x-1)*e.bodySpacing}f&&(p+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let _=0;const y=function(t){m=Math.max(m,i.measureText(t).width+_)};return i.save(),i.font=h.string,Object(n.r)(t.title,y),i.font=c.string,Object(n.r)(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,Object(n.r)(s,(t=>{Object(n.r)(t.before,y),Object(n.r)(t.lines,y),Object(n.r)(t.after,y)}
2)),_=0,i.font=d.string,Object(n.r)(t.footer,y),i.restore(),m+=b.width,{width:m,height:p}}function gi(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),function(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(c,t,e,i)&&(c="center"),c}function bi(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||gi(t,e,i,n),yAlign:n}}function pi(t,e,i,s){const{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:l,yAlign:c}=i,h=o+r,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:g}=Object(n.zb)(a);let b=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,l);const p=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,c,h);return"center"===c?"left"===l?b+=h:"right"===l&&(b-=h):"left"===l?b-=Math.max(d,f)+o:"right"===l&&(b+=Math.max(u,g)+o),{x:Object(n.f)(b,0,s.width-e.width),y:Object(n.f)(p,0,s.height-e.height)}}function mi(t,e,i){const s=Object(n.l)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function xi(t){return hi([],di(t))}function _i(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class yi extends z{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||t._chart,this._chart=this.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(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,s=new c(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,Object(n.Ib)(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),s=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let r=[];return r=hi(r,di(n)),r=hi(r,di(s)),r=hi(r,di(o)),r}getBeforeBody(t,e){return xi(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return Object(n.r)(t,(t=>{const e={before:[],lines:[],after:[]},n=_i(i,t);hi(e.before,di(n.beforeLabel.call(this,t))),hi(e.lines,n.label.call(this,t)),hi(e.after,di(n.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return xi(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,n=i.beforeFooter.apply(this,[t]),s=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let r=[];return r=hi(r,di(n)),r=hi(r,di(s)),r=hi(r,di(o)),r}_createItems(t){const e=this._active,i=this.chart.data,s=[],o=[],r=[];let a,l,c=[];for(a=0,l=e.length;a<l;++a)c.push(ui(this.chart,e[a]));return t.filter&&(c=c.filter(((e,n,s)=>t.filter(e,n,s,i)))),t.itemSort&&(c=c.sort(((e,n)=>t.itemSort(e,n,i)))),Object(n.r)(c,(e=>{const i=_i(t.callbacks,e);s.push(i.labelColor.call(this,e)),o.push(i.labelPointStyle.call(this,e)),r.push(i.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=c,c}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=ci[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=fi(this,i),r=Object.assign({},t,e),a=bi(this.chart,i,r),l=pi(i,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0}
2);this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=Object(n.zb)(a),{x:u,y:f}=t,{width:g,height:b}=e;let p,m,x,_,y,v;return"center"===o?(y=f+b/2,"left"===s?(p=u,m=p-r,_=y+r,v=y-r):(p=u+g,m=p+r,_=y-r,v=y+r),x=p):(m="left"===s?u+Math.max(l,h)+r:"right"===s?u+g-Math.max(c,d)-r:this.caretX,"top"===o?(_=f,y=_-r,p=m-r,x=m+r):(_=f+b,y=_+r,p=m+r,x=m-r),v=_),{x1:p,x2:m,x3:x,y1:_,y2:y,y3:v}}drawTitle(t,e,i){const s=this.title,o=s.length;let r,a,l;if(o){const c=Object(n.N)(i.rtl,this.x,this.width);for(t.x=mi(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",r=Object(n.p)(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,l=0;l<o;++l)e.fillText(s[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,o){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c,boxPadding:h}=o,d=Object(n.p)(o.bodyFont),u=mi(this,"left",o),f=s.x(u),g=l<d.lineHeight?(d.lineHeight-l)/2:0,b=e.y+g;if(o.usePointStyle){const e={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=s.leftForLtr(f,c)+c/2,h=b+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Object(n.wb)(t,e,i,h),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Object(n.wb)(t,e,i,h)}else{t.lineWidth=Object(n.Jb)(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=s.leftForLtr(f,c-h),i=s.leftForLtr(s.xPlus(f,1),c-h-2),a=Object(n.zb)(r.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Object(n.xb)(t,{x:e,y:b,w:c,h:l,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Object(n.xb)(t,{x:i,y:b+1,w:c-2,h:l-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,b,c,l),t.strokeRect(e,b,c,l),t.fillStyle=r.backgroundColor,t.fillRect(i,b+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=i,d=Object(n.p)(i.bodyFont);let u=d.lineHeight,f=0;const g=Object(n.N)(i.rtl,this.x,this.width),b=function(i){e.fillText(i,g.x(t.x+f),t.y+u/2),t.y+=u+o},p=g.textAlign(r);let m,x,_,y,v,O,j;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=mi(this,p,i),e.fillStyle=i.bodyColor,Object(n.r)(this.beforeBody,b),f=a&&"right"!==p?"center"===r?c/2+h:c+2+h:0,y=0,O=s.length;y<O;++y){for(m=s[y],x=this.labelTextColors[y],e.fillStyle=x,Object(n.r)(m.before,b),_=m.lines,a&&_.length&&(this._drawColorBox(e,t,y,g,i),u=Math.max(d.lineHeight,l)),v=0,j=_.length;v<j;++v)b(_[v]),u=d.lineHeight;Object(n.r)(m.after,b)}f=0,u=d.lineHeight,Object(n.r)(this.afterBody,b),t.y-=o}drawFooter(t,e,i){const s=this.footer,o=s.length;let r,a;if(o){const l=Object(n.N)(i.rtl,this.x,this.width);for(t.x=mi(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=l.textAlign(i.footerAlign),e.textBaseline="middle",r=Object(n.p)(i.footerFont),e.fillStyle=i.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(s[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=i,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:g}=Object(n.zb)(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+d,l),"top"===r&&this.drawCaret(t,e,i,s),e.lineTo(a+c-u,l),e.quadraticCurveTo(a+c,l,a+c,l+u),"center"===r&&"right"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+c,l+h-g),e.quadraticCurveTo(a+c,l+h,a+c-g,l+h),"bottom"===r&&this.drawCaret(t,e,i,s),e.lineTo(a+f,l+h),e.quadraticCurveTo(a,l+h,a,l+h-f),"center"===r&&"left"===o&&this.drawCaret(t,e,i,s),e.lineTo(a,l
2+d),e.quadraticCurveTo(a,l,a+d,l),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=ci[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=fi(this,t),r=Object.assign({},i,this._size),a=bi(e,t,r),l=pi(t,r,a,e);n._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=Object(n.l)(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,e),Object(n.O)(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Object(n.Q)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((t=>{let{datasetIndex:e,index:i}=t;const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[i],index:i}})),o=!Object(n.kb)(i,s),r=this._positionChanged(s,e);(o||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,i),a=this._positionChanged(r,t),l=e||!Object(n.kb)(r,o)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=ci[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}yi.positioners=ci;var vi={id:"tooltip",_element:yi,positioners:ci,afterInit(t,e,i){i&&(t.tooltip=new yi({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:n.S,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:n.S,beforeBody:n.S,beforeLabel:n.S,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return Object(n.Lb)(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:n.S,afterBody:n.S,beforeFooter:n.S,footer:n.S,afterFooter:n.S}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Oi=Object.freeze({__proto__:null,Decimation:Fe,Filler:ei,Legend:si,SubTitle:li,Title:ri,Tooltip:vi});
2function ji(t,e,i,n){const s=t.indexOf(e);if(-1===s)return((t,e,i,n)=>("string"===typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n);return s!==t.lastIndexOf(e)?i:s}class wi extends J{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Object(n.Lb)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:Object(n.f)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:ji(i,t,Object(n.Wb)(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)n.push({value:o});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!==typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Mi(t,e,i){let{horizontal:s,minRotation:o}=i;const r=Object(n.Ub)(o),a=(s?Math.sin(r):Math.cos(r))||.001,l=.75*e*(""+t).length;return Math.min(e/a,l)}wi.id="category",wi.defaults={ticks:{callback:wi.prototype.getLabelForValue}};class ki extends J{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Object(n.Lb)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:o}=this;const r=t=>s=e?s:t,a=t=>o=i?o:t;if(t){const t=Object(n.Tb)(s),e=Object(n.Tb)(o);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(s===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||r(s-e)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=t,f=o||1,g=h-1,{min:b,max:p}=e,m=!Object(n.Lb)(r),x=!Object(n.Lb)(a),_=!Object(n.Lb)(c),y=(p-b)/(d+1);let v,O,j,w,M=Object(n.V)((p-b)/g/f)*f;if(M<1e-14&&!m&&!x)return[{value:b},{value:p}];w=Math.ceil(p/M)-Math.floor(b/M),w>g&&(M=Object(n.V)(w*M/g/f)*f),Object(n.Lb)(l)||(v=Math.pow(10,l),M=Math.ceil(M*v)/v),"ticks"===s?(O=Math.floor(b/M)*M,j=Math.ceil(p/M)*M):(O=b,j=p),m&&x&&o&&Object(n.W)((a-r)/o,M/1e3)?(w=Math.round(Math.min((a-r)/M,h)),M=(a-r)/w,O=r,j=a):_?(O=m?r:O,j=x?a:j,w=c-1,M=(j-O)/w):(w=(j-O)/M,w=Object(n.X)(w,Math.round(w),M/1e3)?Math.round(w):Math.ceil(w));const k=Math.max(Object(n.Y)(M),Object(n.Y)(O));v=Math.pow(10,Object(n.Lb)(l)?k:l),O=Math.round(O*v)/v,j=Math.round(j*v)/v;let S=0;for(m&&(u&&O!==r?(i.push({value:r}),O<r&&S++,Object(n.X)(Math.round((O+S*M)*v)/v,r,Mi(r,y,t))&&S++):O<r&&S++);S<w;++S)i.push({value:Math.round((O+S*M)*v)/v});return x&&u&&j!==a?i.length&&Object(n.X)(i[i.length-1].value,a,Mi(a,y,t))?i[i.length-1].value=a:i.push({value:a}):x&&j!==a||i.push({value:j}),i}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Object(n.U)(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Object(n.Pb)(t,this.chart.options.locale,this.options.ticks.format)}}class Si extends ki{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Object(n.Hb)(t)?t:0,this.max=Object(n.Hb)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=Object(n.Ub)(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Pi(t){return 1===t/Math.pow(10,Math.floor(Object(n.ac)(t)))}Si.id="linear",Si.defaults={ticks:{callback:W.formatters.numeric}};class Di extends J{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=ki.prototype.parse.apply(this,[t,e]);if(0!==i)return Object(n.Hb)(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Object(n.Hb)(t)?Math.max(0,t):null,this.max=Object(n.Hb)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const o=e=>i=t?i:e,r=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(Object(n.ac)(t))+e);i===s&&(i<=0?(o(1),r(10)):(o(a(i,-1)),r(a(s,1)))),i<=0&&o(a(s,-1)),s<=0&&r(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&o(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(Object(n.ac)(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),o=[];let r=Object(n.c)(t.min,Math.pow(10,Math.floor(Object(n.ac)(e.min)))),a=Math.floor(Object(n.ac)(r)),l=Math.floor(r/Math.pow(10,a)),c=a<0?Math.pow(10,Math.abs(a)
2):1;do{o.push({value:r,major:Pi(r)}),++l,10===l&&(l=1,++a,c=a>=0?1:c),r=Math.round(l*Math.pow(10,a)*c)/c}while(a<i||a===i&&l<s);const h=Object(n.c)(t.max,r);return o.push({value:h,major:Pi(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Object(n.U)(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Object(n.Pb)(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Object(n.ac)(t),this._valueRange=Object(n.ac)(this.max)-Object(n.ac)(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Object(n.ac)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Ci(t){const e=t.ticks;if(e.display&&t.display){const t=Object(n.l)(e.backdropPadding);return Object(n.Wb)(e.font&&e.font.size,n.Eb.font.size)+t.height}return 0}function Ai(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:t<n||t>s?{start:e-i,end:e}:{start:e,end:e+i}}function Ei(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?n.q/r:0;for(let u=0;u<r;u++){const r=a.setContext(t.getPointLabelContext(u));o[u]=r.padding;const f=t.getPointPosition(u,t.drawingArea+o[u],l),g=Object(n.p)(r.font),b=(c=t.ctx,h=g,d=t._pointLabels[u],d=Object(n.Cb)(d)?d:[d],{w:Object(n.Z)(c,h.string,d),h:d.length*h.lineHeight});s[u]=b;const p=Object(n.Bb)(t.getIndexAngle(u)+l),m=Math.round(Object(n.g)(p));
2Li(i,e,p,Ai(m,f.x,b.w,0,180),Ai(m,f.y,b.h,90,270))}var c,h,d;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],o=t._pointLabels.length,r=t.options,a=Ci(r)/2,l=t.drawingArea,c=r.pointLabels.centerPointLabels?n.q/o:0;for(let h=0;h<o;h++){const o=t.getPointPosition(h,l+a+i[h],c),r=Math.round(Object(n.g)(Object(n.Bb)(o.angle+n.i))),d=e[h],u=Ii(o.y,d.h,r),f=Ti(r),g=Ri(o.x,d.w,f);s.push({x:o.x,y:u,textAlign:f,left:g,top:u,right:g+d.w,bottom:u+d.h})}return s}(t,s,o)}function Li(t,e,i,n,s){const o=Math.abs(Math.sin(i)),r=Math.abs(Math.cos(i));let a=0,l=0;n.start<e.l?(a=(e.l-n.start)/o,t.l=Math.min(t.l,e.l-a)):n.end>e.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(l=(e.t-s.start)/r,t.t=Math.min(t.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function Ti(t){return 0===t||180===t?"center":t<180?"left":"right"}function Ri(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Ii(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function zi(t,e,i,s){const{ctx:o}=t;if(i)o.arc(t.xCenter,t.yCenter,e,0,n.u);else{let i=t.getPointPosition(0,e);o.moveTo(i.x,i.y);for(let n=1;n<s;n++)i=t.getPointPosition(n,e),o.lineTo(i.x,i.y)}}Di.id="logarithmic",Di.defaults={ticks:{callback:W.formatters.logarithmic,major:{enabled:!0}}};class Fi extends ki{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Object(n.l)(Ci(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Object(n.Hb)(t)&&!isNaN(t)?t:0,this.max=Object(n.Hb)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ci(this.options))}generateTickLabels(t){ki.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=Object(n.d)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Ei(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){const e=n.u/(this._pointLabels.length||1),i=this.options.startAngle||0;return Object(n.Bb)(t*e+Object(n.Ub)(i))}getDistanceFromCenterForValue(t){if(Object(n.Lb)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Object(n.Lb)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return Object(n.Ib)(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s=this.getIndexAngle(t)-n.i+i;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:n,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),zi(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s}=e,o=this._pointLabels.length;let r,a,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let o=e-1;o>=0;o--){const e=s.setContext(t.getPointLabelContext(o)),r=Object(n.p)(e.font),{x:a,y:l,textAlign:c,left:h,top:d,right:u,bottom:f}=t._pointLabelItems[o],{backdropColor:g}=e;if(!Object(n.Lb)(g)){const t=Object(n.zb)(e.borderRadius),s=Object(n.l)(e.backdropPadding);
2i.fillStyle=g;const o=h-s.left,r=d-s.top,a=u-h+s.width,l=f-d+s.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),Object(n.xb)(i,{x:o,y:r,w:a,h:l,radius:t}),i.fill()):i.fillRect(o,r,a,l)}Object(n.n)(i,t._pointLabels[o],a,l+r.lineHeight/2,r,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,o),s.display&&this.ticks.forEach(((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,n){const s=t.ctx,o=e.circular,{color:r,lineWidth:a}=e;!o&&!n||!r||!a||i<0||(s.save(),s.strokeStyle=r,s.lineWidth=a,s.setLineDash(e.borderDash),s.lineDashOffset=e.borderDashOffset,s.beginPath(),zi(t,i,o,n),s.closePath(),s.stroke(),s.restore())}(this,s.setContext(this.getContext(e-1)),a,o)}})),i.display){for(t.save(),r=o-1;r>=0;r--){const n=i.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:o}=n;o&&s&&(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((s,a)=>{if(0===a&&!e.reverse)return;const l=i.setContext(this.getContext(a)),c=Object(n.p)(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),l.showLabelBackdrop){t.font=c.string,r=t.measureText(s.label).width,t.fillStyle=l.backdropColor;const e=Object(n.l)(l.backdropPadding);t.fillRect(-r/2-e.left,-o-c.size/2-e.top,r+e.width,c.size+e.height)}Object(n.n)(t,s.label,0,-o,c,{color:l.color})})),t.restore()}drawTitle(){}}Fi.id="radialLinear",Fi.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:W.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Fi.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Fi.descriptors={angleLines:{_fallback:"grid"}};const Wi={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}},Vi=Object.keys(Wi);function Bi(t,e){return t-e}function Ni(t,e){if(Object(n.Lb)(e))return null;const i=t._adapter,{parser:s,round:o,isoWeekday:r}=t._parseOpts;let a=e;return"function"===typeof s&&(a=s(a)),Object(n.Hb)(a)||(a="string"===typeof s?i.parse(a,s):i.parse(a)),null===a?null:(o&&(a="week"!==o||!Object(n.Yb)(r)&&!0!==r?i.startOf(a,o):i.startOf(a,"isoWeek",r)),+a)}function Hi(t,e,i,n){const s=Vi.length;for(let o=Vi.indexOf(t);o<s-1;++o){const t=Wi[Vi[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(s*t.size))<=n)return Vi[o]}return Vi[s-1]}function $i(t,e,i){if(i){if(i.length){const{lo:s,hi:o}=Object(n.bb)(i,e);t[i[s]>=e?i[s]:i[o]]=!0}}else t[e]=!0}function Yi(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,n.push({value:a,major:!1});return 0!==o&&i?function(t,e,i,n){const s=t._adapter,o=+s.startOf(e[0].value,n),r=e[e.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,n))l=i[a],l>=0&&(e[l].major=!0);return e}(t,n,s,i):n}class Ui extends J{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),s=this._adapter=new et._date(t.adapters.date);s.init(e),Object(n.eb)(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Ni(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(t){r||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}r&&a||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),s=Object(n.Hb)(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),o=Object(n.Hb)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=Object(n.ab)(s,o,r);return this._unit=e.unit||(i.autoSkip?Hi(e.minUnit,this.min,this.max,this._getLabelCapacity(o)
2):function(t,e,i,n,s){for(let o=Vi.length-1;o>=Vi.indexOf(i);o--){const i=Vi[o];if(Wi[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return Vi[i?Vi.indexOf(i):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Vi.indexOf(t)+1,i=Vi.length;e<i;++e)if(Wi[Vi[e]].common)return Vi[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&a.reverse(),Yi(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,i,s=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),o=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;s=Object(n.f)(s,0,r),o=Object(n.f)(o,0,r),this._offsets={start:s,end:o,factor:1/(s+1+o)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||Hi(o.minUnit,e,i,this._getLabelCapacity(e)),a=Object(n.Wb)(o.stepSize,1),l="week"===r&&o.isoWeekday,c=Object(n.Yb)(l)||!0===l,h={};let d,u,f=e;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":r),t.diff(i,e,r)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+r);const g="data"===s.ticks.source&&this.getDataTimestamps();for(d=f,u=0;d<i;d=+t.add(d,a,r),u++)$i(h,d,g);return d!==i&&"ticks"!==s.bounds&&1!==u||$i(h,d,g),Object.keys(h).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const o=this.options,r=o.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&r[a],h=l&&r[l],d=i[e],u=l&&h&&d&&d.major,f=this._adapter.format(t,s||(u?h:c)),g=o.ticks.callback;return g?Object(n.d)(g,[f,e,i],this):f}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=Object(n.Ub)(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,Yi(this,[t],this._majorUnit),n),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(Ni(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Object(n.B)(t.sort(Bi))}}function Xi(t,e,i){let s,o,r,a,l=0,c=t.length-1;i?(e>=t[l].pos&&e<=t[c].pos&&({lo:l,hi:c}=Object(n.A)(t,"pos",e)),({pos:s,time:r}=t[l]),({pos:o,time:a}=t[c])):(e>=t[l].time&&e<=t[c].time&&({lo:l,hi:c}=Object(n.A)(t,"time",e)),({time:s,pos:r}=t[l]),({time:o,pos:a}=t[c]));const h=o-s;return h?r+(a-r)*(e-s)/h:r}Ui.id="time",Ui.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Ji extends Ui{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Xi(e,this.min),this._tableRange=Xi(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,l,c;for(o=0,r=t.length;o<r;++o)l=t[o],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;o<r;++o)c=n[o+1],a=n[o-1],l=n[o],Math.round((c+a)/2)!==l&&s.push({time:l,pos:o/(r-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Xi(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Xi(this._table,i*this._tableRange+this._minPos,!0)}}Ji.id="timeseries",Ji.defaults=Ui.defaults;const qi=[Z,Re,Oi,Object.freeze({__proto__:null,CategoryScale:wi,LinearScale:Si,LogarithmicScale:Di,RadialLinearScale:Fi,TimeScale:Ui,TimeSeriesScale:Ji})]}}]);

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.