Files
owncast/static/web/_next/static/chunks/2139-45d397b25adef6af.js
2022-11-04 05:35:34 +00:00

17 lines
68 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2139],{92616:function(t){var e;e=function(){"use strict";function t(t){return"[object Array]"===Object.prototype.toString.call(t)}function e(t){return t instanceof Function}function n(t){return"[object Object]"===Object.prototype.toString.call(t)&&!e(t)&&t instanceof Object}function r(e,o){var i;for(i in o)"__proto__"!==i&&(n(o[i])||t(o[i])?(n(o[i])&&!n(e[i])&&(e[i]={}),t(o[i])&&!t(e[i])&&(e[i]=[]),r(e[i],o[i])):void 0!==o[i]&&(e[i]=o[i]))}function o(t,e){var n={};return r(n,t),r(n,e),n}var i=/^(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)$/i;function a(t){return""+t}function s(t){return parseFloat(t)}function l(t){var e,n,r,o;if("object"!=typeof t){if("number"==typeof t)t=new Date(1e3*t);else{if(e=(t=""+t).match(i))return n=parseInt(e[1],10),r=parseInt(e[3],10)-1,o=parseInt(e[5],10),new Date(n,r,o);var a=t.replace(/ /,"T").replace(" ","").replace("UTC","Z");t=new Date(Date.parse(a)||t)}}return t}function c(e){if(!t(e)){var n,r=[];for(n in e)e.hasOwnProperty(n)&&r.push([n,e[n]]);e=r}return e}function u(t,e,n,r,i,a,s,l){return function(c,u,f){var h=c.data,p=o({},t);return p=o(p,f||{}),(c.singleSeriesFormat||"legend"in u)&&e(p,u.legend,c.singleSeriesFormat),u.title&&n(p,u.title),"min"in u?r(p,u.min):!function(t){var e,n,r;for(e=0;e<t.length;e++)for(n=0,r=t[e].data;n<r.length;n++)if(r[n][1]<0)return!0;return!1}(h)&&r(p,0),u.max&&i(p,u.max),"stacked"in u&&a(p,u.stacked),u.colors&&(p.colors=u.colors),u.xtitle&&s(p,u.xtitle),u.ytitle&&l(p,u.ytitle),p=o(p,u.library||{})}}function f(t,e){return t[0].getTime()-e[0].getTime()}function h(t,e){return t[0]-e[0]}function p(t,e){return t-e}function d(t){return 0===t.getMilliseconds()&&0===t.getSeconds()}function g(t){return d(t)&&0===t.getMinutes()}function y(t){return g(t)&&0===t.getHours()}function b(t){return y(t)&&1===t.getDate()}function m(t){return!isNaN(l(t))&&(""+t).length>=6}function x(t){return"number"==typeof t}var v=["bytes","KB","MB","GB","TB","PB","EB"];function M(t,e,n,r){t=t||"",n.prefix&&(e<0&&(e*=-1,t+="-"),t+=n.prefix);var o=n.suffix||"",i=n.precision,a=n.round;if(n.byteScale){var s,l=r?n.byteScale:e;l>=0x1000000000000000?(e/=0x1000000000000000,s=6):l>=0x4000000000000?(e/=0x4000000000000,s=5):l>=1099511627776?(e/=1099511627776,s=4):l>=1073741824?(e/=1073741824,s=3):l>=1048576?(e/=1048576,s=2):l>=1024?(e/=1024,s=1):s=0,void 0===i&&void 0===a&&(e>=1023.5&&s<v.length-1&&(e=1,s+=1),i=e>=1e3?4:3),o=" "+v[s]}if(void 0!==i&&void 0!==a)throw Error("Use either round or precision, not both");if(!r&&(void 0===i||(e=e.toPrecision(i),n.zeros||(e=parseFloat(e))),void 0!==a)){if(a<0){var c=Math.pow(10,-1*a);e=parseInt((1*e/c).toFixed(0))*c}else e=e.toFixed(a),n.zeros||(e=parseFloat(e))}if(n.thousands||n.decimal){var u=(e=""+e).split(".");e=u[0],n.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),u.length>1&&(e+=(n.decimal||".")+u[1])}return t+e+o}function w(t,e,n){return n in e?e[n]:n in t.options?t.options[n]:null}var z={maintainAspectRatio:!1,animation:!1,plugins:{legend:{},tooltip:{displayColors:!1,callbacks:{}},title:{font:{size:20},color:"#333"}},interaction:{}},_={scales:{y:{ticks:{maxTicksLimit:4},title:{font:{size:16},color:"#333"},grid:{}},x:{grid:{drawOnChartArea:!1},title:{font:{size:16},color:"#333"},time:{},ticks:{}}}},C=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],k=function(t,e,n){void 0!==e?(t.plugins.legend.display=!!e,e&&!0!==e&&(t.plugins.legend.position=e)):n&&(t.plugins.legend.display=!1)},A=function(t,e){t.plugins.title.display=!0,t.plugins.title.text=e},O=function(t,e){null!==e&&(t.scales.y.min=s(e))},T=function(t,e){t.scales.y.max=s(e)},S=function(t,e){null!==e&&(t.scales.x.min=s(e))},E=function(t,e){t.scales.x.max=s(e)},P=function(t,e){t.scales.x.stacked=!!e,t.scales.y.stacked=!!e},j=function(t,e){t.scales.x.title.display=!0,t.scales.x.title.text=e},D=function(t,e){t.scales.y.title.display=!0,t.scales.y.title.text=e},R=function(t,e){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?"rgba("+parseInt(n[1],16)+", "+parseInt(n[2],16)+", "+parseInt(n[3],16)+", "+e+")":t},L=function(t){return null!=t},F=function(t,e,n){var r=Math.ceil(t.element.offsetWidth/4/e.labels.length);r>25?r=25:r<10&&(r=10),n.scales.x.ticks.callback||(n.scales.x.ticks.callback=function(t){return(t=""+this.getLabelForValue(t)).length>r?t.substring(0,r-2)+"...":t})},I=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var i=e.data;"pie"===r&&(i=[{data:i}]);for(var a=0,s=0;s<i.length;s++)for(var l=i[s],c=0;c<l.data.length;c++)l.data[c][1]>a&&(a=l.data[c][1]);for(var u=1;a>=1024;)u*=1024,a/=1024;o.byteScale=u}if("pie"!==r){var f=n.scales.y;"bar"===r&&(f=n.scales.x),o.byteScale&&(f.ticks.stepSize||(f.ticks.stepSize=o.byteScale/2),f.ticks.maxTicksLimit||(f.ticks.maxTicksLimit=4)),f.ticks.callback||(f.ticks.callback=function(t){return M("",t,o,!0)})}if(!n.plugins.tooltip.callbacks.label){if("scatter"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";return e&&(e+=": "),e+"("+t.label+", "+t.formattedValue+")"};else if("bubble"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";e&&(e+=": ");var n=t.raw;return e+"("+n.x+", "+n.y+", "+n.v+")"};else if("pie"===r)n.plugins.tooltip.callbacks.label=function(e){var n=e.label;return t(n)?(n=n.slice(),n[0]+=": "):n+=": ",M(n,e.parsed,o)};else{var h="bar"===r?"x":"y";n.plugins.tooltip.callbacks.label=function(t){if(null!==t.parsed[h]){var e=t.dataset.label||"";return e&&(e+=": "),M(e,t.parsed[h],o)}}}}},B=u(o(z,_),k,A,O,T,P,j,D),N=function(e,n,r){var i=[],a=[],c=e.options.colors||C,u=!0,f=!0,h=!0,m=!0,x=!0,v=!0,M=e.data,z=0;if("bubble"===r)for(var _=0;_<M.length;_++)for(var k=M[_],A=0;A<k.data.length;A++)k.data[A][2]>z&&(z=k.data[A][2]);var O,T,S,E,P,j,D=[],F=[];if("bar"===r||"column"===r||"number"!==e.xtype&&"bubble"!==e.xtype){var I,B,N,H,W,Y=[];for(T=0;T<M.length;T++)for(S=0,E=M[T];S<E.data.length;S++)P=E.data[S],D[j="datetime"==e.xtype?P[0].getTime():P[0]]||(D[j]=Array(M.length)),D[j][T]=s(P[1]),-1===Y.indexOf(j)&&Y.push(j);for(("datetime"===e.xtype||"number"===e.xtype)&&Y.sort(p),S=0;S<M.length;S++)F.push([]);for(W=0;W<Y.length;W++)for((T=Y[W],"datetime"===e.xtype)?(H=new Date(s(T)),u=u&&y(H),O||(O=H.getDay()),f=f&&(I=H,B=O,y(I)&&I.getDay()===B),h=h&&b(H),m=m&&b(N=H)&&0===N.getMonth(),x=x&&g(H),v=v&&d(H)):H=T,a.push(H),S=0;S<M.length;S++)F[S].push(void 0===D[T][S]?null:D[T][S])}else for(var U=0;U<M.length;U++){for(var V=M[U],Q=[],X=0;X<V.data.length;X++){var $={x:s(V.data[X][0]),y:s(V.data[X][1])};"bubble"===r&&($.r=20*s(V.data[X][2])/z,$.v=V.data[X][2]),Q.push($)}F.push(Q)}for(T=0;T<M.length;T++){if(E=M[T],e.options.colors&&e.singleSeriesFormat&&("bar"===r||"column"===r)&&!E.color&&t(e.options.colors)&&!t(e.options.colors[0])){tt=c,te=[];for(var J=0;J<c.length;J++)te[J]=R(tt[J],.5)}else tt=E.color||c[T],te="line"!==r?R(tt,.5):tt;var Z={label:E.name||"",data:F[T],fill:"area"===r,borderColor:tt,backgroundColor:te,borderWidth:2},q="line"===r||"area"===r||"scatter"===r||"bubble"===r;q&&(Z.pointBackgroundColor=tt,Z.pointHoverBackgroundColor=tt,Z.pointHitRadius=50),"bubble"===r&&(Z.pointBackgroundColor=te,Z.pointHoverBackgroundColor=te,Z.pointHoverBorderWidth=2),E.stack&&(Z.stack=E.stack),!1===w(e,E,"curve")?Z.tension=0:q&&(Z.tension=.4),!1===w(e,E,"points")&&(Z.pointRadius=0,Z.pointHoverRadius=0),Z=o(Z,e.options.dataset||{}),Z=o(Z,E.library||{}),Z=o(Z,E.dataset||{}),i.push(Z)}var K=e.options.xmin,G=e.options.xmax;if("datetime"===e.xtype?(L(K)&&(n.scales.x.min=l(K).getTime()),L(G)&&(n.scales.x.max=l(G).getTime())):"number"===e.xtype&&(L(K)&&(n.scales.x.min=K),L(G)&&(n.scales.x.max=G)),"datetime"===e.xtype&&0===a.length&&(L(K)&&a.push(l(K)),L(G)&&a.push(l(G)),u=!1,f=!1,h=!1,m=!1,x=!1,v=!1),"datetime"===e.xtype&&a.length>0){var tt,te,tn,tr=(L(K)?l(K):a[0]).getTime(),to=(L(G)?l(G):a[0]).getTime();for(T=1;T<a.length;T++){var ti=a[T].getTime();ti<tr&&(tr=ti),ti>to&&(to=ti)}var ta=(to-tr)/864e5;if(!n.scales.x.time.unit&&(m||ta>3650?(n.scales.x.time.unit="year",tn=365):h||ta>300?(n.scales.x.time.unit="month",tn=30):u||ta>10?(n.scales.x.time.unit="day",tn=1):x||ta>.5?(n.scales.x.time.displayFormats={hour:"MMM d, h a"},n.scales.x.time.unit="hour",tn=1/24):v&&(n.scales.x.time.displayFormats={minute:"h:mm a"},n.scales.x.time.unit="minute",tn=1/24/60),tn&&ta>0)){var ts=e.element.offsetWidth;if(ts>0){var tl=Math.ceil(ta/tn/(ts/100));f&&1===tn&&(tl=7*Math.ceil(tl/7)),n.scales.x.time.stepSize=tl}}!n.scales.x.time.tooltipFormat&&(u?n.scales.x.time.tooltipFormat="PP":x?n.scales.x.time.tooltipFormat="MMM d, h a":v&&(n.scales.x.time.tooltipFormat="h:mm a"))}return{labels:a,datasets:i}},H=function(t){this.name="chartjs",this.library=t};H.prototype.renderLineChart=function(t,e){var n={};!t.options.max&&function(t){var e,n,r;for(e=0;e<t.length;e++)for(n=0,r=t[e].data;n<r.length;n++)if(0!=r[n][1])return!1;return!0}(t.data)&&(n.max=1);var r=B(t,o(n,t.options));I(t,r,e);var i=N(t,r,e||"line");"number"===t.xtype?(r.scales.x.type=r.scales.x.type||"linear",r.scales.x.position=r.scales.x.position||"bottom"):r.scales.x.type="string"===t.xtype?"category":"time",this.drawChart(t,"line",i,r)},H.prototype.renderPieChart=function(t){var e=o({},z);t.options.donut&&(e.cutout="50%"),"legend"in t.options&&k(e,t.options.legend),t.options.title&&A(e,t.options.title),e=o(e,t.options.library||{}),I(t,e,"pie");for(var n=[],r=[],i=0;i<t.data.length;i++){var a=t.data[i];n.push(a[0]),r.push(a[1])}var s={data:r,backgroundColor:t.options.colors||C},l={labels:n,datasets:[s=o(s,t.options.dataset||{})]};this.drawChart(t,"pie",l,e)},H.prototype.renderColumnChart=function(t,e){if("bar"===e){var n,r=o(z,_);r.indexAxis="y",r.scales.x.grid.drawOnChartArea=!0,r.scales.y.grid.drawOnChartArea=!1,delete r.scales.y.ticks.maxTicksLimit,n=u(r,k,A,S,E,P,j,D)(t,t.options)}else n=B(t,t.options);I(t,n,e);var i=N(t,n,"column");"bar"!==e&&F(t,i,n),this.drawChart(t,"bar",i,n)},H.prototype.renderAreaChart=function(t){this.renderLineChart(t,"area")},H.prototype.renderBarChart=function(t){this.renderColumnChart(t,"bar")},H.prototype.renderScatterChart=function(t,e){e=e||"scatter";var n=B(t,t.options);I(t,n,e),"showLine"in n||(n.showLine=!1);var r=N(t,n,e);n.scales.x.type=n.scales.x.type||"linear",n.scales.x.position=n.scales.x.position||"bottom","mode"in n.interaction||(n.interaction.mode="nearest"),this.drawChart(t,e,r,n)},H.prototype.renderBubbleChart=function(t){this.renderScatterChart(t,"bubble")},H.prototype.destroy=function(t){t.chart&&t.chart.destroy()},H.prototype.drawChart=function(t,e,n,r){if(this.destroy(t),!t.destroyed){var o={type:e,data:n,options:r};t.options.code&&window.console.log("new Chart(ctx, "+JSON.stringify(o)+");"),t.element.innerHTML="<canvas></canvas>";var i=t.element.getElementsByTagName("CANVAS")[0];t.chart=new this.library(i,o)}};var W={chart:{},xAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},yAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},title:{text:null},credits:{enabled:!1},legend:{borderWidth:0},tooltip:{style:{fontSize:"12px"}},plotOptions:{areaspline:{},area:{},series:{marker:{}}},time:{useUTC:!1}},Y=function(t,e,n){void 0!==e?(t.legend.enabled=!!e,e&&!0!==e&&("top"===e||"bottom"===e?t.legend.verticalAlign=e:(t.legend.layout="vertical",t.legend.verticalAlign="middle",t.legend.align=e))):n&&(t.legend.enabled=!1)},U=function(t,e){t.title.text=e},V=u(W,Y,U,function(t,e){t.yAxis.min=e},function(t,e){t.yAxis.max=e},function(t,e){var n=e?!0===e?"normal":e:null;t.plotOptions.series.stacking=n,t.plotOptions.area.stacking=n,t.plotOptions.areaspline.stacking=n},function(t,e){t.xAxis.title.text=e},function(t,e){t.yAxis.title.text=e}),Q=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};"pie"===r||t(n.yAxis)||n.yAxis.labels.formatter||(n.yAxis.labels.formatter=function(){return M("",this.value,o)}),n.tooltip.pointFormatter||n.tooltip.pointFormat||(n.tooltip.pointFormatter=function(){return'<span style="color:'+this.color+'">●</span> '+M(this.series.name+": <b>",this.y,o)+"</b><br/>"})},X=function(t){this.name="highcharts",this.library=t};X.prototype.renderLineChart=function(t,e){var n={};"areaspline"===(e=e||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var r,o,i,a=V(t,t.options,n);"number"===t.xtype?a.xAxis.type=a.xAxis.type||"linear":a.xAxis.type="string"===t.xtype?"category":"datetime",a.chart.type||(a.chart.type=e),Q(t,a,e);var s=t.data;for(o=0;o<s.length;o++){if(s[o].name=s[o].name||"Value",r=s[o].data,"datetime"===t.xtype)for(i=0;i<r.length;i++)r[i][0]=r[i][0].getTime();s[o].marker={symbol:"circle"},!1===t.options.points&&(s[o].marker.enabled=!1)}this.drawChart(t,s,a)},X.prototype.renderScatterChart=function(t){var e=V(t,t.options,{});e.chart.type="scatter",this.drawChart(t,t.data,e)},X.prototype.renderPieChart=function(t){var e=o(W,{});t.options.colors&&(e.colors=t.options.colors),t.options.donut&&(e.plotOptions={pie:{innerSize:"50%"}}),"legend"in t.options&&Y(e,t.options.legend),t.options.title&&U(e,t.options.title);var n=o(e,t.options.library||{});Q(t,n,"pie");var r=[{type:"pie",name:t.options.label||"Value",data:t.data}];this.drawChart(t,r,n)},X.prototype.renderColumnChart=function(t,e){e=e||"column";var n,r,o,i,a=t.data,s=V(t,t.options),l=[],c=[];for(s.chart.type=e,Q(t,s,e),n=0;n<a.length;n++)for(r=0,o=a[n];r<o.data.length;r++)l[(i=o.data[r])[0]]||(l[i[0]]=Array(a.length),c.push(i[0])),l[i[0]][n]=i[1];"number"===t.xtype&&c.sort(p),s.xAxis.categories=c;var u,f=[];for(n=0;n<a.length;n++){for(r=0,i=[];r<c.length;r++)i.push(l[c[r]][n]||0);u={name:a[n].name||"Value",data:i},a[n].stack&&(u.stack=a[n].stack),f.push(u)}this.drawChart(t,f,s)},X.prototype.renderBarChart=function(t){this.renderColumnChart(t,"bar")},X.prototype.renderAreaChart=function(t){this.renderLineChart(t,"areaspline")},X.prototype.destroy=function(t){t.chart&&t.chart.destroy()},X.prototype.drawChart=function(t,e,n){this.destroy(t),t.destroyed||(n.chart.renderTo=t.element.id,n.series=e,t.options.code&&window.console.log("new Highcharts.Chart("+JSON.stringify(n)+");"),t.chart=new this.library.Chart(n))};var $={},J=[],Z={chartArea:{},fontName:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif",pointSize:6,legend:{textStyle:{fontSize:12,color:"#444"},alignment:"center",position:"right"},curveType:"function",hAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},gridlines:{color:"transparent"},baselineColor:"#ccc",viewWindow:{}},vAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},baselineColor:"#ccc",viewWindow:{}},tooltip:{textStyle:{color:"#666",fontSize:12}}},q=function(t,e,n){if(void 0!==e){var r;r=e?!0===e?"right":e:"none",t.legend.position=r}else n&&(t.legend.position="none")},K=function(t,e){t.title=e,t.titleTextStyle={color:"#333",fontSize:"20px"}},G=function(t,e){t.hAxis.viewWindow.min=e},tt=function(t,e){t.hAxis.viewWindow.max=e},te=function(t,e){t.isStacked=!!e&&e},tn=function(t,e){t.hAxis.title=e,t.hAxis.titleTextStyle.italic=!1},tr=function(t,e){t.vAxis.title=e,t.vAxis.titleTextStyle.italic=!1},to=u(Z,q,K,function(t,e){t.vAxis.viewWindow.min=e},function(t,e){t.vAxis.viewWindow.max=e},te,tn,tr),ti=function(t){window.attachEvent?window.attachEvent("onresize",t):window.addEventListener&&window.addEventListener("resize",t,!0),t()},ta=function(t){this.name="google",this.library=t};function ts(t,e){var n,r,o;for(n=0;n<t.length;n++)for(r=0,o=c(t[n].data);r<o.length;r++)if(!e(o[r][0]))return!1;return!0}function tl(e,n,r){var o,i,u=e.options,p=e.rawData;for(e.singleSeriesFormat=!t(p)||"object"!=typeof p[0]||t(p[0]),e.singleSeriesFormat&&(p=[{name:u.label,data:p}]),p=function(t){var e,n,r=[];for(e=0;e<t.length;e++){var o={};for(n in t[e])t[e].hasOwnProperty(n)&&(o[n]=t[e][n]);r.push(o)}return r}(p),i=0;i<p.length;i++)p[i].data=c(p[i].data);for(i=0,e.xtype=n||(u.discrete?"string":tu(o=p)?(u.xmin||u.xmax)&&(!u.xmin||m(u.xmin))&&(!u.xmax||m(u.xmax))?"datetime":"number":ts(o,x)?"number":!r&&ts(o,m)?"datetime":"string");i<p.length;i++)p[i].data=function(t,e){var n,r,o=[];if(r="number"===e?s:"datetime"===e?l:a,"bubble"===e)for(n=0;n<t.length;n++)o.push([s(t[n][0]),s(t[n][1]),s(t[n][2])]);else for(n=0;n<t.length;n++)o.push([r(t[n][0]),s(t[n][1])]);return"datetime"===e?o.sort(f):"number"===e&&o.sort(h),o}(p[i].data,e.xtype);return p}function tc(t){var e,n=c(t.rawData);for(e=0;e<n.length;e++)n[e]=[""+n[e][0],s(n[e][1])];return n}function tu(t,e){if("PieChart"===e||"GeoChart"===e||"Timeline"===e)return 0===t.length;for(var n=0;n<t.length;n++)if(t[n].data.length>0)return!1;return!0}function tf(t,e,n){if(t.addEventListener)return t.addEventListener(e,n,!1),n;var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}function th(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function tp(t,e){if(t===e)return!1;for(;e&&e!==t;)e=e.parentNode;return e===t}ta.prototype.renderLineChart=function(t){var e=this;this.waitForLoaded(t,function(){var n={};!1===t.options.curve&&(n.curveType="none"),!1===t.options.points&&(n.pointSize=0);var r=to(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"LineChart",o,r)})},ta.prototype.renderPieChart=function(t){var e=this;this.waitForLoaded(t,function(){var n={chartArea:{top:"10%",height:"80%"},legend:{}};t.options.colors&&(n.colors=t.options.colors),t.options.donut&&(n.pieHole=.5),"legend"in t.options&&q(n,t.options.legend),t.options.title&&K(n,t.options.title);var r=o(o(Z,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number","Value"),i.addRows(t.data),e.drawChart(t,"PieChart",i,r)})},ta.prototype.renderColumnChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=to(t,t.options),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"ColumnChart",r,n)})},ta.prototype.renderBarChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=u(Z,q,K,G,tt,te,tn,tr)(t,t.options,{hAxis:{gridlines:{color:"#ccc"}}}),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"BarChart",r,n)})},ta.prototype.renderAreaChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=to(t,t.options,{isStacked:!0,pointSize:0,areaOpacity:.5}),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"AreaChart",r,n)})},ta.prototype.renderGeoChart=function(t){var e=this;this.waitForLoaded(t,"geochart",function(){var n=o(o(Z,{legend:"none",colorAxis:{colors:t.options.colors||["#f6c7b6","#ce502d"]}}),t.options.library||{}),r=new e.library.visualization.DataTable;r.addColumn("string",""),r.addColumn("number",t.options.label||"Value"),r.addRows(t.data),e.drawChart(t,"GeoChart",r,n)})},ta.prototype.renderScatterChart=function(t){var e=this;this.waitForLoaded(t,function(){var n,r,o,i,a=to(t,t.options,{}),s=t.data,l=[];for(n=0;n<s.length;n++)for(r=0,s[n].name=s[n].name||"Value",i=s[n].data;r<i.length;r++){var c=Array(s.length+1);c[0]=i[r][0],c[n+1]=i[r][1],l.push(c)}for((o=new e.library.visualization.DataTable).addColumn("number",""),n=0;n<s.length;n++)o.addColumn("number",s[n].name);o.addRows(l),e.drawChart(t,"ScatterChart",o,a)})},ta.prototype.renderTimeline=function(t){var e=this;this.waitForLoaded(t,"timeline",function(){var n={legend:"none"};t.options.colors&&(n.colors=t.options.colors);var r=o(o(Z,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn({type:"string",id:"Name"}),i.addColumn({type:"date",id:"Start"}),i.addColumn({type:"date",id:"End"}),i.addRows(t.data),t.element.style.lineHeight="normal",e.drawChart(t,"Timeline",i,r)})},ta.prototype.destroy=function(t){t.chart&&t.chart.clearChart()},ta.prototype.drawChart=function(t,e,n,r){this.destroy(t),t.destroyed||(t.options.code&&window.console.log("var data = new google.visualization.DataTable("+n.toJSON()+");\nvar chart = new google.visualization."+e+"(element);\nchart.draw(data, "+JSON.stringify(r)+");"),t.chart=new this.library.visualization[e](t.element),ti(function(){t.chart.draw(n,r)}))},ta.prototype.waitForLoaded=function(t,e,n){var r=this;if(n||(n=e,e="corechart"),J.push({pack:e,callback:n}),$[e])this.runCallbacks();else{$[e]=!0;var o={packages:[e],callback:function(){r.runCallbacks()}},i=t.__config();i.language&&(o.language=i.language),"geochart"===e&&i.mapsApiKey&&(o.mapsApiKey=i.mapsApiKey),this.library.charts.load("current",o)}},ta.prototype.runCallbacks=function(){for(var t,e=0;e<J.length;e++)t=J[e],this.library.visualization&&("corechart"===t.pack&&this.library.visualization.LineChart||"timeline"===t.pack&&this.library.visualization.Timeline||"geochart"===t.pack&&this.library.visualization.GeoChart)&&(t.callback(),J.splice(e,1),e--)},ta.prototype.createDataTable=function(t,e){var n,r,o,i,a,l,c=[],u=[];for(r=0;r<t.length;r++)for(o=0,i=t[r],t[r].name=t[r].name||"Value";o<i.data.length;o++)a=i.data[o],c[l="datetime"===e?a[0].getTime():a[0]]||(c[l]=Array(t.length),u.push(l)),c[l][r]=s(a[1]);var p=[],d=!0;for(o=0;o<u.length;o++)r=u[o],"datetime"===e?(n=new Date(s(r)),d=d&&y(n)):n="number"===e?s(r):r,p.push([n].concat(c[r]));if("datetime"===e)p.sort(f);else if("number"===e){for(p.sort(h),r=0;r<p.length;r++)p[r][0]=""+p[r][0];e="string"}var g=new this.library.visualization.DataTable;for(e="datetime"===e&&d?"date":e,g.addColumn(e,""),r=0;r<t.length;r++)g.addColumn("number",t[r].name);return g.addRows(p),g};var td=[],tg=0;function ty(){if(tg<4){var t,e,n,r=td.shift();r&&(tg++,t=r[0],e=r[1],n=r[2],function(t,e,n){var r=window.jQuery||window.Zepto||window.$;if(r&&r.ajax)r.ajax({dataType:"json",url:t,success:e,error:n,complete:tb});else{var o=new XMLHttpRequest;o.open("GET",t,!0),o.setRequestHeader("Content-Type","application/json"),o.onload=function(){tb(),200===o.status?e(JSON.parse(o.responseText),o.statusText,o):n(o,"error",o.statusText)},o.send()}}(t,e,function(t,e,r){n("string"==typeof r?r:r.message)}),ty())}}function tb(){tg--,ty()}var tm={},tx=[];function tv(t,e){document.body.innerText?t.innerText=e:t.textContent=e}function tM(t,e,n){n||(e="Error Loading Chart: "+e),tv(t,e),t.style.color="#ff0000"}function tw(t){try{t.__render()}catch(e){throw tM(t.element,e.message),e}}function tz(t,e,n){if(n&&t.options.loading&&("string"==typeof e||"function"==typeof e)&&tv(t.element,t.options.loading),"string"==typeof e){var r,o;r=function(e){t.rawData=e,tw(t)},o=function(e){tM(t.element,e)},td.push([e,r,o]),ty()}else if("function"==typeof e)try{e(function(e){t.rawData=e,tw(t)},function(e){tM(t.element,e,!0)})}catch(i){tM(t.element,i,!0)}else t.rawData=e,tw(t)}function t_(t){var n=new(function(t){if(t){if("Highcharts"===t.product)return X;if(t.charts)return ta;if(e(t))return H}throw Error("Unknown adapter")}(t))(t);-1===tx.indexOf(n)&&tx.push(n)}var tC=function(t,e,n){var r;if("string"==typeof t&&(r=t,!(t=document.getElementById(t))))throw Error("No element with id "+r);this.element=t,this.options=o(tk.options,n||{}),this.dataSource=e,tk.charts[t.id]=this,tz(this,e,!0),this.options.refresh&&this.startRefresh()};tC.prototype.getElement=function(){return this.element},tC.prototype.getDataSource=function(){return this.dataSource},tC.prototype.getData=function(){return this.data},tC.prototype.getOptions=function(){return this.options},tC.prototype.getChartObject=function(){return this.chart},tC.prototype.getAdapter=function(){return this.adapter},tC.prototype.updateData=function(t,e){this.dataSource=t,e&&this.__updateOptions(e),tz(this,t,!0)},tC.prototype.setOptions=function(t){this.__updateOptions(t),this.redraw()},tC.prototype.redraw=function(){tz(this,this.rawData)},tC.prototype.refreshData=function(){if("string"==typeof this.dataSource){var t=-1===this.dataSource.indexOf("?")?"?":"&";tz(this,this.dataSource+t+"_="+new Date().getTime())}else"function"==typeof this.dataSource&&tz(this,this.dataSource)},tC.prototype.startRefresh=function(){var t=this,e=this.options.refresh;if(e&&"string"!=typeof this.dataSource&&"function"!=typeof this.dataSource)throw Error("Data source must be a URL or callback for refresh");if(!this.intervalId){if(e)this.intervalId=setInterval(function(){t.refreshData()},1e3*e);else throw Error("No refresh interval")}},tC.prototype.stopRefresh=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},tC.prototype.toImage=function(t){if("chartjs"===this.adapter){if(!t||!t.background||"transparent"===t.background)return this.chart.toBase64Image();var e=this.chart.canvas,n=this.chart.ctx,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=n.canvas.width,r.height=n.canvas.height,o.fillStyle=t.background,o.fillRect(0,0,r.width,r.height),o.drawImage(e,0,0),r.toDataURL("image/png")}throw Error("Feature only available for Chart.js")},tC.prototype.destroy=function(){this.destroyed=!0,this.stopRefresh(),this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&th(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&th(this.element,"mouseout",this.__leaveEvent)},tC.prototype.__updateOptions=function(t){var e=t.refresh&&t.refresh!==this.options.refresh;this.options=o(tk.options,t),e&&(this.stopRefresh(),this.startRefresh())},tC.prototype.__render=function(){this.data=this.__processData(),function(t,n){if(tu(n.data,t)){var r,o,i,a,s,l=n.options.empty||n.options.messages&&n.options.messages.empty||"No data";tv(n.element,l)}else(function(t,n){var r,o,i,a;for(i="render"+t,a=n.options.adapter,("Chart"in window)&&t_(window.Chart),("Highcharts"in window)&&t_(window.Highcharts),window.google&&window.google.charts&&t_(window.google),r=0;r<tx.length;r++)if(o=tx[r],(!a||a===o.name)&&e(o[i]))return n.adapter=o.name,n.__adapterObject=o,o[i](n);if(tx.length>0)throw Error("No charting library found for "+t);throw Error("No charting libraries found - be sure to include one before your charts")})(t,n),n.options.download&&!n.__downloadAttached&&"chartjs"===n.adapter&&(o=(r=n).element,i=document.createElement("a"),!0===(a=r.options.download)?a={}:"string"==typeof a&&(a={filename:a}),i.download=a.filename||"chart.png",i.style.position="absolute",i.style.top="20px",i.style.right="20px",i.style.zIndex=1e3,i.style.lineHeight="20px",i.target="_blank",(s=document.createElement("img")).alt="Download",s.style.border="none",s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",i.appendChild(s),o.style.position="relative",r.__downloadAttached=!0,r.__enterEvent=tf(o,"mouseover",function(t){var e=t.relatedTarget;e&&(e===this||tp(this,e))||!r.options.download||(i.href=r.toImage(a),o.appendChild(i))}),r.__leaveEvent=tf(o,"mouseout",function(t){var e=t.relatedTarget;e&&(e===this||tp(this,e))||!i.parentNode||i.parentNode.removeChild(i)}))}(this.__chartName(),this)},tC.prototype.__config=function(){return tm};var tk={LineChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return tl(this)},e.prototype.__chartName=function(){return"LineChart"},e}(tC),PieChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return tc(this)},e.prototype.__chartName=function(){return"PieChart"},e}(tC),ColumnChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return tl(this,null,!0)},e.prototype.__chartName=function(){return"ColumnChart"},e}(tC),BarChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return tl(this,null,!0)},e.prototype.__chartName=function(){return"BarChart"},e}(tC),AreaChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return tl(this)},e.prototype.__chartName=function(){return"AreaChart"},e}(tC),GeoChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return tc(this)},e.prototype.__chartName=function(){return"GeoChart"},e}(tC),ScatterChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return tl(this,"number")},e.prototype.__chartName=function(){return"ScatterChart"},e}(tC),BubbleChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return tl(this,"bubble")},e.prototype.__chartName=function(){return"BubbleChart"},e}(tC),Timeline:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){var t,e=this.rawData;for(t=0;t<e.length;t++)e[t][1]=l(e[t][1]),e[t][2]=l(e[t][2]);return e},e.prototype.__chartName=function(){return"Timeline"},e}(tC),charts:{},configure:function(t){for(var e in t)t.hasOwnProperty(e)&&(tm[e]=t[e])},setDefaultOptions:function(t){tk.options=t},eachChart:function(t){for(var e in tk.charts)tk.charts.hasOwnProperty(e)&&t(tk.charts[e])},destroyAll:function(){for(var t in tk.charts)tk.charts.hasOwnProperty(t)&&(tk.charts[t].destroy(),delete tk.charts[t])},config:tm,options:{},adapters:tx,addAdapter:t_,use:function(t){return t_(t),tk}};return"undefined"==typeof window||window.Chartkick||(window.Chartkick=tk,document.addEventListener("turbolinks:before-render",function(){!1!==tm.autoDestroy&&tk.destroyAll()}),document.addEventListener("turbo:before-render",function(){!1!==tm.autoDestroy&&tk.destroyAll()}),setTimeout(function(){window.dispatchEvent(new Event("chartkick:load"))},0)),tk.default=tk,tk},t.exports=e()},60727:function(t,e,n){"use strict";n.d(e,{wW:function(){return c}});var r=n(67294),o=n(92616),i=n.n(o),a=1,s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.newChartType=function(t){var e=t.data,n={};for(var r in t)t.hasOwnProperty(r)&&"data"!==r&&"id"!==r&&"height"!==r&&"width"!==r&&(n[r]=t[r]);this.element&&(this.chart?this.chart.updateData(e,n):this.chart=new t.chartType(this.element,e,n))},e.prototype.componentDidMount=function(){this.newChartType(this.props)},e.prototype.componentDidUpdate=function(){this.newChartType(this.props)},e.prototype.componentWillUnmount=function(){this.chart&&(this.chart.destroy(),this.chart=void 0)},e.prototype.render=function(){var t=this,e=this.props,n={height:e.height||"300px",lineHeight:e.height||"300px",width:e.width||"100%",textAlign:"center",color:"#999",fontSize:"14px",fontFamily:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif"};this.chartId=e.id||this.chartId||"chart-"+a++;var o=void 0!==e.loading?e.loading:"Loading...";if("string"!=typeof o)throw Error("loading must be a string");return r.createElement("div",{id:this.chartId,style:n,ref:function(e){return t.element=e}},o)},e}(r.Component),l=function(t){var e=function(e){var n=e.innerRef,o=/*!
* React Chartkick
* Create beautiful JavaScript charts with one line of React
* https://github.com/ankane/react-chartkick
* v0.5.3
* MIT License
*/ function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}(e,["innerRef"]);return o.chartType=t,o.ref=n,r.createElement(s,o)};return e.displayName=t.name,e},c=l(i().LineChart);l(i().PieChart),l(i().ColumnChart),l(i().BarChart),l(i().AreaChart),l(i().ScatterChart),l(i().GeoChart),l(i().Timeline)},29217:function(t,e,n){"use strict";var r=n(66775);r.kL.register(...r.zX),e.Z=r.kL},2454:function(t,e,n){"use strict";let r,o;/*!
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/ function i(){}n.d(e,{$:function(){return er},A:function(){return W},B:function(){return f},C:function(){return g},D:function(){return ex},E:function(){return te},F:function(){return $},G:function(){return t8},H:function(){return L},I:function(){return tn},J:function(){return t9},K:function(){return ey},L:function(){return eo},M:function(){return el},N:function(){return ei},O:function(){return eb},P:function(){return E},Q:function(){return y},R:function(){return tg},S:function(){return ty},T:function(){return P},U:function(){return t2},V:function(){return M},W:function(){return k},X:function(){return eU},Y:function(){return ta},Z:function(){return ti},_:function(){return tf},a:function(){return em},a0:function(){return Z},a1:function(){return eQ},a2:function(){return eI},a3:function(){return eJ},a4:function(){return tp},a5:function(){return e$},a6:function(){return eF},a7:function(){return t5},a8:function(){return O},a9:function(){return function t(e,n,r,o){let i={_cacheable:!1,_proxy:e,_context:n,_subProxy:r,_stack:new Set,_descriptors:ew(e,o),setContext:n=>t(e,n,r,o),override:i=>t(e.override(i),n,r,o)};return new Proxy(i,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,n,r)=>eC(e,n,()=>(function(e,n,r){let{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=e,u=o[n];return O(u)&&s.isScriptable(n)&&(u=function(t,e,n,r){let{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(i,a||r),s.delete(t),e_(t,e)&&(e=eA(o._scopes,o,t,e)),e}(n,u,e,r)),l(u)&&u.length&&(u=function(e,n,r,o){let{_proxy:i,_context:a,_subProxy:s,_descriptors:l}=r;if(A(a.index)&&o(e))n=n[a.index%n.length];else if(c(n[0])){let u=n,f=i._scopes.filter(t=>t!==u);for(let h of(n=[],u)){let p=eA(f,i,e,h);n.push(t(p,a,s&&s[e],l))}}return n}(n,u,e,s.isIndexable)),e_(n,u)&&(u=t(u,i,a&&a[n],s)),u})(e,n,r)),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}},aA:function(){return e1},aB:function(){return e2},aC:function(){return tb},aD:function(){return e5},aE:function(){return en},aF:function(){return i},aG:function(){return q},aH:function(){return Q},aI:function(){return H},aJ:function(){return V},aK:function(){return U},aL:function(){return J},aM:function(){return t7},aN:function(){return ts},aO:function(){return to},aa:function(){return eM},ab:function(){return ew},ac:function(){return w},ad:function(){return a},ae:function(){return td},af:function(){return eX},ag:function(){return et},ah:function(){return T},ai:function(){return b},aj:function(){return S},ak:function(){return tr},al:function(){return ep},am:function(){return eL},an:function(){return e7},ao:function(){return e8},ap:function(){return eq},aq:function(){return eK},ar:function(){return eZ},as:function(){return ea},at:function(){return es},au:function(){return ee},av:function(){return ec},aw:function(){return ed},ax:function(){return eg},ay:function(){return e4},az:function(){return G},b:function(){return l},c:function(){return t0},d:function(){return t4},e:function(){return tz},f:function(){return C},g:function(){return u},h:function(){return ev},i:function(){return c},j:function(){return A},k:function(){return s},l:function(){return tc},m:function(){return p},n:function(){return d},o:function(){return e0},p:function(){return tt},q:function(){return tm},r:function(){return th},s:function(){return N},t:function(){return X},u:function(){return tu},v:function(){return h},w:function(){return tx},x:function(){return Y},y:function(){return eE},z:function(){return B}});let a=(o=0,function(){return o++});function s(t){return null==t}function l(t){if(Array.isArray&&Array.isArray(t))return!0;let e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function c(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}let u=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function f(t,e){return u(t)?t:e}function h(t,e){return void 0===t?e:t}let p=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,d=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function g(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function y(t,e,n,r){let o,i,a;if(l(t)){if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<i;o++)e.call(n,t[o],o)}else if(c(t))for(o=0,i=(a=Object.keys(t)).length;o<i;o++)e.call(n,t[a[o]],a[o])}function b(t,e){let n,r,o,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(o=t[n],i=e[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function m(t){if(l(t))return t.map(m);if(c(t)){let e=Object.create(null),n=Object.keys(t),r=n.length,o=0;for(;o<r;++o)e[n[o]]=m(t[n[o]]);return e}return t}function x(t){return -1===["__proto__","prototype","constructor"].indexOf(t)}function v(t,e,n,r){if(!x(t))return;let o=e[t],i=n[t];c(o)&&c(i)?M(o,i,r):e[t]=m(i)}function M(t,e,n){let r=l(e)?e:[e],o=r.length;if(!c(t))return t;n=n||{};let i=n.merger||v;for(let a=0;a<o;++a){if(!c(e=r[a]))continue;let s=Object.keys(e);for(let u=0,f=s.length;u<f;++u)i(s[u],t,e,n)}return t}function w(t,e){return M(t,e,{merger:z})}function z(t,e,n){if(!x(t))return;let r=e[t],o=n[t];c(r)&&c(o)?w(r,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=m(o))}let _={"":t=>t,x:t=>t.x,y:t=>t.y};function C(t,e){let n=_[e]||(_[e]=function(t){let e=function(t){let e=t.split("."),n=[],r="";for(let o of e)(r+=o).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(let n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function k(t){return t.charAt(0).toUpperCase()+t.slice(1)}let A=t=>void 0!==t,O=t=>"function"==typeof t,T=(t,e)=>{if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0};function S(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}let E=Math.PI,P=2*E,j=P+E,D=Number.POSITIVE_INFINITY,R=E/180,L=E/2,F=E/4,I=2*E/3,B=Math.log10,N=Math.sign;function H(t){let e=Math.round(t);t=U(t,e,t/1e3)?e:t;let n=Math.pow(10,Math.floor(B(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function W(t){let e;let n=[],r=Math.sqrt(t);for(e=1;e<r;e++)t%e==0&&(n.push(e),n.push(t/e));return r===(0|r)&&n.push(r),n.sort((t,e)=>t-e).pop(),n}function Y(t){return!isNaN(parseFloat(t))&&isFinite(t)}function U(t,e,n){return Math.abs(t-e)<n}function V(t,e){let n=Math.round(t);return n-e<=t&&n+e>=t}function Q(t,e,n){let r,o,i;for(r=0,o=t.length;r<o;r++)isNaN(i=t[r][n])||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function X(t){return t*(E/180)}function $(t){return t*(180/E)}function J(t){if(!u(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Z(t,e){let n=e.x-t.x,r=e.y-t.y,o=Math.atan2(r,n);return o<-.5*E&&(o+=P),{angle:o,distance:Math.sqrt(n*n+r*r)}}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+j)%P-E}function G(t){return(t%P+P)%P}function tt(t,e,n,r){let o=G(t),i=G(e),a=G(n),s=G(i-o),l=G(a-o),c=G(o-i),u=G(o-a);return o===i||o===a||r&&i===a||s>l&&c<u}function te(t,e,n){return Math.max(e,Math.min(n,t))}function tn(t){return te(t,-32768,32767)}function tr(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function to(t,e,n){let r;n=n||(n=>t[n]<e);let o=t.length-1,i=0;for(;o-i>1;)n(r=i+o>>1)?i=r:o=r;return{lo:i,hi:o}}let ti=(t,e,n,r)=>to(t,n,r?r=>t[r][e]<=n:r=>t[r][e]<n),ta=(t,e,n)=>to(t,n,r=>t[r][e]>=n);function ts(t,e,n){let r=0,o=t.length;for(;r<o&&t[r]<e;)r++;for(;o>r&&t[o-1]>n;)o--;return r>0||o<t.length?t.slice(r,o):t}let tl=["push","pop","shift","splice","unshift"];function tc(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),tl.forEach(e=>{let n="_onData"+k(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let o=r.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[n]&&t[n](...e)}),o}})})}function tu(t,e){let n=t._chartjs;if(!n)return;let r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(tl.forEach(e=>{delete t[e]}),delete t._chartjs)}function tf(t){let e,n;let r=new Set;for(e=0,n=t.length;e<n;++e)r.add(t[e]);return r.size===n?t:Array.from(r)}let th="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function tp(t,e,n){let r=n||(t=>Array.prototype.slice.call(t)),o=!1,i=[];return function(...n){i=r(n),o||(o=!0,th.call(window,()=>{o=!1,t.apply(e,i)}))}}function td(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}let tg=t=>"start"===t?"left":"end"===t?"right":"center",ty=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,tb=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function tm(t,e,n){let r=e.length,o=0,i=r;if(t._sorted){let{iScale:a,_parsed:s}=t,l=a.axis,{min:c,max:u,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(o=te(Math.min(ti(s,a.axis,c).lo,n?r:ti(e,l,a.getPixelForValue(c)).lo),0,r-1)),i=h?te(Math.max(ti(s,a.axis,u,!0).hi+1,n?0:ti(e,l,a.getPixelForValue(u),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}function tx(t){let{xScale:e,yScale:n,_scaleRanges:r}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=o,!0;let i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}let tv=t=>0===t||1===t,tM=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*P/n)),tw=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*P/n)+1,tz={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=>-Math.cos(t*L)+1,easeOutSine:t=>Math.sin(t*L),easeInOutSine:t=>-.5*(Math.cos(E*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>tv(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(-Math.pow(2,-10*(2*t-1))+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=>tv(t)?t:tM(t,.075,.3),easeOutElastic:t=>tv(t)?t:tw(t,.075,.3),easeInOutElastic:t=>tv(t)?t:t<.5?.5*tM(2*t,.1125,.45):.5+.5*tw(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-tz.easeOutBounce(1-t),easeOutBounce:t=>t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375,easeInOutBounce:t=>t<.5?.5*tz.easeInBounce(2*t):.5*tz.easeOutBounce(2*t-1)+.5};/*!
* @kurkle/color v0.2.1
* https://github.com/kurkle/color#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT License
*/ function t_(t){return t+.5|0}let tC=(t,e,n)=>Math.max(Math.min(t,n),e);function tk(t){return tC(t_(2.55*t),0,255)}function tA(t){return tC(t_(255*t),0,255)}function tO(t){return tC(t_(t/2.55)/100,0,1)}function tT(t){return tC(t_(100*t),0,100)}let tS={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},tE=[..."0123456789ABCDEF"],tP=t=>tE[15&t],tj=t=>tE[(240&t)>>4]+tE[15&t],tD=t=>(240&t)>>4==(15&t),tR=t=>tD(t.r)&&tD(t.g)&&tD(t.b)&&tD(t.a),tL=(t,e)=>t<255?e(t):"",tF=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tI(t,e,n){let r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function tB(t,e,n){let r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function tN(t,e,n){let r;let o=tI(t,1,.5);for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)o[r]*=1-e-n,o[r]+=e;return o}function tH(t){let e,n,r;let o=t.r/255,i=t.g/255,a=t.b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=(s+l)/2;return s!==l&&(r=s-l,n=c>.5?r/(2-s-l):r/(s+l),e=60*(e=o===s?(i-a)/r+(i<a?6:0):i===s?(a-o)/r+2:(o-i)/r+4)+.5),[0|e,n||0,c]}function tW(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(tA)}function tY(t){return(t%360+360)%360}let tU={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"},tV={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"},tQ=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,tX=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,t$=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function tJ(t,e,n){if(t){let r=tH(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=tW(tI,r,void 0,void 0),t.r=r[0],t.g=r[1],t.b=r[2]}}function tZ(t,e){return t?Object.assign(e||{},t):t}function tq(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=tA(t[3]))):(e=tZ(t,{r:0,g:0,b:0,a:1})).a=tA(e.a),e}class tK{constructor(t){let e;if(t instanceof tK)return t;let n=typeof t;if("object"===n)e=tq(t);else if("string"===n){var o,i;i=t.length,"#"===t[0]&&(4===i||5===i?o={r:255&17*tS[t[1]],g:255&17*tS[t[2]],b:255&17*tS[t[3]],a:5===i?17*tS[t[4]]:255}:(7===i||9===i)&&(o={r:tS[t[1]]<<4|tS[t[2]],g:tS[t[3]]<<4|tS[t[4]],b:tS[t[5]]<<4|tS[t[6]],a:9===i?tS[t[7]]<<4|tS[t[8]]:255})),e=o||function(t){r||((r=function(){let t,e,n,r,o;let i={},a=Object.keys(tV),s=Object.keys(tU);for(t=0;t<a.length;t++){for(e=0,r=o=a[t];e<s.length;e++)n=s[e],o=o.replace(n,tU[n]);n=parseInt(tV[r],16),i[o]=[n>>16&255,n>>8&255,255&n]}return i}()).transparent=[0,0,0,0]);let e=r[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||("r"===t.charAt(0)?function(t){let e,n,r;let o=tQ.exec(t),i=255;if(o){if(o[7]!==e){let a=+o[7];i=o[8]?tk(a):tC(255*a,0,255)}return e=+o[1],n=+o[3],r=+o[5],{r:e=255&(o[2]?tk(e):tC(e,0,255)),g:n=255&(o[4]?tk(n):tC(n,0,255)),b:r=255&(o[6]?tk(r):tC(r,0,255)),a:i}}}(t):function(t){let e;let n=tF.exec(t),r=255;if(!n)return;n[5]!==e&&(r=n[6]?tk(+n[5]):tA(+n[5]));let o=tY(+n[2]),i=+n[3]/100,a=+n[4]/100;return{r:(e="hwb"===n[1]?tW(tN,o,i,a):"hsv"===n[1]?tW(tB,o,i,a):tW(tI,o,i,a))[0],g:e[1],b:e[2],a:r}}(t))}this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=tZ(this._rgb);return t&&(t.a=tO(t.a)),t}set rgb(t){this._rgb=tq(t)}rgbString(){var t;return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${tO(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0}hexString(){var t,e;return this._valid?(e=tR(t=this._rgb)?tP:tj,t?"#"+e(t.r)+e(t.g)+e(t.b)+tL(t.a,e):void 0):void 0}hslString(){return this._valid?function(t){if(!t)return;let e=tH(t),n=e[0],r=tT(e[1]),o=tT(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${tO(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){let n;let r=this.rgb,o=t.rgb,i=e===n?.5:e,a=2*i-1,s=r.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*o.r+.5,r.g=255&l*r.g+n*o.g+.5,r.b=255&l*r.b+n*o.b+.5,r.a=i*r.a+(1-i)*o.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){let r=t$(tO(t.r)),o=t$(tO(t.g)),i=t$(tO(t.b));return{r:tA(tX(r+n*(t$(tO(e.r))-r))),g:tA(tX(o+n*(t$(tO(e.g))-o))),b:tA(tX(i+n*(t$(tO(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new tK(this.rgb)}alpha(t){return this._rgb.a=tA(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=t_(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return tJ(this._rgb,2,t),this}darken(t){return tJ(this._rgb,2,-t),this}saturate(t){return tJ(this._rgb,1,t),this}desaturate(t){return tJ(this._rgb,1,-t),this}rotate(t){var e,n;return(n=tH(e=this._rgb))[0]=tY(n[0]+t),n=tW(tI,n,void 0,void 0),e.r=n[0],e.g=n[1],e.b=n[2],this}}function tG(t){if(t&&"object"==typeof t){let e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function t0(t){return tG(t)?t:new tK(t)}function t1(t){return tG(t)?t:new tK(t).saturate(.5).darken(.1).hexString()}let t2=Object.create(null),t5=Object.create(null);function t6(t,e){if(!e)return t;let n=e.split(".");for(let r=0,o=n.length;r<o;++r){let i=n[r];t=t[i]||(t[i]=Object.create(null))}return t}function t3(t,e,n){return"string"==typeof e?M(t6(t,e),n):M(t6(t,""),e)}var t4=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)=>t1(e.backgroundColor),this.hoverBorderColor=(t,e)=>t1(e.borderColor),this.hoverColor=(t,e)=>t1(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={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return t3(this,t,e)}get(t){return t6(this,t)}describe(t,e){return t3(t5,t,e)}override(t,e){return t3(t2,t,e)}route(t,e,n,r){let o=t6(this,t),i=t6(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let t=this[a],e=i[r];return c(t)?Object.assign({},e,t):h(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function t8(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function t7(t,e,n,r){let o,i,a,s,c;let u=(r=r||{}).data=r.data||{},f=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(u=r.data={},f=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let h=0,p=n.length;for(o=0;o<p;o++)if(null!=(s=n[o])&&!0!==l(s))h=t8(t,u,f,h,s);else if(l(s))for(i=0,a=s.length;i<a;i++)null==(c=s[i])||l(c)||(h=t8(t,u,f,h,c));t.restore();let d=f.length/2;if(d>n.length){for(o=0;o<d;o++)delete u[f[o]];f.splice(0,d)}return h}function t9(t,e,n){let r=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*r)/r+o}function et(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ee(t,e,n,r){en(t,e,n,r,null)}function en(t,e,n,r,o){let i,a,s,l,c,u;let f=e.pointStyle,h=e.rotation,p=e.radius,d=(h||0)*R;if(f&&"object"==typeof f&&("[object HTMLImageElement]"===(i=f.toString())||"[object HTMLCanvasElement]"===i)){t.save(),t.translate(n,r),t.rotate(d),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),t.restore();return}if(!isNaN(p)&&!(p<=0)){switch(t.beginPath(),f){default:o?t.ellipse(n,r,o/2,p,0,0,P):t.arc(n,r,p,0,P),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(d)*p,r-Math.cos(d)*p),d+=I,t.lineTo(n+Math.sin(d)*p,r-Math.cos(d)*p),d+=I,t.lineTo(n+Math.sin(d)*p,r-Math.cos(d)*p),t.closePath();break;case"rectRounded":c=.516*p,a=Math.cos(d+F)*(l=p-c),s=Math.sin(d+F)*l,t.arc(n-a,r-s,c,d-E,d-L),t.arc(n+s,r-a,c,d-L,d),t.arc(n+a,r+s,c,d,d+L),t.arc(n-s,r+a,c,d+L,d+E),t.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*p,u=o?o/2:l,t.rect(n-u,r-l,2*u,2*l);break}d+=F;case"rectRot":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+s,r-a),t.lineTo(n+a,r+s),t.lineTo(n-s,r+a),t.closePath();break;case"crossRot":d+=F;case"cross":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"star":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a),d+=F,a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"line":a=o?o/2:Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(d)*p,r+Math.sin(d)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function er(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function eo(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ei(t){t.restore()}function ea(t,e,n,r,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){let i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function es(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function el(t,e,n,r,o,i={}){var a;let c,u;let f=l(e)?e:[e],h=i.strokeWidth>0&&""!==i.strokeColor;for(t.save(),t.font=o.string,a=t,i.translation&&a.translate(i.translation[0],i.translation[1]),s(i.rotation)||a.rotate(i.rotation),i.color&&(a.fillStyle=i.color),i.textAlign&&(a.textAlign=i.textAlign),i.textBaseline&&(a.textBaseline=i.textBaseline),c=0;c<f.length;++c)u=f[c],h&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),s(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(u,n,r,i.maxWidth)),t.fillText(u,n,r,i.maxWidth),function(t,e,n,r,o){if(o.strikethrough||o.underline){let i=t.measureText(r),a=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}(t,n,r,u,i),r+=o.lineHeight;t.restore()}function ec(t,e){let{x:n,y:r,w:o,h:i,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-L,E,!0),t.lineTo(n,r+i-a.bottomLeft),t.arc(n+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,E,L,!0),t.lineTo(n+o-a.bottomRight,r+i),t.arc(n+o-a.bottomRight,r+i-a.bottomRight,a.bottomRight,L,0,!0),t.lineTo(n+o,r+a.topRight),t.arc(n+o-a.topRight,r+a.topRight,a.topRight,0,-L,!0),t.lineTo(n+a.topLeft,r)}let eu=RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ef=RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/),eh=t=>+t||0;function ep(t,e){let n={},r=c(e),o=r?Object.keys(e):e,i=c(t)?r?n=>h(t[n],t[e[n]]):e=>t[e]:()=>t;for(let a of o)n[a]=eh(i(a));return n}function ed(t){return ep(t,{top:"y",right:"x",bottom:"y",left:"x"})}function eg(t){return ep(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ey(t){let e=ed(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function eb(t,e){t=t||{},e=e||t4.font;let n=h(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=h(t.style,e.style);r&&!(""+r).match(ef)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");let o={family:h(t.family,e.family),lineHeight:function(t,e){let n=(""+t).match(eu);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}(h(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:h(t.weight,e.weight),string:""};return o.string=!o||s(o.size)||s(o.family)?null:(o.style?o.style+" ":"")+(o.weight?o.weight+" ":"")+o.size+"px "+o.family,o}function em(t,e,n,r){let o,i,a,s=!0;for(o=0,i=t.length;o<i;++o)if(void 0!==(a=t[o])&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&l(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function ex(t,e,n){let{min:r,max:o}=t,i=d(e,(o-r)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function ev(t,e){return Object.assign(Object.create(t),e)}function eM(t,e=[""],n=t,r,o=()=>t[0]){A(r)||(r=eT("_fallback",t));let i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>eM([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>eC(n,r,()=>(function(t,e,n,r){let o;for(let i of e)if(A(o=eT(ez(i,t),n)))return e_(t,o)?eA(n,r,t,o):o})(r,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>eS(t).includes(e),ownKeys:t=>eS(t),set(t,e,n){let r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function ew(t,e={scriptable:!0,indexable:!0}){let{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:O(n)?n:()=>n,isIndexable:O(r)?r:()=>r}}let ez=(t,e)=>t?t+k(e):e,e_=(t,e)=>c(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function eC(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];let r=n();return t[e]=r,r}let ek=(t,e)=>!0===t?e:"string"==typeof t?C(e,t):void 0;function eA(t,e,n,r){var o;let i=e._rootScopes,a=O(o=e._fallback)?o(n,r):o,s=[...t,...i],u=new Set;u.add(r);let f=eO(u,s,n,a||n,r);return!(null===f||A(a)&&a!==n&&null===(f=eO(u,s,a,f,r)))&&eM(Array.from(u),[""],i,a,()=>(function(t,e,n){let r=t._getTarget();e in r||(r[e]={});let o=r[e];return l(o)&&c(n)?n:o})(e,n,r))}function eO(t,e,n,r,o){for(;n;)n=function(t,e,n,r,o){for(let i of e){let a=ek(n,i);if(a){var s;t.add(a);let l=O(s=a._fallback)?s(n,o):s;if(A(l)&&l!==n&&l!==r)return l}else if(!1===a&&A(r)&&n!==r)return null}return!1}(t,e,n,r,o);return n}function eT(t,e){for(let n of e){if(!n)continue;let r=n[t];if(A(r))return r}}function eS(t){let e=t._keys;return e||(e=t._keys=function(t){let e=new Set;for(let n of t)for(let r of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(r);return Array.from(e)}(t._scopes)),e}function eE(t,e,n,r){let o,i,a;let{iScale:s}=t,{key:l="r"}=this._parsing,c=Array(r);for(o=0;o<r;++o)a=e[i=o+n],c[o]={r:s.parse(C(a,l),i)};return c}let eP=Number.EPSILON||1e-14,ej=(t,e)=>e<t.length&&!t[e].skip&&t[e],eD=t=>"x"===t?"y":"x";function eR(t,e,n){return Math.max(Math.min(t,n),e)}function eL(t,e,n,r,o){let i,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){let n,r,o;let i=eD(e),a=t.length,s=Array(a).fill(0),l=Array(a),c=ej(t,0);for(n=0;n<a;++n)if(r=o,o=c,c=ej(t,n+1),o){if(c){let u=c[e]-o[e];s[n]=0!==u?(c[i]-o[i])/u:0}l[n]=r?c?N(s[n-1])!==N(s[n])?0:(s[n-1]+s[n])/2:s[n-1]:s[n]}!function(t,e,n){let r,o,i,a,s;let l=t.length,c=ej(t,0);for(let u=0;u<l-1;++u)if(s=c,c=ej(t,u+1),s&&c){if(U(e[u],0,eP)){n[u]=n[u+1]=0;continue}(a=Math.pow(r=n[u]/e[u],2)+Math.pow(o=n[u+1]/e[u],2))<=9||(i=3/Math.sqrt(a),n[u]=r*i*e[u],n[u+1]=o*i*e[u])}}(t,s,l),function(t,e,n="x"){let r,o,i;let a=eD(n),s=t.length,l=ej(t,0);for(let c=0;c<s;++c){if(o=i,i=l,l=ej(t,c+1),!i)continue;let u=i[n],f=i[a];o&&(r=(u-o[n])/3,i[`cp1${n}`]=u-r,i[`cp1${a}`]=f-r*e[c]),l&&(r=(l[n]-u)/3,i[`cp2${n}`]=u+r,i[`cp2${a}`]=f+r*e[c])}}(t,l,e)}(t,o);else{let c=r?t[t.length-1]:t[0];for(i=0,a=t.length;i<a;++i)l=function(t,e,n,r){let o=t.skip?e:t,i=n.skip?e:n,a=q(e,o),s=q(i,e),l=a/(a+s),c=s/(a+s);l=isNaN(l)?0:l,c=isNaN(c)?0:c;let u=r*l,f=r*c;return{previous:{x:e.x-u*(i.x-o.x),y:e.y-u*(i.y-o.y)},next:{x:e.x+f*(i.x-o.x),y:e.y+f*(i.y-o.y)}}}(c,s=t[i],t[Math.min(i+1,a-(r?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}e.capBezierPoints&&function(t,e){let n,r,o,i,a;let s=er(t[0],e);for(n=0,r=t.length;n<r;++n)a=i,i=s,s=n<r-1&&er(t[n+1],e),i&&(o=t[n],a&&(o.cp1x=eR(o.cp1x,e.left,e.right),o.cp1y=eR(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=eR(o.cp2x,e.left,e.right),o.cp2y=eR(o.cp2y,e.top,e.bottom)))}(t,n)}function eF(){return"undefined"!=typeof window&&"undefined"!=typeof document}function eI(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function eB(t,e,n){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}let eN=t=>window.getComputedStyle(t,null),eH=["top","right","bottom","left"];function eW(t,e,n){let r={};n=n?"-"+n:"";for(let o=0;o<4;o++){let i=eH[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let eY=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function eU(t,e){if("native"in t)return t;let{canvas:n,currentDevicePixelRatio:r}=e,o=eN(n),i="border-box"===o.boxSizing,a=eW(o,"padding"),s=eW(o,"border","width"),{x:l,y:c,box:u}=function(t,e){let n,r;let o=t.touches,i=o&&o.length?o[0]:t,{offsetX:a,offsetY:s}=i,l=!1;if(eY(a,s,t.target))n=a,r=s;else{let c=e.getBoundingClientRect();n=i.clientX-c.left,r=i.clientY-c.top,l=!0}return{x:n,y:r,box:l}}(t,n),f=a.left+(u&&s.left),h=a.top+(u&&s.top),{width:p,height:d}=e;return i&&(p-=a.width+s.width,d-=a.height+s.height),{x:Math.round((l-f)/p*n.width/r),y:Math.round((c-h)/d*n.height/r)}}let eV=t=>Math.round(10*t)/10;function eQ(t,e,n,r){let o=eN(t),i=eW(o,"margin"),a=eB(o.maxWidth,t,"clientWidth")||D,s=eB(o.maxHeight,t,"clientHeight")||D,l=function(t,e,n){let r,o;if(void 0===e||void 0===n){let i=eI(t);if(i){let a=i.getBoundingClientRect(),s=eN(i),l=eW(s,"border","width"),c=eW(s,"padding");e=a.width-c.width-l.width,n=a.height-c.height-l.height,r=eB(s.maxWidth,i,"clientWidth"),o=eB(s.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||D,maxHeight:o||D}}(t,e,n),{width:c,height:u}=l;if("content-box"===o.boxSizing){let f=eW(o,"border","width"),h=eW(o,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?Math.floor(c/r):u-i.height),c=eV(Math.min(c,a,l.maxWidth)),u=eV(Math.min(u,s,l.maxHeight)),c&&!u&&(u=eV(c/2)),{width:c,height:u}}function eX(t,e,n){let r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;let a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}let e$=function(){let t=!1;try{let e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(n){}return t}();function eJ(t,e){let n=eN(t).getPropertyValue(e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function eZ(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function eq(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function eK(t,e,n,r){let o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=eZ(t,o,n),s=eZ(o,i,n),l=eZ(i,e,n),c=eZ(a,s,n),u=eZ(s,l,n);return eZ(c,u,n)}let eG=new Map;function e0(t,e,n){return(function(t,e){e=e||{};let n=t+JSON.stringify(e),r=eG.get(n);return r||(r=new Intl.NumberFormat(t,e),eG.set(n,r)),r})(e,n).format(t)}function e1(t,e,n){var r;return t?(r=n,{x:t=>e+e+r-t,setWidth(t){r=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function e2(t,e){let n,r;("ltr"===e||"rtl"===e)&&(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function e5(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function e6(t){return"angle"===t?{between:tt,compare:K,normalize:G}:{between:tr,compare:(t,e)=>t-e,normalize:t=>t}}function e3({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:o}}function e4(t,e,n){let r,o,i;if(!n)return[t];let{property:a,start:s,end:l}=n,c=e.length,{compare:u,between:f,normalize:h}=e6(a),{start:p,end:d,loop:g,style:y}=function(t,e,n){let r;let{property:o,start:i,end:a}=n,{between:s,normalize:l}=e6(o),c=e.length,{start:u,end:f,loop:h}=t;if(h){for(u+=c,f+=c,r=0;r<c&&s(l(e[u%c][o]),i,a);++r)u--,f--;u%=c,f%=c}return f<u&&(f+=c),{start:u,end:f,loop:h,style:t.style}}(t,e,n),b=[],m=!1,x=null,v=()=>f(s,i,r)&&0!==u(s,i),M=()=>0===u(l,r)||f(l,i,r),w=()=>m||v(),z=()=>!m||M();for(let _=p,C=p;_<=d;++_)(o=e[_%c]).skip||(r=h(o[a]))===i||(m=f(r,s,l),null===x&&w()&&(x=0===u(r,s)?_:C),null!==x&&z()&&(b.push(e3({start:x,end:_,loop:g,count:c,style:y})),x=null),C=_,i=r);return null!==x&&b.push(e3({start:x,end:d,loop:g,count:c,style:y})),b}function e8(t,e){let n=[],r=t.segments;for(let o=0;o<r.length;o++){let i=e4(r[o],t.points,e);i.length&&n.push(...i)}return n}function e7(t,e){let n=t.points,r=t.options.spanGaps,o=n.length;if(!o)return[];let i=!!t._loop,{start:a,end:s}=function(t,e,n,r){let o=0,i=e-1;if(n&&!r)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(i+=o);i>o&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);if(!0===r)return e9(t,[{start:a,end:s,loop:i}],n,e);let l=!!t._fullLoop&&0===a&&s===o-1;return e9(t,function(t,e,n,r){let o;let i=t.length,a=[],s=e,l=t[e];for(o=e+1;o<=n;++o){let c=t[o%i];c.skip||c.stop?l.skip||(r=!1,a.push({start:e%i,end:(o-1)%i,loop:r}),e=s=c.stop?o:null):(s=o,l.skip&&(e=o)),l=c}return null!==s&&a.push({start:e%i,end:s%i,loop:r}),a}(n,a,s<a?s+o:s,l),n,e)}function e9(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){let o=t._chart.getContext(),i=nt(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[],u=i,f=e[0].start,h=f;function p(t,e,r,o){let i=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=i;for(;n[e%l].skip;)e+=i;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:r,style:o}),u=o,f=e%l)}}for(let d of e){let g;let y=n[(f=s?f:d.start)%l];for(h=f+1;h<=d.end;h++){var b,m;let x=n[h%l];b=g=nt(r.setContext(ev(o,{type:"segment",p0:y,p1:x,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),(m=u)&&JSON.stringify(b)!==JSON.stringify(m)&&p(f,h-1,d.loop,u),y=x,u=g}f<h-1&&p(f,h-1,d.loop,u)}return c}(t,e,n,r):e}function nt(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}}}]);