31 lines
264 KiB
JavaScript
31 lines
264 KiB
JavaScript
|
|
function Ot(){}var Hr=(function(){let s=0;return function(){return s++}})();function L(s){return s===null||typeof s>"u"}function W(s){if(Array.isArray&&Array.isArray(s))return!0;let t=Object.prototype.toString.call(s);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function P(s){return s!==null&&Object.prototype.toString.call(s)==="[object Object]"}var Y=s=>(typeof s=="number"||s instanceof Number)&&isFinite(+s);function lt(s,t){return Y(s)?s:t}function C(s,t){return typeof s>"u"?t:s}var $r=(s,t)=>typeof s=="string"&&s.endsWith("%")?parseFloat(s)/100:s/t,Yi=(s,t)=>typeof s=="string"&&s.endsWith("%")?parseFloat(s)/100*t:+s;function B(s,t,e){if(s&&typeof s.call=="function")return s.apply(e,t)}function z(s,t,e,i){let n,r,o;if(W(s))if(r=s.length,i)for(n=r-1;n>=0;n--)t.call(e,s[n],n);else for(n=0;n<r;n++)t.call(e,s[n],n);else if(P(s))for(o=Object.keys(s),r=o.length,n=0;n<r;n++)t.call(e,s[o[n]],o[n])}function os(s,t){let e,i,n,r;if(!s||!t||s.length!==t.length)return!1;for(e=0,i=s.length;e<i;++e)if(n=s[e],r=t[e],n.datasetIndex!==r.datasetIndex||n.index!==r.index)return!1;return!0}function Bs(s){if(W(s))return s.map(Bs);if(P(s)){let t=Object.create(null),e=Object.keys(s),i=e.length,n=0;for(;n<i;++n)t[e[n]]=Bs(s[e[n]]);return t}return s}function jr(s){return["__proto__","prototype","constructor"].indexOf(s)===-1}function lc(s,t,e,i){if(!jr(s))return;let n=t[s],r=e[s];P(n)&&P(r)?we(n,r,i):t[s]=Bs(r)}function we(s,t,e){let i=W(t)?t:[t],n=i.length;if(!P(s))return s;e=e||{};let r=e.merger||lc;for(let o=0;o<n;++o){if(t=i[o],!P(t))continue;let a=Object.keys(t);for(let l=0,c=a.length;l<c;++l)r(a[l],s,t,e)}return s}function Se(s,t){return we(s,t,{merger:cc})}function cc(s,t,e){if(!jr(s))return;let i=t[s],n=e[s];P(i)&&P(n)?Se(i,n):Object.prototype.hasOwnProperty.call(t,s)||(t[s]=Bs(n))}var Dr={"":s=>s,x:s=>s.x,y:s=>s.y};function Ft(s,t){return(Dr[t]||(Dr[t]=hc(t)))(s)}function hc(s){let t=uc(s);return e=>{for(let i of t){if(i==="")break;e=e&&e[i]}return e}}function uc(s){let t=s.split("."),e=[],i="";for(let n of t)i+=n,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Us(s){return s.charAt(0).toUpperCase()+s.slice(1)}var at=s=>typeof s<"u",Lt=s=>typeof s=="function",Zi=(s,t)=>{if(s.size!==t.size)return!1;for(let e of s)if(!t.has(e))return!1;return!0};function Ur(s){return s.type==="mouseup"||s.type==="click"||s.type==="contextmenu"}var $=Math.PI,V=2*$,dc=V+$,Hs=Number.POSITIVE_INFINITY,fc=$/180,U=$/2,ss=$/4,Cr=$*2/3,ct=Math.log10,wt=Math.sign;function qi(s){let t=Math.round(s);s=Me(s,t,s/1e3)?t:s;let e=Math.pow(10,Math.floor(ct(s))),i=s/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function Yr(s){let t=[],e=Math.sqrt(s),i;for(i=1;i<e;i++)s%i===0&&(t.push(i),t.push(s/i));return e===(e|0)&&t.push(e),t.sort((n,r)=>n-r).pop(),t}function oe(s){return!isNaN(parseFloat(s))&&isFinite(s)}function Me(s,t,e){return Math.abs(s-t)<e}function Zr(s,t){let e=Math.round(s);return e-t<=s&&e+t>=s}function Xi(s,t,e){let i,n,r;for(i=0,n=s.length;i<n;i++)r=s[i][e],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}function pt(s){return s*($/180)}function Ys(s){return s*(180/$)}function Gi(s){if(!Y(s))return;let t=1,e=0;for(;Math.round(s*t)/t!==s;)t*=10,e++;return e}function Ki(s,t){let e=t.x-s.x,i=t.y-s.y,n=Math.sqrt(e*e+i*i),r=Math.atan2(i,e);return r<-.5*$&&(r+=V),{angle:r,distance:n}}function $s(s,t){return Math.sqrt(Math.pow(t.x-s.x,2)+Math.pow(t.y-s.y,2))}function gc(s,t){return(s-t+dc)%V-$}function rt(s){return(s%V+V)%V}function Oe(s,t,e,i){let n=rt(s),r=rt(t),o=rt(e),a=rt(r-n),l=rt(o-n),c=rt(n-r),h=rt(n-o);return n===r||n===o||i&&r===o||a>l&&c<h}function J(s,t,e){return Math.max(t,Math.min(e,s))}function qr(s){return J(s,-32768,32767)}function Tt(s,t,e,i=1e-6){return s>=Math.min(t,e)-i&&s<=Math.max(t,e)+i}function Zs(s,t,e){e=e||(o=>s[o]<t);let i=s.length-1,n=0,r;for(;i-n>1;)r=n+i>>1,e(r)?n=r:i=r;return{lo:n,hi:i}}var Mt=(s,t,e,i)=>Zs(s,e,i?n=>s[n][t]<=e:n=>s[n][t]<e),Xr=(s,t,e)=>Zs(s,e,i=>s[i][t]>=e);function Gr(s,t,e){let i=0,n=s.length;for(;i<n&&s[i]<t;)i++;for(;n>i&&s[n-1]>e;)n--;return i>0||n<s.length?s.slice(i,n):s}va
|
||
|
|
`)>-1?s.split(`
|
||
|
|
`):s}function jd(s,t){let{element:e,datasetIndex:i,index:n}=t,r=s.getDatasetMeta(i).controller,{label:o,value:a}=r.getLabelAndValue(n);return{chart:s,label:o,parsed:r.getParsed(n),raw:s.data.datasets[i].data[n],formattedValue:a,dataset:r.getDataset(),dataIndex:n,datasetIndex:i,element:e}}function ea(s,t){let e=s.chart.ctx,{body:i,footer:n,title:r}=s,{boxWidth:o,boxHeight:a}=t,l=G(t.bodyFont),c=G(t.titleFont),h=G(t.footerFont),u=r.length,d=n.length,f=i.length,g=st(t.padding),m=g.height,p=0,b=i.reduce((w,x)=>w+x.before.length+x.lines.length+x.after.length,0);if(b+=s.beforeBody.length+s.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){let w=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=f*w+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}d&&(m+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let y=0,_=function(w){p=Math.max(p,e.measureText(w).width+y)};return e.save(),e.font=c.string,z(s.title,_),e.font=l.string,z(s.beforeBody.concat(s.afterBody),_),y=t.displayColors?o+2+t.boxPadding:0,z(i,w=>{z(w.before,_),z(w.lines,_),z(w.after,_)}),y=0,e.font=h.string,z(s.footer,_),e.restore(),p+=g.width,{width:p,height:m}}function Ud(s,t){let{y:e,height:i}=t;return e<i/2?"top":e>s.height-i/2?"bottom":"center"}function Yd(s,t,e,i){let{x:n,width:r}=i,o=e.caretSize+e.caretPadding;if(s==="left"&&n+r+o>t.width||s==="right"&&n-r-o<0)return!0}function Zd(s,t,e,i){let{x:n,width:r}=e,{width:o,chartArea:{left:a,right:l}}=s,c="center";return i==="center"?c=n<=(a+l)/2?"left":"right":n<=r/2?c="left":n>=o-r/2&&(c="right"),Yd(c,s,t,e)&&(c="center"),c}function sa(s,t,e){let i=e.yAlign||t.yAlign||Ud(s,e);return{xAlign:e.xAlign||t.xAlign||Zd(s,t,e,i),yAlign:i}}function qd(s,t){let{x:e,width:i}=s;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function Xd(s,t,e){let{y:i,height:n}=s;return t==="top"?i+=e:t==="bottom"?i-=n+e:i-=n/2,i}function ia(s,t,e,i){let{caretSize:n,caretPadding:r,cornerRadius:o}=s,{xAlign:a,yAlign:l}=e,c=n+r,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=Zt(o),g=qd(t,a),m=Xd(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,d)+n:a==="right"&&(g+=Math.max(u,f)+n),{x:J(g,0,i.width-t.width),y:J(m,0,i.height-t.height)}}function ri(s,t,e){let i=st(e.padding);return t==="center"?s.x+s.width/2:t==="right"?s.x+s.width-i.right:s.x+i.left}function na(s){return Dt([],zt(s))}function Gd(s,t,e){return Rt(s,{tooltip:t,tooltipItems:e,type:"tooltip"})}function ra(s,t){let e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?s.override(e):s}var ws=class extends ut{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(){let t=this._cachedAnimations;if(t)return t;let e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,r=new li(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Gd(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){let{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),r=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]),a=[];return a=Dt(a,zt(n)),a=Dt(a,zt(r)),a=Dt(a,zt(o)),a}getBeforeBody(t,e){return na(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){let{callbacks:i}=e,n=[];return z(t,r=>{let o={before:[],lines:[],after:[]},a=ra(i,r);Dt(o.before,zt(a.beforeLabel.call(this,r))),Dt(o.lines,a.label.call(this,r)),Dt(o.after,zt(a.afterLabel.call(
|
||
|
|
/*! Bundled license information:
|
||
|
|
|
||
|
|
chart.js/dist/chunks/helpers.segment.mjs:
|
||
|
|
chart.js/dist/chart.mjs:
|
||
|
|
(*!
|
||
|
|
* Chart.js v3.9.1
|
||
|
|
* https://www.chartjs.org
|
||
|
|
* (c) 2022 Chart.js Contributors
|
||
|
|
* Released under the MIT License
|
||
|
|
*)
|
||
|
|
|
||
|
|
chart.js/dist/chunks/helpers.segment.mjs:
|
||
|
|
(*!
|
||
|
|
* @kurkle/color v0.2.1
|
||
|
|
* https://github.com/kurkle/color#readme
|
||
|
|
* (c) 2022 Jukka Kurkela
|
||
|
|
* Released under the MIT License
|
||
|
|
*)
|
||
|
|
|
||
|
|
chartjs-adapter-luxon/dist/chartjs-adapter-luxon.esm.js:
|
||
|
|
(*!
|
||
|
|
* chartjs-adapter-luxon v1.3.1
|
||
|
|
* https://www.chartjs.org
|
||
|
|
* (c) 2023 chartjs-adapter-luxon Contributors
|
||
|
|
* Released under the MIT license
|
||
|
|
*)
|
||
|
|
*/
|