1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2469],{79673:function(e,l,t){var n;n=(e,l)=>(()=>{"use strict";var t={
1"./common/index.ts":(e,l,t)=>{t.r(l),t.d(l,{dataMatch:()=>r,optionsUpdateState:()=>i});var n=function(e,l){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>l.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>l.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};Object.is||Object.defineProperty(Object,"is",{value:function(e,l){return e===l&&(0!==e||1/e==1/l)||e!=e&&l!=l}});var i=function(e,l){var t=e.width,i=e.height,r=n(e,["width","height"]),o=l.width,u=l.height,s=n(l,["width","height"]),a="keep";if((i!==u||t!==o)&&(a="update"),Object.keys(r).length!==Object.keys(s).length)return"create";for(var f=0,c=Object.keys(r);f<c.length;f++){var h=c[f];if(!Object.is(r[h],s[h])){a="create";break}}return a},r=function(e,l){return e.length===l.length&&e.every(function(e,t){var n=l[t];return e.length===n.length&&e.every(function(e,l){return e===n[l]})})}}
1,react:l=>{l.exports=e},uplot:e=>{e.exports=l}},n={};function i(e){var l=n[e];if(void 0!==l)return l.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.n=e=>{var l=e&&e.__esModule?()=>e.default:()=>e;return i.d(l,{a:l}),l},i.d=(e,l)=>{for(var t in l)i.o(l,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:l[t]})},i.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{i.r(r),i.d(r,{default:()=>u});var e=i("react"),l=i.n(e),t=i("uplot"),n=i.n(t),o=i("./common/index.ts");function u(t){var i=t.options,r=t.data,u=t.target,s=t.onDelete,a=t.onCreate,f=t.resetScales,c=void 0===f||f,h=t.className,d=(0,e.useRef)(null),p=(0,e.useRef)(null),m=(0,e.useRef)(i),g=(0,e.useRef)(u),x=(0,e.useRef)(r),w=(0,e.useRef)(a),v=(0,e.useRef)(s);(0,e.useEffect)(function(){w.current=a,v.current=s});var b=(0,e.useCallback)(function(e){var l;e&&(null===(l=v.current)||void 0===l||l.call(v,e),e.destroy(),d.current=null)},[]),y=(0,e.useCallback)(function(){var e,l=new(n())(m.current,x.current,g.current||p.current);d.current=l,null===(e=w.current)||void 0===e||e.call(w,l)},[]);return(0,e.useEffect)(function(){return y(),function(){b(d.current)}},[y,b]),(0,e.useEffect)(function(){if(m.current!==i){var e=(0,o.optionsUpdateState)(m.current,i);m.current=i,d.current&&"create"!==e?"update"===e&&d.current.setSize({width:i.width,height:i.height}):(b(d.current),y())}},[i,y,b]),(0,e.useEffect)(function(){x.current!==r&&(d.current?(0,o.dataMatch)(x.current,r)||(c?d.current.setData(r,!0):(d.current.setData(r,!1),d.current.redraw())):(x.current=r,y()),x.current=r)},[r,c,y]),(0,e.useEffect)(function(){return g.current!==u&&(g.current=u,y()),function(){return b(d.current)}},[u,y,b]),u?null:l().createElement("div",{ref:p,className:h})}})(),r=r.default})(),e.exports=n(t(12115),t(24045))},24045:(e,l,t)=>{"use strict";let n,i;t.r(l),t.d(l,{default:()=>tz});let r="u-off",o="u-label",u="width",s="height",a="bottom",f="left",c="right",h="#000",d=h+"0",p="mousemove",m="mousedown",g="mouseup",x="mouseenter",w="mouseleave",v="dblclick",b="change",y="dppxchange",_="undefined"!=typeof window,k=_?document:null,M=_?window:null,S=_?navigator:null;function E(e,l){if(null!=l){let t=e.classList;t.contains(l)||t.add(l)}}function T(e,l){let t=e.classList;t.contains(l)&&t.remove(l)}function P(e,l,t){e.style[l]=t+"px"}function D(e,l,t,n){let i=k.createElement(e);return null!=l&&E(i,l),null!=t&&t.insertBefore(i,n),i}function z(e,l){return D("div",e,l)}let A=new WeakMap;function O(e,l,t,n,i){let o="translate("+l+"px,"+t+"px)";o!=A.get(e)&&(e.style.transform=o,A.set(e,o),l<0||t<0||l>n||t>i?E(e,r):T(e,r))}let C=new WeakMap;function W(e,l,t){let n=l+t;n!=C.get(e)&&(C.set(e,n),e.style.background=l,e.style.borderColor=t)}let j=new WeakMap;function Y(e,l,t,n){let i=l+""+t;i!=j.get(e)&&(j.set(e,i),e.style.height=t+"px",e.style.width=l+"px",e.style.marginLeft=n?-l/2+"px":0,e.style.marginTop=n?-t/2+"px":0)}let R={passive:!0},H={...R,capture:!0};function I(e,l,t,n){l.addEventListener(e,t,n?H:R)}function F(e,l,t,n){l.removeEventListener(e,t,R)}function G(e,l,t,n){let i;t=t||0;let r=(n=n||l.length-1)<=0x7fffffff;for(;n-t>1;)l[i=r?t+n>>1:eo((t+n)/2)]<e?t=i:n=i;return e-l[t]<=l[n]-e?t:n}function L(e){return(l,t,n)=>{let i=-1,r=-1;for(let r=t;r<=n;r++)if(e(l[r])){i=r;break}for(let i=n;i>=t;i--)if(e(l[i])){r=i;break}return[i,r]}}_&&function e(){let l=devicePixelRatio;n!=l&&(n=l,i&&F(b,i,e),I(b,i=matchMedia(`(min-resolution: ${n-.001}dppx) and (max-resolution: ${n+.001}dppx)`),e),M.dispatchEvent(new CustomEvent(y)))}();let N=e=>null!=e,U=e=>null!=e&&e>0,V=L(N),B=L(U);function $(e,l,t,n){let i=eh(e),r=eh(l);e==l&&(-1==i?(e*=t,l/=t):(e/=t,l*=t));let o=10==t?ed:ep,u=(1==i?eo:es)(o(er(e))),s=(1==r?es:eo)(o(er(l))),a=ec(t,u),f=ec(t,s);return 10==t&&(u<0&&(a=eO(a,-u)),s<0&&(f=eO(f,-s))),n||2==t?(e=a*i,l=f*r):(e=eA(e,a),l=ez(l,f)),[e,l]}function J(e,l,t,n){let i=$(e,l,t,n);return 0==e&&(i[0]=0),0==l&&(i[1]=0),i}let q={mode:3,pad:.1},K={pad:0,soft:null,mode:0},X={min:K,max:K};function Z(e,l,t,n){return eN(t)?ee(e,l,t):(K.pad=t,K.soft=n?0:null,K.mode=n?3:0,ee(e,l,X))}function Q(e,l){return null==e?l:e}function ee(e,l,t){let n=t.min,i=t.max,r=Q(n.pad,0),o=Q(i.pad,0),u=Q(n.hard,-ex),s=Q(i.hard,ex),a=Q(n.soft,ex),f=Q(i.soft,-ex),c=Q(n.mode,0),h=Q(i.mode,0),d=l-e,p=ed(d),m=ef(er(e),er(l)),g=er(ed(m)-p);(d<1e-24||g>10)&&(d=0,(0==e||0==l)&&(d=1e-24,2==c&&a!=ex&&(r=0),2==h&&f!=-ex&&(o=0)));let x=d||m||1e3,w=ec(10,eo(ed(x))),v=x*(0==d?0==e?.1:1:r),b=eO(eA(e-v,w/10),24),y=e>=a&&(1==c||3==c&&b<=a||2==c&&b>=a)?a:ex,_=ef(u,b<y&&e>=y?y:ea(y,b)),k=x*(0==d?0==l?.1:1:o),M=eO(ez(l+k,w/10),24),S=l<=f&&(1==h||3==h&&M>=f||2==h&&M<=f)?f:-ex,E=ea(s,M>S&&l<=S?S:ef(S,M));return _==E&&0==_&&(E=100),[_,E]}let el=new Intl.NumberFormat(_?S.language:"en-US"),et=e=>
1el.format(e),en=Math,ei=en.PI,er=en.abs,eo=en.floor,eu=en.round,es=en.ceil,ea=en.min,ef=en.max,ec=en.pow,eh=en.sign,ed=en.log10,ep=en.log2,em=(e,l=1)=>en.sinh(e)*l,eg=(e,l=1)=>en.asinh(e/l),ex=1/0;function ew(e){return(0|ed((e^e>>31)-(e>>31)))+1}function ev(e,l,t){return ea(ef(e,l),t)}function eb(e){return"function"==typeof e}function ey(e){return eb(e)?e:()=>e}let e_=e=>e,ek=(e,l)=>l,eM=e=>null,eS=e=>!0,eE=(e,l)=>e==l,eT=/\.\d*?(?=9{6,}|0{6,})/gm,eP=e=>{if(eF(e)||eC.has(e))return e;let l=`${e}`,t=l.match(eT);if(null==t)return e;let n=t[0].length-1;if(-1!=l.indexOf("e-")){let[e,t]=l.split("e");return+`${eP(e)}e${t}`}return eO(e,n)};function eD(e,l){return eP(eO(eP(e/l))*l)}function ez(e,l){return eP(es(eP(e/l))*l)}function eA(e,l){return eP(eo(eP(e/l))*l)}function eO(e,l=0){if(eF(e))return e;let t=10**l;return eu(e*t*(1+Number.EPSILON))/t}let eC=new Map;function eW(e){return((""+e).split(".")[1]||"").length}function ej(e,l,t,n){let i=[],r=n.map(eW);for(let o=l;o<t;o++){let l=er(o),t=eO(ec(e,o),l);for(let u=0;u<n.length;u++){let s=10==e?+`${n[u]}e${o}`:n[u]*t,a=(o>=0?0:l)+(o>=r[u]?0:r[u]),f=10==e?s:eO(s,a);i.push(f),eC.set(f,a)}}return i}let eY={},eR=[],eH=[null,null],eI=Array.isArray,eF=Number.isInteger,eG=e=>void 0===e;function eL(e){return"string"==typeof e}function eN(e){let l=!1;if(null!=e){let t=e.constructor;l=null==t||t==Object}return l}function eU(e){return null!=e&&"object"==typeof e}let eV=Object.getPrototypeOf(Uint8Array),eB="__proto__";function e$(e,l=eN){let t;if(eI(e)){let n=e.find(e=>null!=e);if(eI(n)||l(n)){t=Array(e.length);for(let n=0;n<e.length;n++)t[n]=e$(e[n],l)}else t=e.slice()}else if(e instanceof eV)t=e.slice();else if(l(e))for(let n in t={},e)n!=eB&&(t[n]=e$(e[n],l));else t=e;return t}function eJ(e){let l=arguments;for(let t=1;t<l.length;t++){let n=l[t];for(let l in n)l!=eB&&(eN(e[l])?eJ(e[l],e$(n[l])):e[l]=e$(n[l]))}return e}let eq="undefined"==typeof queueMicrotask?e=>Promise.resolve().then(e):queueMicrotask,eK=["January","February","March","April","May","June","July","August","September","October","November","December"],eX=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function eZ(e){return e.slice(0,3)}let eQ=eX.map(eZ),e0=eK.map(eZ),e1={MMMM:eK,MMM:e0,WWWW:eX,WWW:eQ};function e2(e){return(e<10?"0":"")+e}let e3={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,l)=>l.MMMM[e.getMonth()],MMM:(e,l)=>l.MMM[e.getMonth()],MM:e=>e2(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>e2(e.getDate()),D:e=>e.getDate(),WWWW:(e,l)=>l.WWWW[e.getDay()],WWW:(e,l)=>l.WWW[e.getDay()],HH:e=>e2(e.getHours()),H:e=>e.getHours(),h:e=>{let l=e.getHours();return 0==l?12:l>12?l-12:l},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>e2(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>e2(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>{var l;return((l=e.getMilliseconds())<10?"00":l<100?"0":"")+l}};function e5(e,l){l=l||e1;let t=[],n=/\{([a-z]+)\}|[^{]+/gi,i;for(;i=n.exec(e);)t.push("{"==i[0][0]?e3[i[1]]:i[0]);return e=>{let n="";for(let i=0;i<t.length;i++)n+="string"==typeof t[i]?t[i]:t[i](e,l);return n}}let e4=new Intl.DateTimeFormat().resolvedOptions().timeZone,e6=e=>e%1==0,e7=[1,2,2.5,5],e8=ej(10,-32,0,e7),e9=ej(10,0,32,e7),le=e9.filter(e6),ll=e8.concat(e9),lt="{YYYY}",ln="\n"+lt,li="{M}/{D}",lr="\n"+li,lo=lr+"/{YY}",lu="{aa}",ls="{h}:{mm}"+lu,la="\n"+ls,lf=":{ss}";function lc(e){let l=1e3*e,t=60*l,n=60*t,i=24*n,r=30*i,o=365*i;return[(1==e?ej(10,0,3,e7).filter(e6):ej(10,-3,0,e7)).concat([l,5*l,10*l,15*l,30*l,t,5*t,10*t,15*t,30*t,n,2*n,3*n,4*n,6*n,8*n,12*n,i,2*i,3*i,4*i,5*i,6*i,7*i,8*i,9*i,10*i,15*i,r,2*r,3*r,4*r,6*r,o,2*o,5*o,10*o,25*o,50*o,100*o]),[[o,lt,null,null,null,null,null,null,1],[28*i,"{MMM}",ln,null,null,null,null,null,1],[i,li,ln,null,null,null,null,null,1],[n,"{h}"+lu,lo,null,lr,null,null,null,1],[t,ls,lo,null,lr,null,null,null,1],[l,lf,lo+" "+ls,null,lr+" "+ls,null,la,null,1],[e,lf+".{fff}",lo+" "+ls,null,lr+" "+ls,null,la,null,1]],function(l){return(u,s,a,f,c,h)=>{let d=[],p=c>=o,m=c>=r&&c<o,g=l(a),x=eO(g*e,3),w=lb(g.getFullYear(),p?0:g.getMonth(),m||p?1:g.getDate()),v=eO(w*e,3);if(m||p){let t=m?c/r:0,n=p?c/o:0,i=x==v?x:eO(lb(w.getFullYear()+n,w.getMonth()+t,1)*e,3),u=new Date(eu(i/e)),s=u.getFullYear(),a=u.getMonth();for(let r=0;i<=f;r++){let o=lb(s+n*r,a+t*r,1),u=o-l(eO(o*e,3));(i=eO((+o+u)*e,3))<=f&&d.push(i)}}else{let r=v+(eo(a)-eo(x))+ez(x-v,c>=i?i:c);d.push(r);let o=l(r),p=o.getHours()+o.getMinutes()/t+o.getSeconds()/n,m=c/n,g=h/u.axes[s]._space;for(;!((r=eO(r+c,1==e?0:3))>f);)if(m>1){let e=eo(eO(p+m,6))%24,t=l(r).getHours()-e;t>1&&(t=-1),r-=t*n,p=(p+m)%24,eO((r-d[d.length-1])/c,3)*g>=.7&&d.push(r)}else d.push(r)}return d}}]}let[lh,ld,lp]=lc(1),[lm,lg,lx]=lc(.001);function lw(e,l){return e.map(e=>e.map((t,n)=>
10==n||8==n||null==t?t:l(1==n||0==e[8]?t:e[1]+t)))}function lv(e,l){return(t,n,i,r,o)=>{let u,s,a,f,c,h,d=l.find(e=>o>=e[0])||l[l.length-1];return n.map(l=>{let t=e(l),n=t.getFullYear(),i=t.getMonth(),r=t.getDate(),o=t.getHours(),p=t.getMinutes(),m=t.getSeconds(),g=n!=u&&d[2]||i!=s&&d[3]||r!=a&&d[4]||o!=f&&d[5]||p!=c&&d[6]||m!=h&&d[7]||d[1];return u=n,s=i,a=r,f=o,c=p,h=m,g(t)})}}function lb(e,l,t){return new Date(e,l,t)}function ly(e,l){return(t,n,i,r)=>null==r?"--":l(e(n))}ej(2,-53,53,[1]);let l_={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(e,l){let t=e.series[l];return t.width?t.stroke(e,l):t.points.width?t.points.stroke(e,l):null},fill:function(e,l){return e.series[l].fill(e,l)},dash:"solid"},idx:null,idxs:null,values:[]},lk=[0,0];function lM(e,l,t,n=!0){return e=>{0!=e.button||n&&e.target!=l||t(e)}}function lS(e,l,t,n=!0){return e=>{n&&e.target!=l||t(e)}}let lE={show:!0,x:!0,y:!0,lock:!1,move:function(e,l,t){return lk[0]=l,lk[1]=t,lk},points:{one:!1,show:function(e,l){let t=e.cursor.points,n=z(),i=t.size(e,l);P(n,u,i),P(n,s,i);let r=-(i/2);P(n,"marginLeft",r),P(n,"marginTop",r);let o=t.width(e,l,i);return o&&P(n,"borderWidth",o),n},size:function(e,l){return e.series[l].points.size},width:0,stroke:function(e,l){let t=e.series[l].points;return t._stroke||t._fill},fill:function(e,l){let t=e.series[l].points;return t._fill||t._stroke}},bind:{mousedown:lM,mouseup:lM,click:lM,dblclick:lM,mousemove:lS,mouseleave:lS,mouseenter:lS},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,l)=>{l.stopPropagation(),l.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,l,t,n,i)=>n-i,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},lT={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},lP=eJ({},lT,{filter:ek}),lD=eJ({},lP,{size:10}),lz=eJ({},lT,{show:!1}),lA='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',lO="bold "+lA,lC={show:!0,scale:"x",stroke:h,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:lO,side:2,grid:lP,ticks:lD,border:lz,font:lA,lineGap:1.5,rotate:0},lW={show:!0,scale:"x",auto:!1,sorted:1,min:ex,max:-ex,idxs:[]};function lj(e,l,t,n,i){return l.map(e=>null==e?"":et(e))}function lY(e,l,t,n,i,r,o){let u=[],s=eC.get(i)||0;t=o?t:eO(ez(t,i),s);for(let e=t;e<=n;e=eO(e+i,s))u.push(Object.is(e,-0)?0:e);return u}function lR(e,l,t,n,i,r,o){let u=[],s=e.scales[e.axes[l].scale].log,a=eo((10==s?ed:ep)(t));i=ec(s,a),10==s&&(i=ll[G(i,ll)]);let f=t,c=i*s;10==s&&(c=ll[G(c,ll)]);do u.push(f),f+=i,10!=s||eC.has(f)||(f=eO(f,eC.get(i))),f>=c&&(c=(i=f)*s,10==s&&(c=ll[G(c,ll)]));while(f<=n);return u}function lH(e,l,t,n,i,r,o){let u=e.scales[e.axes[l].scale].asinh,s=n>u?lR(e,l,ef(u,t),n,i):[u],a=n>=0&&t<=0?[0]:[];return(t<-u?lR(e,l,ef(u,-n),-t,i):[u]).reverse().map(e=>-e).concat(a,s)}let lI=/./,lF=/[12357]/,lG=/[125]/,lL=/1/,lN=(e,l,t,n)=>e.map((e,i)=>4==l&&0==e||i%n==0&&t.test(e.toExponential()[e<0?1:0])?e:null);function lU(e,l,t,n,i){let r=e.axes[t],o=r.scale,u=e.scales[o],s=e.valToPos,a=r._space,f=s(10,o),c=s(9,o)-f>=a?lI:s(7,o)-f>=a?lF:s(5,o)-f>=a?lG:lL;if(c==lL){let e=er(s(1,o)-f);if(e<a)return lN(l.slice().reverse(),u.distr,c,es(a/e)).reverse()}return lN(l,u.distr,c,1)}function lV(e,l,t,n,i){let r=e.axes[t],o=r.scale,u=r._space,s=e.valToPos,a=er(s(1,o)-s(2,o));return a<u?lN(l.slice().reverse(),3,lI,es(u/a)).reverse():l}function lB(e,l,t,n){return null==n?"--":null==l?"":et(l)}let l$={show:!0,scale:"y",stroke:h,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:lO,side:3,grid:lP,ticks:lD,border:lz,font:lA,lineGap:1.5,rotate:0},lJ={scale:null,auto:!0,sorted:0,min:ex,max:-ex},lq=(e,l,t,n,i)=>i,lK={show:!0,auto:!0,sorted:0,gaps:lq,alpha:1,facets:[eJ({},lJ,{scale:"x"}),eJ({},lJ,{scale:"y"})]},lX={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:lq,alpha:1,points:{show:function(e,l){let{scale:t,idxs:i}=e.series[0],r=e._data[0],o=e.valToPos(r[i[0]],t,!0),u=er(e.valToPos(r[i[1]],t,!0)-o)/(e.series[l].points.space*n);return i[1]-i[0]<=u},filter:null},values:null,min:ex,max:-ex,idxs:[],path:null,clip:null};function lZ(e,l,t,n,i){return t/10}
1let lQ={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},l0=eJ({},lQ,{time:!1,ori:1}),l1={};function l2(e,l){let t=l1[e];return t||(t={key:e,plots:[],sub(e){t.plots.push(e)},unsub(e){t.plots=t.plots.filter(l=>l!=e)},pub(e,l,n,i,r,o,u){for(let s=0;s<t.plots.length;s++)t.plots[s]!=l&&t.plots[s].pub(e,l,n,i,r,o,u)}},null==e||(l1[e]=t)),t}function l3(e,l,t){let n=e.mode,i=e.series[l],r=2==n?e._data[l]:e._data,o=e.scales,u=e.bbox,s=r[0],a=2==n?r[1]:r[l],f=2==n?o[i.facets[0].scale]:o[e.series[0].scale],c=2==n?o[i.facets[1].scale]:o[i.scale],h=u.left,d=u.top,p=u.width,m=u.height,g=e.valToPosH,x=e.valToPosV;return 0==f.ori?t(i,s,a,f,c,g,x,h,d,p,m,tl,tn,tr,tu,ta):t(i,s,a,f,c,x,g,d,h,m,p,tt,ti,to,ts,tf)}function l5(e,l){let t=0,n=0,i=Q(e.bands,eR);for(let e=0;e<i.length;e++){let r=i[e];r.series[0]==l?t=r.dir:r.series[1]==l&&(1==r.dir?n|=1:n|=2)}return[t,1==n?-1:2==n?1:3==n?2:0]}function l4(e,l,t,n,i){let r=e.mode,o=e.series[l],u=2==r?o.facets[1].scale:o.scale,s=e.scales[u];return -1==i?s.min:1==i?s.max:3==s.distr?1==s.dir?s.min:s.max:0}function l6(e,l,t,n,i,r){return l3(e,l,(e,l,o,u,s,a,f,c,h,d,p)=>{let m,g,x=e.pxRound,w=u.dir*(0==u.ori?1:-1),v=0==u.ori?tn:ti;1==w?(m=t,g=n):(m=n,g=t);let b=x(a(l[m],u,d,c)),y=x(f(o[m],s,p,h)),_=x(a(l[g],u,d,c)),k=x(f(1==r?s.max:s.min,s,p,h)),M=new Path2D(i);return v(M,_,k),v(M,b,k),v(M,b,y),M})}function l7(e,l,t,n,i,r){let o=null;if(e.length>0){o=new Path2D;let u=0==l?tr:to,s=t;for(let l=0;l<e.length;l++){let t=e[l];if(t[1]>t[0]){let e=t[0]-s;e>0&&u(o,s,n,e,n+r),s=t[1]}}let a=t+i-s;a>0&&u(o,s,n-5,a,n+r+10)}return o}function l8(e,l,t,n,i,r,o){let u=[],s=e.length;for(let a=1==i?t:n;a>=t&&a<=n;a+=i)if(null===l[a]){let f=a,c=a;if(1==i)for(;++a<=n&&null===l[a];)c=a;else for(;--a>=t&&null===l[a];)c=a;let h=r(e[f]),d=c==f?h:r(e[c]),p=f-i;h=o<=0&&p>=0&&p<s?r(e[p]):h;let m=c+i;(d=o>=0&&m>=0&&m<s?r(e[m]):d)>=h&&u.push([h,d])}return u}function l9(e){return 0==e?e_:1==e?eu:l=>eD(l,e)}function te(e){let l=0==e?tl:tt,t=0==e?(e,l,t,n,i,r)=>{e.arcTo(l,t,n,i,r)}:(e,l,t,n,i,r)=>{e.arcTo(t,l,i,n,r)},n=0==e?(e,l,t,n,i)=>{e.rect(l,t,n,i)}:(e,l,t,n,i)=>{e.rect(t,l,i,n)};return(e,i,r,o,u,s=0,a=0)=>{0==s&&0==a?n(e,i,r,o,u):(s=ea(s,o/2,u/2),a=ea(a,o/2,u/2),l(e,i+s,r),t(e,i+o,r,i+o,r+u,s),t(e,i+o,r+u,i,r+u,a),t(e,i,r+u,i,r,a),t(e,i,r,i+o,r,s),e.closePath())}}let tl=(e,l,t)=>{e.moveTo(l,t)},tt=(e,l,t)=>{e.moveTo(t,l)},tn=(e,l,t)=>{e.lineTo(l,t)},ti=(e,l,t)=>{e.lineTo(t,l)},tr=te(0),to=te(1),tu=(e,l,t,n,i,r)=>{e.arc(l,t,n,i,r)},ts=(e,l,t,n,i,r)=>{e.arc(t,l,n,i,r)},ta=(e,l,t,n,i,r,o)=>{e.bezierCurveTo(l,t,n,i,r,o)},tf=(e,l,t,n,i,r,o)=>{e.bezierCurveTo(t,l,i,n,o,r)};function tc(e){return(e,l,t,i,r)=>l3(e,l,(l,o,u,s,a,f,c,h,d,p,m)=>{let g,x,{pxRound:w,points:v}=l;0==s.ori?(g=tl,x=tu):(g=tt,x=ts);let b=eO(v.width*n,3),y=(v.size-v.width)/2*n,_=eO(2*y,3),k=new Path2D,M=new Path2D,{left:S,top:E,width:T,height:P}=e.bbox;tr(M,S-_,E-_,T+2*_,P+2*_);let D=e=>{if(null!=u[e]){let l=w(f(o[e],s,p,h)),t=w(c(u[e],a,m,d));g(k,l+y,t),x(k,l,t,y,0,2*ei)}};if(r)r.forEach(D);else for(let e=t;e<=i;e++)D(e);return{stroke:b>0?k:null,fill:k,clip:M,flags:3}})}function th(e){return(l,t,n,i,r,o)=>{n!=i&&(r!=n&&o!=n&&e(l,t,n),r!=i&&o!=i&&e(l,t,i),e(l,t,o))}}let td=th(tn),tp=th(ti);function tm(e){let l=Q(e?.alignGaps,0);return(e,t,n,i)=>l3(e,t,(r,o,u,s,a,f,c,h,d,p,m)=>{let g,x;[n,i]=V(u,n,i);let w=r.pxRound,v=e=>w(f(e,s,p,h)),b=e=>w(c(e,a,m,d));0==s.ori?(g=tn,x=td):(g=ti,x=tp);let y=s.dir*(0==s.ori?1:-1),_={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:1},k=_.stroke,M=!1;if(i-n>=4*p){let l=l=>e.posToVal(l,s.key,!0),t=null,r=null,a,f,c,h=v(o[1==y?n:i]),d=v(o[n]),p=v(o[i]),m=l(1==y?d+1:p-1);for(let e=1==y?n:i;e>=n&&e<=i;e+=y){let n=o[e],i=(1==y?n<m:n>m)?h:v(n),s=u[e];i==h?null!=s?(f=s,null==t?(g(k,i,b(f)),a=t=r=f):f<t?t=f:f>r&&(r=f)):null===s&&(M=!0):(null!=t&&x(k,h,b(t),b(r),b(a),b(f)),null!=s?(g(k,i,b(f=s)),t=r=a=f):(t=r=null,null===s&&(M=!0)),m=l((h=i)+y))}null!=t&&t!=r&&c!=h&&x(k,h,b(t),b(r),b(a),b(f))}else for(let e=1==y?n:i;e>=n&&e<=i;e+=y){let l=u[e];null===l?M=!0:null!=l&&g(k,v(o[e]),b(l))}let[S,E]=l5(e,t);if(null!=r.fill||0!=S){let l=_.fill=new Path2D(k),u=b(r.fillTo(e,t,r.min,r.max,S)),s=v(o[n]),a=v(o[i]);-1==y&&([a,s]=[s,a]),g(l,a,u),g(l,s,u)}if(!r.spanGaps){let a=[];M&&a.push(...l8(o,u,n,i,y,v,l)),_.gaps=a=r.gaps(e,t,n,i,a),_.clip=l7(a,s.ori,h,d,p,m)}return 0!=E&&(_.band=2==E?[l6(e,t,n,i,k,-1),l6(e,t,n,i,k,1)]:l6(e,t,n,i,k,E)
1),_})}function tg(e,l,t,n,i,r,o=ex){if(e.length>1){let u=null;for(let s=0,a=1/0;s<e.length;s++)if(void 0!==l[s]){if(null!=u){let l=er(e[s]-e[u]);l<a&&(a=l,o=er(t(e[s],n,i,r)-t(e[u],n,i,r)))}u=s}}return o}function tx(e,l,t,n,i,r){let o=e.length;if(o<2)return null;let u=new Path2D;if(t(u,e[0],l[0]),2==o)n(u,e[1],l[1]);else{let t=Array(o),n=Array(o-1),r=Array(o-1),s=Array(o-1);for(let t=0;t<o-1;t++)r[t]=l[t+1]-l[t],s[t]=e[t+1]-e[t],n[t]=r[t]/s[t];t[0]=n[0];for(let e=1;e<o-1;e++)0===n[e]||0===n[e-1]||n[e-1]>0!=n[e]>0?t[e]=0:(t[e]=3*(s[e-1]+s[e])/((2*s[e]+s[e-1])/n[e-1]+(s[e]+2*s[e-1])/n[e]),isFinite(t[e])||(t[e]=0));t[o-1]=n[o-2];for(let n=0;n<o-1;n++)i(u,e[n]+s[n]/3,l[n]+t[n]*s[n]/3,e[n+1]-s[n]/3,l[n+1]-t[n+1]*s[n]/3,e[n+1],l[n+1])}return u}let tw=new Set;function tv(){for(let e of tw)e.syncRect(!0)}_&&(I("resize",M,tv),I("scroll",M,tv,!0),I(y,M,()=>{tz.pxRatio=n}));let tb=tm(),ty=tc();function t_(e,l,t,n){return(n?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((e,n)=>tk(e,n,l,t))}function tk(e,l,t,n){return eJ({},0==l?t:n,e)}function tM(e,l,t){return null==l?eH:[l,t]}function tS(e,l,t){return null==l?eH:Z(l,t,.1,!0)}function tE(e,l,t,n){return null==l?eH:$(l,t,e.scales[n].log,!1)}function tT(e,l,t,n){return null==l?eH:J(l,t,e.scales[n].log,!1)}function tP(e){let l,t;return[e=e.replace(/(\d+)px/,(e,i)=>(l=eu((t=+i)*n))+"px"),l,t]}function tD(e){e.show&&[e.font,e.labelFont].forEach(e=>{let l=eO(e[2]*n,1);e[0]=e[0].replace(/[0-9.]+px/,l+"px"),e[1]=l})}function tz(e,l,t){let i,h,b,_,S,A,C,j,R,H,L,K,X,ee,el,et,en,eo,eh,ep,e_,eT,eP,ez,eA,ej,eF,eV,eB,eK,eX,eZ,eQ,e0,e1,e2;let e3={mode:Q(e.mode,1)},e4=e3.mode;function e6(e,l,t,n){let i=l.valToPct(e);return n+t*(-1==l.dir?1-i:i)}function e7(e,l,t,n){let i=l.valToPct(e);return n+t*(-1==l.dir?i:1-i)}function e8(e,l,t,n){return 0==l.ori?e6(e,l,t,n):e7(e,l,t,n)}e3.valToPosH=e6,e3.valToPosV=e7;let e9=!1;e3.status=0;let lt=e3.root=z("uplot");null!=e.id&&(lt.id=e.id),E(lt,e.class),e.title&&(z("u-title",lt).textContent=e.title);let ln=D("canvas"),li=e3.ctx=ln.getContext("2d"),lr=z("u-wrap",lt);I("click",lr,e=>{e.target===lu&&(eV!=ez||eB!=eA)&&nw.click(e3,e)},!0);let lo=e3.under=z("u-under",lr);lr.appendChild(ln);let lu=e3.over=z("u-over",lr),ls=+Q((e=e$(e)).pxAlign,1),la=l9(ls);(e.plugins||[]).forEach(l=>{l.opts&&(e=l.opts(e3,e)||e)});let lf=e.ms||.001,lc=e3.series=1==e4?t_(e.series||[],lW,lX,!1):(e.series||[null]).map((e,l)=>0==l?{}:eJ({},lK,e)),lb=e3.axes=t_(e.axes||[],lC,l$,!0),lk=e3.scales={},lM=e3.bands=e.bands||[];lM.forEach(e=>{e.fill=ey(e.fill||null),e.dir=Q(e.dir,-1)});let lS=2==e4?lc[1].facets[0].scale:lc[0].scale,lT={axes:function(){for(let e=0;e<lb.length;e++){let l,t,i=lb[e];if(!i.show||!i._show)continue;let r=i.side,o=r%2,u=i.stroke(e3,e),s=0==r||3==r?-1:1,[h,d]=i._found;if(null!=i.label){let f=i.labelGap*s,c=eu((i._lpos+f)*n);ne(i.labelFont[0],u,"center",2==r?"top":a),li.save(),1==o?(l=t=0,li.translate(c,eu(tA+tC/2)),li.rotate((3==r?-ei:ei)/2)):(l=eu(tz+tO/2),t=c);let p=eb(i.label)?i.label(e3,e,h,d):i.label;li.fillText(p,l,t),li.restore()}if(0==d)continue;let p=lk[i.scale],m=0==o?tO:tC,g=0==o?tz:tA,x=i._splits,w=2==p.distr?x.map(e=>t4[e]):x,v=2==p.distr?t4[x[1]]-t4[x[0]]:h,b=i.ticks,y=i.border,_=b.show?b.size:0,k=eu(_*n),M=eu((2==i.alignTo?i._size-_-i.gap:i.gap)*n),S=-(i._rotate*ei)/180,E=la(i._pos*n),T=E+(k+M)*s;t=0==o?T:0,l=1==o?T:0,ne(i.font[0],u,1==i.align?f:2==i.align?c:S>0?f:S<0?c:0==o?"center":3==r?c:f,S||1==o?"middle":2==r?"top":a);let P=i.font[1]*i.lineGap,D=x.map(e=>la(e8(e,p,m,g))),z=i._values;for(let e=0;e<z.length;e++){let n=z[e];if(null!=n){0==o?l=D[e]:t=D[e];let i=-1==(n=""+n).indexOf("\n")?[n]:n.split(/\n/gm);for(let e=0;e<i.length;e++){let n=i[e];S?(li.save(),li.translate(l,t+e*P),li.rotate(S),li.fillText(n,0,0),li.restore()):li.fillText(n,l,t+e*P)}}}b.show&&ns(D,b.filter(e3,w,e,d,v),o,r,E,k,eO(b.width*n,3),b.stroke(e3,e),b.dash,b.cap);let A=i.grid;A.show&&ns(D,A.filter(e3,w,e,d,v),o,0==o?2:1,0==o?tA:tz,0==o?tC:tO,eO(A.width*n,3),A.stroke(e3,e),A.dash,A.cap),y.show&&ns([E],[1],0==o?1:0,0==o?1:2,1==o?tA:tz,1==o?tC:tO,eO(y.width*n,3),y.stroke(e3,e),y.dash,y.cap)}nB("drawAxes")},series:function(){if(C>0){let e=lc.some(e=>e._focus)&&en!=tU.alpha;
1e&&(li.globalAlpha=en=tU.alpha),lc.forEach((e,t)=>{if(t>0&&e.show&&(nn(t,!1),nn(t,!0),null==e._paths)){let n=en;en!=e.alpha&&(li.globalAlpha=en=e.alpha);let i=2==e4?[0,l[t][0].length-1]:function(e){let l=ev(t2-1,0,C-1),t=ev(t3+1,0,C-1);for(;null==e[l]&&l>0;)l--;for(;null==e[t]&&t<C-1;)t++;return[l,t]}(l[t]);e._paths=e.paths(e3,t,i[0],i[1]),en!=n&&(li.globalAlpha=en=n)}}),lc.forEach((e,l)=>{if(l>0&&e.show){let t=en;en!=e.alpha&&(li.globalAlpha=en=e.alpha),null!=e._paths&&ni(l,!1);{let t=null!=e._paths?e._paths.gaps:null,n=e.points.show(e3,l,t2,t3,t),i=e.points.filter(e3,l,n,t);(n||i)&&(e.points._paths=e.points.paths(e3,l,t2,t3,i),ni(l,!0))}en!=t&&(li.globalAlpha=en=t),nB("drawSeries",l)}}),e&&(li.globalAlpha=en=1)}}},lP=(e.drawOrder||["axes","series"]).map(e=>lT[e]);function lD(e){let l=3==e.distr?l=>ed(l>0?l:e.clamp(e3,l,e.min,e.max,e.key)):4==e.distr?l=>eg(l,e.asinh):100==e.distr?l=>e.fwd(l):e=>e;return t=>{let n=l(t),{_min:i,_max:r}=e;return(n-i)/(r-i)}}function lz(l){let t=lk[l];if(null==t){let n=(e.scales||eY)[l]||eY;if(null!=n.from){lz(n.from);let e=eJ({},lk[n.from],n,{key:l});e.valToPct=lD(e),lk[l]=e}else{(t=lk[l]=eJ({},l==lS?lQ:l0,n)).key=l;let e=t.time,i=t.range,r=eI(i);if((l!=lS||2==e4&&!e)&&(r&&(null==i[0]||null==i[1])&&(i={min:null==i[0]?q:{mode:1,hard:i[0],soft:i[0]},max:null==i[1]?q:{mode:1,hard:i[1],soft:i[1]}},r=!1),!r&&eN(i))){let e=i;i=(l,t,n)=>null==t?eH:Z(t,n,e)}t.range=ey(i||(e?tM:l==lS?3==t.distr?tE:4==t.distr?tT:tM:3==t.distr?tE:4==t.distr?tT:tS)),t.auto=ey(!r&&t.auto),t.clamp=ey(t.clamp||lZ),t._min=t._max=null,t.valToPct=lD(t)}}}for(let l in lz("x"),lz("y"),1==e4&&lc.forEach(e=>{lz(e.scale)}),lb.forEach(e=>{lz(e.scale)}),e.scales)lz(l);let lA=lk[lS],lO=lA.distr;0==lA.ori?(E(lt,"u-hz"),i=e6,h=e7):(E(lt,"u-vt"),i=e7,h=e6);let lI={};for(let e in lk){let l=lk[e];(null!=l.min||null!=l.max)&&(lI[e]={min:l.min,max:l.max},l.min=l.max=null)}let lF=e.tzDate||(e=>new Date(eu(e/lf))),lG=e.fmtDate||e5,lL=1==lf?lp(lF):lx(lF),lN=lv(lF,lw(1==lf?ld:lg,lG)),lJ=ly(lF,lG("{YYYY}-{MM}-{DD} {h}:{mm}{aa}")),lq=[],l1=e3.legend=eJ({},l_,e.legend),l3=e3.cursor=eJ({},lE,{drag:{y:2==e4}},e.cursor),l5=l1.show,l6=l3.show,l7=l1.markers;l1.idxs=lq,l7.width=ey(l7.width),l7.dash=ey(l7.dash),l7.stroke=ey(l7.stroke),l7.fill=ey(l7.fill);let l8=[],te=[],tl=!1,tt={};if(l1.live){let e=lc[1]?lc[1].values:null;for(let l in A=(tl=null!=e)?e(e3,1,0):{_:0})tt[l]="--"}if(l5){if(b=D("table","u-legend",lt),S=D("tbody",null,b),l1.mount(e3,b),tl){_=D("thead",null,b,S);let e=D("tr",null,_);for(var tn in D("th",null,e),A)D("th",o,e).textContent=tn}else E(b,"u-inline"),l1.live&&E(b,"u-live")}let ti={show:!0},tr={show:!1},to=new Map;function tu(e,l,t,n=!0){let i=to.get(l)||{},r=l3.bind[e](e3,l,t,n);r&&(I(e,l,i[e]=r),to.set(l,i))}function ts(e,l,t){let n=to.get(l)||{};for(let t in n)(null==e||t==e)&&(F(t,l,n[t]),delete n[t]);null==e&&to.delete(l)}let ta=0,tf=0,tc=0,th=0,td=0,tp=0,tm=0,tg=0,tx=0,tv=0,tz=0,tA=0,tO=0,tC=0;e3.bbox={};let tW=!1,tj=!1,tY=!1,tR=!1,tH=!1,tI=!1;function tF(e,l,t){(t||e!=e3.width||l!=e3.height)&&tG(e,l),na(!1),tY=!0,tj=!0,np()}function tG(e,l){let t,i,r,o;e3.width=ta=tc=e,e3.height=tf=th=l,td=tp=0,t=!1,i=!1,r=!1,o=!1,lb.forEach((e,l)=>{if(e.show&&e._show){let{side:l,_size:n}=e,u=n+(null!=e.label?e.labelSize:0);u>0&&(l%2?(tc-=u,3==l?(td+=u,o=!0):r=!0):(th-=u,0==l?(tp+=u,t=!0):i=!0))}}),tZ[0]=t,tZ[1]=r,tZ[2]=i,tZ[3]=o,tc-=t1[1]+t1[3],td+=t1[3],th-=t1[2]+t1[0],tp+=t1[0],function(){let e=td+tc,l=tp+th,t=td,n=tp;function i(i,r){switch(i){case 1:return(e+=r)-r;case 2:return(l+=r)-r;case 3:return(t-=r)+r;case 0:return(n-=r)+r}}lb.forEach((e,l)=>{if(e.show&&e._show){let l=e.side;e._pos=i(l,e._size),null!=e.label&&(e._lpos=i(l,e.labelSize))}})}();let u=e3.bbox;tz=u.left=eD(td*n,.5),tA=u.top=eD(tp*n,.5),tO=u.width=eD(tc*n,.5),tC=u.height=eD(th*n,.5)}if(e3.setSize=function({width:e,height:l}){tF(e,l)},null==l3.dataIdx){let e=l3.hover,t=e.skip=new Set(e.skip??[]);t.add(void 0);let n=e.prox=ey(e.prox),r=e.bias??=0;l3.dataIdx=(e,o,u,s)=>{if(0==o)return u;let a=u,f=n(e,o,u,s)??ex,c=f>=0&&f<ex,h=0==lA.ori?tc:th,d=l3.left,p=l[0],m=l[o];if(t.has(m[u])){a=null;let e=null,l=null,n;if(0==r||-1==r)for(n=u;null==e&&n-- >0;
1)t.has(m[n])||(e=n);if(0==r||1==r)for(n=u;null==l&&n++<m.length;)t.has(m[n])||(l=n);if(null!=e||null!=l){if(c){let t=null==e?-1/0:i(p[e],lA,h,0),n=null==l?1/0:i(p[l],lA,h,0),r=d-t,o=n-d;r<=o?r<=f&&(a=e):o<=f&&(a=l)}else a=null==l?e:null==e?l:u-e<=l-u?e:l}}else c&&er(d-i(p[u],lA,h,0))>f&&(a=null);return a}}let tL=e=>{l3.event=e};l3.idxs=lq,l3._lock=!1;let tN=l3.points;tN.show=ey(tN.show),tN.size=ey(tN.size),tN.stroke=ey(tN.stroke),tN.width=ey(tN.width),tN.fill=ey(tN.fill);let tU=e3.focus=eJ({},e.focus||{alpha:.3},l3.focus),tV=tU.prox>=0,tB=tV&&tN.one,t$=[],tJ=[],tq=[];function tK(e,l){let t=tN.show(e3,l);if(t instanceof HTMLElement)return E(t,"u-cursor-pt"),E(t,e.class),O(t,-10,-10,tc,th),lu.insertBefore(t,t$[l]),t}function tX(e,l){if(1==e4||l>0){let l=1==e4&&lk[e.scale].time,t=e.value;e.value=l?eL(t)?ly(lF,lG(t)):t||lJ:t||lB,e.label=e.label||(l?"Time":"Value")}if(tB||l>0){e.width=null==e.width?1:e.width,e.paths=e.paths||tb||eM,e.fillTo=ey(e.fillTo||l4),e.pxAlign=+Q(e.pxAlign,ls),e.pxRound=l9(e.pxAlign),e.stroke=ey(e.stroke||null),e.fill=ey(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let l=eO((3+2*(ef(1,e.width)||1))*1,3),t=e.points=eJ({},{size:l,width:ef(1,.2*l),stroke:e.stroke,space:2*l,paths:ty,_stroke:null,_fill:null},e.points);t.show=ey(t.show),t.filter=ey(t.filter),t.fill=ey(t.fill),t.stroke=ey(t.stroke),t.paths=ey(t.paths),t.pxAlign=e.pxAlign}if(l5){let t=function(e,l){if(0==l&&(tl||!l1.live||2==e4))return eH;let t=[],n=D("tr","u-series",S,S.childNodes[l]);E(n,e.class),e.show||E(n,r);let i=D("th",null,n);if(l7.show){let e=z("u-marker",i);if(l>0){let t=l7.width(e3,l);t&&(e.style.border=t+"px "+l7.dash(e3,l)+" "+l7.stroke(e3,l)),e.style.background=l7.fill(e3,l)}}let u=z(o,i);for(var s in e.label instanceof HTMLElement?u.appendChild(e.label):u.textContent=e.label,l>0&&(l7.show||(u.style.color=e.width>0?l7.stroke(e3,l):l7.fill(e3,l)),tu("click",i,l=>{if(l3._lock)return;tL(l);let t=lc.indexOf(e);if((l.ctrlKey||l.metaKey)!=l1.isolate){let e=lc.some((e,l)=>l>0&&l!=t&&e.show);lc.forEach((l,n)=>{n>0&&nS(n,e?n==t?ti:tr:ti,!0,nJ.setSeries)})}else nS(t,{show:!e.show},!0,nJ.setSeries)},!1),tV&&tu(x,i,l=>{l3._lock||(tL(l),nS(lc.indexOf(e),nE,!0,nJ.setSeries))},!1)),A){let e=D("td","u-value",n);e.textContent="--",t.push(e)}return[n,t]}(e,l);l8.splice(l,0,t[0]),te.splice(l,0,t[1]),l1.values.push(null)}if(l6){lq.splice(l,0,null);let t=null;tB?0==l&&(t=tK(e,l)):l>0&&(t=tK(e,l)),t$.splice(l,0,t),tJ.splice(l,0,0),tq.splice(l,0,0)}nB("addSeries",l)}e3.addSeries=function(e,l){l=null==l?lc.length:l,e=1==e4?tk(e,l,lW,lX):tk(e,l,{},lK),lc.splice(l,0,e),tX(lc[l],l)},e3.delSeries=function(e){if(lc.splice(e,1),l5){l1.values.splice(e,1),te.splice(e,1);let l=l8.splice(e,1)[0];ts(null,l.firstChild),l.remove()}l6&&(lq.splice(e,1),t$.splice(e,1)[0].remove(),tJ.splice(e,1),tq.splice(e,1)),nB("delSeries",e)};let tZ=[!1,!1,!1,!1];function tQ(e,l,t,n){let[i,r,o,u]=t,s=l%2,a=0;return 0==s&&(u||r)&&(a=(0!=l||i)&&(2!=l||o)?0:eu(lC.size/3)),1==s&&(i||o)&&(a=(1!=l||r)&&(3!=l||u)?0:eu(l$.size/2)),a}let t0=e3.padding=(e.padding||[tQ,tQ,tQ,tQ]).map(e=>ey(Q(e,tQ))),t1=e3._padding=t0.map((e,l)=>e(e3,l,tZ,0)),t2=null,t3=null,t5=1==e4?lc[0].idxs:null,t4=null,t6=!1;function t7(e,t){if(l=null==e?[]:e,e3.data=e3._data=l,2==e4){C=0;for(let e=1;e<lc.length;e++)C+=l[e][0].length}else{0==l.length&&(e3.data=e3._data=l=[[]]),C=(t4=l[0]).length;let e=l;if(2==lO){let t=(e=l.slice())[0]=Array(C);for(let e=0;e<C;e++)t[e]=e}e3._data=l=e}na(!0),nB("setData"),2==lO&&(tY=!0),!1!==t&&(lA.auto(e3,t6)?t8():nM(lS,lA.min,lA.max),tR=tR||l3.left>=0,tI=!0,np())}function t8(){let e,t;t6=!0,1==e4&&(C>0?(t2=t5[0]=0,t3=t5[1]=C-1,e=l[0][t2],t=l[0][t3],2==lO?(e=t2,t=t3):e==t&&(3==lO?[e,t]=$(e,e,lA.log,!1):4==lO?[e,t]=J(e,e,lA.log,!1):lA.time?t=e+eu(86400/lf):[e,t]=Z(e,t,.1,!0))):(t2=t5[0]=e=null,t3=t5[1]=t=null)),nM(lS,e,t)}function t9(e,l,t,n,i,r){e??=d,t??=eR,n??="butt",i??=d,r??="round",e!=j&&(li.strokeStyle=j=e),i!=R&&(li.fillStyle=R=i),l!=H&&(li.lineWidth=H=l),r!=K&&(li.lineJoin=K=r),n!=X&&(li.lineCap=X=n),t!=L&&li.setLineDash(L=t)}function ne(e,l,t,n){l!=R&&(li.fillStyle=R=l),e!=ee&&(li.font=ee=e),t!=el&&(li.textAlign=el=t),n!=et&&(li.textBaseline=et=n)}function nl(e,l,t,n,i=0){if(n.length>0&&e.auto(e3,t6)&&(null==l||null==l.min)){let l=Q(t2,0),r=Q(t3,n.length-1),o=null==t.min?function(e,l,t,n=0,i=!1){let r=i?U:N;[l,t]=(i?B:V)(e,l,t);let o=e[l],u=e[l];if(l>-1){if(1==n)o=e[l],u=e[t];else if(-1==n)o=e[t],u=e[l];else for(let n=l;n<=t;n++){let l=e[n];r(l)&&(l<o?o=l:l>u&&(u=l))}}return[o??ex,u??-ex]}(n,l,r,i,3==e.distr):[t.min,t.max];e.min=ea(e.min,t.min=o[0]),e.max=ef(e.max,t.max=o[1])}}e3.setData=t7;let nt={min:null,max:null};function nn(e,l){let t=l?lc[e].points:lc[e];t._stroke=t.stroke(e3,e),t._fill=t.fill(e3,e)}function ni(e,t){var i,r,o,u,s;let a,f=t?lc[e].points:lc[e],{stroke:c,fill:h,clip:d,flags:p,_stroke:m=f._stroke,_fill:g=f._fill,_width:x=f.width}=f._paths;x=eO(x*n,3);let w=null,v=x%2/2;t&&null==g&&(g=x>0?"#fff":m);let b=1==f.pxAlign&&v>0;if(b&&li.translate(v,v),!t){let e=tz-x/2,l=tA-x/2,t=tO+x,n=tC+x;(w=new Path2D).rect(e,l,t,n)}t?nr(m,x,f.dash,f.cap,g,c,h,p,d):(i=x,r=f.dash,o=f.cap,u=g,s=w,a=!1,0!=p&&lM.forEach((t,n)=>{if(t.series[0]==e){let e,f=lc[t.series[1]],g=l[t.series[1]],x=(f._paths||eY).band;eI(x)&&(x=1==t.dir?x[0]:x[1]);let w=null;f.show&&x&&function(e,l,t){for(l=Q(l,0),t=Q(t,e.length-1);l<=t;){if(null!=e[l])return!0;l++}return!1}(g,t2,t3)?(w=t.fill(e3,n)||u,e=f._paths.clip):x=null,nr(m,i,r,o,w,c,h,p,s,d,e,x),a=!0}}),a||nr(m,i,r,o,u,c,h,p,s,d)),b&&li.translate(-v,-v)}
1function nr(e,l,t,n,i,r,o,u,s,a,f,c){t9(e,l,t,n,i),(s||a||c)&&(li.save(),s&&li.clip(s),a&&li.clip(a)),c?(3&u)==3?(li.clip(c),f&&li.clip(f),nu(i,o),no(e,r,l)):2&u?(nu(i,o),li.clip(c),no(e,r,l)):1&u&&(li.save(),li.clip(c),f&&li.clip(f),nu(i,o),li.restore(),no(e,r,l)):(nu(i,o),no(e,r,l)),(s||a||c)&&li.restore()}function no(e,l,t){t>0&&(l instanceof Map?l.forEach((e,l)=>{li.strokeStyle=j=l,li.stroke(e)}):null!=l&&e&&li.stroke(l))}function nu(e,l){l instanceof Map?l.forEach((e,l)=>{li.fillStyle=R=l,li.fill(e)}):null!=l&&e&&li.fill(l)}function ns(e,l,t,n,i,r,o,u,s,a){let f=o%2/2;1==ls&&li.translate(f,f),t9(u,o,s,a,u),li.beginPath();let c,h,d,p,m=i+(0==n||3==n?-r:r);0==t?(h=i,p=m):(c=i,d=m);for(let n=0;n<e.length;n++)null!=l[n]&&(0==t?c=d=e[n]:h=p=e[n],li.moveTo(c,h),li.lineTo(d,p));li.stroke(),1==ls&&li.translate(-f,-f)}function na(e){lc.forEach((l,t)=>{t>0&&(l._paths=null,e&&(1==e4?(l.min=null,l.max=null):l.facets.forEach(e=>{e.min=null,e.max=null})))})}let nf=!1,nc=!1,nh=[];function nd(){nc=!1;for(let e=0;e<nh.length;e++)nB(...nh[e]);nh.length=0}function np(){nf||(eq(nm),nf=!0)}function nm(){if(tW&&(function(){for(let e in lk){let l=lk[e];null==lI[e]&&(null==l.min||null!=lI[lS]&&l.auto(e3,t6))&&(lI[e]=nt)}for(let e in lk){let l=lk[e];null==lI[e]&&null!=l.from&&null!=lI[l.from]&&(lI[e]=nt)}null!=lI[lS]&&na(!0);let e={};for(let l in lI){let t=lI[l];if(null!=t){let n=e[l]=e$(lk[l],eU);if(null!=t.min)eJ(n,t);else if(l!=lS||2==e4){if(0==C&&null==n.from){let e=n.range(e3,null,null,l);n.min=e[0],n.max=e[1]}else n.min=ex,n.max=-ex}}}if(C>0)for(let t in lc.forEach((t,n)=>{if(1==e4){let i=t.scale,r=lI[i];if(null==r)return;let o=e[i];if(0==n){let e=o.range(e3,o.min,o.max,i);o.min=e[0],o.max=e[1],t2=G(o.min,l[0]),(t3=G(o.max,l[0]))-t2>1&&(l[0][t2]<o.min&&t2++,l[0][t3]>o.max&&t3--),t.min=t4[t2],t.max=t4[t3]}else t.show&&t.auto&&nl(o,r,t,l[n],t.sorted);t.idxs[0]=t2,t.idxs[1]=t3}else if(n>0&&t.show&&t.auto){let[i,r]=t.facets,o=i.scale,u=r.scale,[s,a]=l[n],f=e[o],c=e[u];null!=f&&nl(f,lI[o],i,s,i.sorted),null!=c&&nl(c,lI[u],r,a,r.sorted),t.min=r.min,t.max=r.max}}),e){let l=e[t],n=lI[t];if(null==l.from&&(null==n||null==n.min)){let e=l.range(e3,l.min==ex?null:l.min,l.max==-ex?null:l.max,t);l.min=e[0],l.max=e[1]}}for(let l in e){let t=e[l];if(null!=t.from){let n=e[t.from];if(null==n.min)t.min=t.max=null;else{let e=t.range(e3,n.min,n.max,l);t.min=e[0],t.max=e[1]}}}let t={},n=!1;for(let l in e){let i=e[l],r=lk[l];if(r.min!=i.min||r.max!=i.max){r.min=i.min,r.max=i.max;let e=r.distr;r._min=3==e?ed(r.min):4==e?eg(r.min,r.asinh):100==e?r.fwd(r.min):r.min,r._max=3==e?ed(r.max):4==e?eg(r.max,r.asinh):100==e?r.fwd(r.max):r.max,t[l]=n=!0}}if(n){for(let e in lc.forEach((e,l)=>{2==e4?l>0&&t.y&&(e._paths=null):t[e.scale]&&(e._paths=null)}),t)tY=!0,nB("setScale",e);l6&&l3.left>=0&&(tR=tI=!0)}for(let e in lI)lI[e]=null}(),tW=!1),tY&&(function(){let e=!1,l=0;for(;!e;){let t=function(e){let l=!0;return lb.forEach((t,n)=>{if(!t.show)return;let i=lk[t.scale];if(null==i.min){t._show&&(l=!1,t._show=!1,na(!1));return}t._show||(l=!1,t._show=!0,na(!1));let r=t.side,{min:o,max:u}=i,[s,a]=function(e,l,t,n){let i,r=lb[e];if(n<=0)i=[0,0];else{let o=r._space=r.space(e3,e,l,t,n),u=r._incrs=r.incrs(e3,e,l,t,n,o);i=function(e,l,t,n,i){let r=ef(ew(e),ew(l)),o=l-e,u=G(i/n*o,t);do{let e=t[u],l=n*e/o;if(l>=i&&r+(e<5?eC.get(e):0)<=17)return[e,l]}while(++u<t.length);return[0,0]}(l,t,u,n,o)}return r._found=i}(n,o,u,0==r%2?tc:th);if(0==a)return;let f=2==i.distr,c=t._splits=t.splits(e3,n,o,u,s,a,f),h=2==i.distr?c.map(e=>t4[e]):c,d=2==i.distr?t4[c[1]]-t4[c[0]]:s,p=t._values=t.values(e3,t.filter(e3,h,n,a,d),n,a,d);t._rotate=2==r?t.rotate(e3,p,n,a):0;let m=t._size;t._size=es(t.size(e3,p,n,e)),null!=m&&t._size!=m&&(l=!1)}),l}(++l),n=function(e){let l=!0;return t0.forEach((t,n)=>{let i=t(e3,n,tZ,e);i!=t1[n]&&(l=!1),t1[n]=i}),l}(l);(e=3==l||t&&n)||(tG(e3.width,e3.height),tj=!0)}}(),tY=!1),tj){if(P(lo,f,td),P(lo,"top",tp),P(lo,u,tc),P(lo,s,th),P(lu,f,td),P(lu,"top",tp),P(lu,u,tc),P(lu,s,th),P(lr,u,ta),P(lr,s,tf),ln.width=eu(ta*n),ln.height=eu(tf*n),lb.forEach(({_el:e,_show:l,_size:t,_pos:n,side:i})=>{if(null!=e){if(l){let l=3===i||0===i?t:0,o=i%2==1;P(e,o?"left":"top",n-l),P(e,o?"width":"height",t),P(e,o?"top":"left",o?tp:td),P(e,o?"height":"width",o?th:tc),T(e,r)}else E(e,r)}}),j=R=H=K=X=ee=el=et=L=null,en=1,nj(!0),td!=tm||tp!=tg||tc!=tx||th!=tv){n
1a(!1);let e=tc/tx,l=th/tv;if(l6&&!tR&&l3.left>=0){l3.left*=e,l3.top*=l,ep&&O(ep,eu(l3.left),0,tc,th),e_&&O(e_,0,eu(l3.top),tc,th);for(let t=0;t<t$.length;t++){let n=t$[t];null!=n&&(tJ[t]*=e,tq[t]*=l,O(n,es(tJ[t]),es(tq[t]),tc,th))}}if(ny.show&&!tH&&ny.left>=0&&ny.width>0)for(let t in ny.left*=e,ny.width*=e,ny.top*=l,ny.height*=l,nH)P(n_,t,ny[t]);tm=td,tg=tp,tx=tc,tv=th}nB("setSize"),tj=!1}ta>0&&tf>0&&(li.clearRect(0,0,ln.width,ln.height),nB("drawClear"),lP.forEach(e=>e()),nB("draw")),ny.show&&tH&&(nk(ny),tH=!1),l6&&tR&&(nC(null,!0,!1),tR=!1),l1.show&&l1.live&&tI&&(nO(),tI=!1),e9||(e9=!0,e3.status=1,nB("ready")),t6=!1,nf=!1}function ng(e,t){let n=lk[e];if(null==n.from){if(0==C){let l=n.range(e3,t.min,t.max,e);t.min=l[0],t.max=l[1]}if(t.min>t.max){let e=t.min;t.min=t.max,t.max=e}if(C>1&&null!=t.min&&null!=t.max&&t.max-t.min<1e-16)return;e==lS&&2==n.distr&&C>0&&(t.min=G(t.min,l[0]),t.max=G(t.max,l[0]),t.min==t.max&&t.max++),lI[e]=t,tW=!0,np()}}e3.batch=function(e,l=!1){nf=!0,nc=l,e(e3),nm(),l&&nh.length>0&&queueMicrotask(nd)},e3.redraw=(e,l)=>{tY=l||!1,!1!==e?nM(lS,lA.min,lA.max):np()},e3.setScale=ng;let nx=!1,nw=l3.drag,nv=nw.x,nb=nw.y;l6&&(l3.x&&(eo=z("u-cursor-x",lu)),l3.y&&(eh=z("u-cursor-y",lu)),0==lA.ori?(ep=eo,e_=eh):(ep=eh,e_=eo),eV=l3.left,eB=l3.top);let ny=e3.select=eJ({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),n_=ny.show?z("u-select",ny.over?lu:lo):null;function nk(e,l){if(ny.show){for(let l in e)ny[l]=e[l],l in nH&&P(n_,l,e[l]);!1!==l&&nB("setSelect")}}function nM(e,l,t){ng(e,{min:l,max:t})}function nS(e,l,t,n){null!=l.focus&&function(e){if(e!=eZ){let l=null==e,t=1!=tU.alpha;lc.forEach((n,i)=>{if(1==e4||i>0){var r;let o=l||0==i||i==e;n._focus=l?null:o,t&&(r=o?1:tU.alpha,lc[i].alpha=r,l6&&null!=t$[i]&&(t$[i].style.opacity=r),l5&&l8[i]&&(l8[i].style.opacity=r))}}),eZ=e,t&&np()}}(e),null!=l.show&&lc.forEach((t,n)=>{n>0&&(e==n||null==e)&&(t.show=l.show,function(e){if(lc[e].show)l5&&T(l8[e],r);else if(l5&&E(l8[e],r),l6){let l=tB?t$[0]:t$[e];null!=l&&O(l,-10,-10,tc,th)}}(n),2==e4?(nM(t.facets[0].scale,null,null),nM(t.facets[1].scale,null,null)):nM(t.scale,null,null),np())}),!1!==t&&nB("setSeries",e,l),n&&nX("setSeries",e3,e,l)}e3.setSelect=nk,e3.setSeries=nS,e3.addBand=function(e,l){e.fill=ey(e.fill||null),e.dir=Q(e.dir,-1),l=null==l?lM.length:l,lM.splice(l,0,e)},e3.setBand=function(e,l){eJ(lM[e],l)},e3.delBand=function(e){null==e?lM.length=0:lM.splice(e,1)};let nE={focus:!0};function nT(e,l,t){let i=lk[l];t&&(e=e/n-(1==i.ori?tp:td));let r=tc;1==i.ori&&(e=(r=th)-e),-1==i.dir&&(e=r-e);let o=i._min,u=o+(i._max-o)*(e/r),s=i.distr;return 3==s?ec(10,u):4==s?em(u,i.asinh):100==s?i.bwd(u):u}function nP(e,l){P(n_,f,ny.left=e),P(n_,u,ny.width=l)}function nD(e,l){P(n_,"top",ny.top=e),P(n_,s,ny.height=l)}l5&&tV&&tu(w,b,e=>{l3._lock||(tL(e),null!=eZ&&nS(null,nE,!0,nJ.setSeries))}),e3.valToIdx=e=>G(e,l[0]),e3.posToIdx=function(e,t){return G(nT(e,lS,t),l[0],t2,t3)},e3.posToVal=nT,e3.valToPos=(e,l,t)=>0==lk[l].ori?e6(e,lk[l],t?tO:tc,t?tz:0):e7(e,lk[l],t?tC:th,t?tA:0),e3.setCursor=(e,l,t)=>{eV=e.left,eB=e.top,nC(null,l,t)};let nz=0==lA.ori?nP:nD,nA=1==lA.ori?nP:nD;function nO(e,t){if(null!=e&&(e.idxs?e.idxs.forEach((e,l)=>{lq[l]=e}):eG(e.idx)||lq.fill(e.idx),l1.idx=lq[0]),l5&&l1.live){for(let e=0;e<lc.length;e++)(e>0||1==e4&&!tl)&&function(e,t){let n,i=lc[e],r=0==e&&2==lO?t4:l[e];n=tl?i.values(e3,e,t)??tt:null==(n=i.value(e3,null==t?null:r[t],e,t))?tt:{_:n},l1.values[e]=n}(e,lq[e]);!function(){if(l5&&l1.live)for(let e=2==e4?1:0;e<lc.length;e++){if(0==e&&tl)continue;let l=l1.values[e],t=0;for(let n in l)te[e][t++].firstChild.nodeValue=l[n]}}()}tI=!1,!1!==t&&nB("setLegend")}function nC(e,t,n){let r;ej=eV,eF=eB,[eV,eB]=l3.move(e3,eV,eB),l3.left=eV,l3.top=eB,l6&&(ep&&O(ep,eu(eV),0,tc,th),e_&&O(e_,0,eu(eB),tc,th));let o=t2>t3;eK=ex,eX=null;let u=0==lA.ori?tc:th,s=1==lA.ori?tc:th;if(eV<0||0==C||o){r=l3.idx=null;for(let e=0;e<lc.length;e++){let l=t$[e];null!=l&&O(l,-10,-10,tc,th)}tV&&nS(null,nE,!0,null==e&&nJ.setSeries),l1.live&&(lq.fill(r),tI=!0)}else{let e,t;1==e4&&(e=nT(0==lA.ori?eV:eB,lS),r=l3.idx=G(e,l[0],t2,t3),t=i(l[0][r],lA,u,0)
1);let n=-10,o=-10,a=0,f=0,c=!0,d="",p="";for(let m=2==e4?1:0;m<lc.length;m++){let g=lc[m],x=lq[m],w=null==x?null:1==e4?l[m][x]:l[m][1][x],v=l3.dataIdx(e3,m,r,e),b=null==v?null:1==e4?l[m][v]:l[m][1][v];if(tI=tI||b!=w||v!=x,lq[m]=v,m>0&&g.show){let e=null==v?-10:v==r?t:i(1==e4?l[0][v]:l[m][0][v],lA,u,0),x=null==b?-10:h(b,1==e4?lk[g.scale]:lk[g.facets[1].scale],s,0);if(tV&&null!=b){let e=1==lA.ori?eV:eB,l=er(tU.dist(e3,m,v,x,e));if(l<eK){let t=tU.bias;if(0!=t){let n=nT(e,g.scale),i=n>=0?1:-1;i==(b>=0?1:-1)&&(1==i?1==t?b>=n:b<=n:1==t?b<=n:b>=n)&&(eK=l,eX=m)}else eK=l,eX=m}}if(tI||tB){let l,t;0==lA.ori?(l=e,t=x):(l=x,t=e);let i,r,u,s,h,g,w=!0,v=tN.bbox;if(null!=v){w=!1;let e=v(e3,m);u=e.left,s=e.top,i=e.width,r=e.height}else u=l,s=t,i=r=tN.size(e3,m);if(g=tN.fill(e3,m),h=tN.stroke(e3,m),tB)m==eX&&eK<=tU.prox&&(n=u,o=s,a=i,f=r,c=w,d=g,p=h);else{let e=t$[m];null!=e&&(tJ[m]=u,tq[m]=s,Y(e,i,r,w),W(e,g,h),O(e,es(u),es(s),tc,th))}}}}if(tB){let e=tU.prox,l=null==eZ?eK<=e:eK>e||eX!=eZ;if(tI||l){let e=t$[0];null!=e&&(tJ[0]=n,tq[0]=o,Y(e,a,f,c),W(e,d,p),O(e,es(n),es(o),tc,th))}}}if(ny.show&&nx){if(null!=e){let[l,t]=nJ.scales,[n,r]=nJ.match,[o,a]=e.cursor.sync.scales,f=e.cursor.drag;if(nv=f._x,nb=f._y,nv||nb){let f,c,d,p,m,{left:g,top:x,width:w,height:v}=e.select,b=e.scales[o].ori,y=e.posToVal,_=null!=l&&n(l,o),k=null!=t&&r(t,a);_&&nv?(0==b?(f=g,c=w):(f=x,c=v),d=lk[l],nz(ea(p=i(y(f,o),d,u,0),m=i(y(f+c,o),d,u,0)),er(m-p))):nz(0,u),k&&nb?(1==b?(f=g,c=w):(f=x,c=v),d=lk[t],nA(ea(p=h(y(f,a),d,s,0),m=h(y(f+c,a),d,s,0)),er(m-p))):nA(0,s)}else nI()}else{let e,l,t=er(ej-eT),n=er(eF-eP);if(1==lA.ori){let e=t;t=n,n=e}nv=nw.x&&t>=nw.dist,nb=nw.y&&n>=nw.dist;let i=nw.uni;null!=i?nv&&nb&&(nv=t>=i,nb=n>=i,nv||nb||(n>t?nb=!0:nv=!0)):nw.x&&nw.y&&(nv||nb)&&(nv=nb=!0),nv&&(0==lA.ori?(e=ez,l=eV):(e=eA,l=eB),nz(ea(e,l),er(l-e)),nb||nA(0,s)),nb&&(1==lA.ori?(e=ez,l=eV):(e=eA,l=eB),nA(ea(e,l),er(l-e)),nv||nz(0,u)),nv||nb||(nz(0,0),nA(0,0))}}if(nw._x=nv,nw._y=nb,null==e){if(n){if(null!=nq){let[e,l]=nJ.scales;nJ.values[0]=null!=e?nT(0==lA.ori?eV:eB,e):null,nJ.values[1]=null!=l?nT(1==lA.ori?eV:eB,l):null}nX(p,e3,eV,eB,tc,th,r)}if(tV){let e=n&&nJ.setSeries,l=tU.prox;null==eZ?eK<=l&&nS(eX,nE,!0,e):eK>l?nS(null,nE,!0,e):eX!=eZ&&nS(eX,nE,!0,e)}}tI&&(l1.idx=r,nO()),!1!==t&&nB("setCursor")}e3.setLegend=nO;let nW=null;function nj(e=!1){e?nW=null:nB("syncRect",nW=lu.getBoundingClientRect())}function nY(e,l,t,n,i,r,o){!l3._lock&&(nx&&null!=e&&0==e.movementX&&0==e.movementY||(nR(e,l,t,n,i,r,o,!1,null!=e),null!=e?nC(null,!0,!0):nC(l,!0,!1)))}function nR(e,l,t,n,i,r,o,u,s){if(null==nW&&nj(!1),tL(e),null!=e)t=e.clientX-nW.left,n=e.clientY-nW.top;else{if(t<0||n<0){eV=-10,eB=-10;return}let[e,o]=nJ.scales,u=l.cursor.sync,[s,a]=u.values,[f,c]=u.scales,[h,d]=nJ.match,p=l.axes[0].side%2==1,m=0==lA.ori?tc:th,g=1==lA.ori?tc:th,x=p?n:t,w=p?t:n;if(t=null!=f?h(e,f)?e8(s,lk[e],m,0):-10:x/(p?r:i)*m,n=null!=c?d(o,c)?e8(a,lk[o],g,0):-10:w/(p?i:r)*g,1==lA.ori){let e=t;t=n,n=e}}s&&(null==l||l.cursor.event.type==p)&&((t<=1||t>=tc-1)&&(t=eD(t,tc)),(n<=1||n>=th-1)&&(n=eD(n,th))),u?(eT=t,eP=n,[ez,eA]=l3.move(e3,t,n)):(eV=t,eB=n)}Object.defineProperty(e3,"rect",{get:()=>(null==nW&&nj(!1),nW)});let nH={width:0,height:0,left:0,top:0};function nI(){nk(nH,!1)}function nF(e,l,t,n,i,r,o){nx=!0,nv=nb=nw._x=nw._y=!1,nR(e,l,t,n,i,r,o,!0,!1),null!=e&&(tu(g,k,nG,!1),nX(m,e3,ez,eA,tc,th,null));let{left:u,top:s,width:a,height:f}=ny;eQ=u,e0=s,e1=a,e2=f}function nG(e,l,t,n,i,r,o){nx=nw._x=nw._y=!1,nR(e,l,t,n,i,r,o,!1,!0);let{left:u,top:s,width:a,height:f}=ny,c=a>0||f>0,h=eQ!=u||e0!=s||e1!=a||e2!=f;if(c&&h&&nk(ny),nw.setScale&&c&&h){let e=u,l=a,t=s,n=f;if(1==lA.ori&&(e=s,l=f,t=u,n=a),nv&&nM(lS,nT(e,lS),nT(e+l,lS)),nb)for(let e in lk){let l=lk[e];e!=lS&&null==l.from&&l.min!=ex&&nM(e,nT(t+n,e),nT(t,e))}nI()}else l3.lock&&(l3._lock=!l3._lock,nC(l,!0,null!=e));null!=e&&(ts(g,k),nX(g,e3,eV,eB,tc,th,null))}function nL(e,l,t,n,i,r,o){l3._lock||(tL(e),t8(),nI(),null!=e&&nX(v,e3,eV,eB,tc,th,null))}function nN(){lb.forEach(tD),tF(e3.width,e3.height,!0)}I(y,M,nN);let nU={};nU.mousedown=nF,nU.mousemove=nY,nU.mouseup=nG,nU.dblclick=nL,nU.setSeries=(e,l,t,n)=>{-1!=(t=(0,nJ.match[2])(e3,l,t))&&nS(t,n,!0,!1)},l6&&(tu(m,lu,nF),tu(p,lu,nY),tu(x,lu,e=>{tL(e),nj(!1)}),tu(w,lu,function(e,l,t,n,i,r,o){if(l3._lock)return;tL(e);let u=nx;if(nx){let e,l,t=!0,n=!0;0==lA.ori?(e=nv,l=nb):(e=nb,l=nv),e&&l&&(t=eV<=10||eV>=tc-10,n=eB<=10||eB>=th-10),e&&t&&(eV=eV<ez?0:tc),l&&n&&(eB=eB<eA?0:th),nC(null,!0,!0),nx=!1}eV=-10,eB=-10,lq.fill(null),nC(null,!0,!0),u&&(nx=u)}),tu(v,lu,nL),tw.add(e3),e3.syncRect=nj);let nV=e3.hooks=e.hooks||{};
1function nB(e,l,t){nc?nh.push([e,l,t]):e in nV&&nV[e].forEach(e=>{e.call(null,e3,l,t)})}(e.plugins||[]).forEach(e=>{for(let l in e.hooks)nV[l]=(nV[l]||[]).concat(e.hooks[l])});let n$=(e,l,t)=>t,nJ=eJ({key:null,setSeries:!1,filters:{pub:eS,sub:eS},scales:[lS,lc[1]?lc[1].scale:null],match:[eE,eE,n$],values:[null,null]},l3.sync);2==nJ.match.length&&nJ.match.push(n$),l3.sync=nJ;let nq=nJ.key,nK=l2(nq);function nX(e,l,t,n,i,r,o){nJ.filters.pub(e,l,t,n,i,r,o)&&nK.pub(e,l,t,n,i,r,o)}function nZ(){nB("init",e,l),t7(l||e.data,!1),lI[lS]?ng(lS,lI[lS]):t8(),tH=ny.show&&(ny.width>0||ny.height>0),tR=tI=!0,tF(e.width,e.height)}return nK.sub(e3),e3.pub=function(e,l,t,n,i,r,o){nJ.filters.sub(e,l,t,n,i,r,o)&&nU[e](null,l,t,n,i,r,o)},e3.destroy=function(){nK.unsub(e3),tw.delete(e3),to.clear(),F(y,M,nN),lt.remove(),b?.remove(),nB("destroy")},lc.forEach(tX),lb.forEach(function(e,l){if(e._show=e.show,e.show){let t,n=e.side%2,i=lk[e.scale];null==i&&(e.scale=n?lc[1].scale:lS,i=lk[e.scale]);let r=i.time;e.size=ey(e.size),e.space=ey(e.space),e.rotate=ey(e.rotate),eI(e.incrs)&&e.incrs.forEach(e=>{eC.has(e)||eC.set(e,eW(e))}),e.incrs=ey(e.incrs||(2==i.distr?le:r?1==lf?lh:lm:ll)),e.splits=ey(e.splits||(r&&1==i.distr?lL:3==i.distr?lR:4==i.distr?lH:lY)),e.stroke=ey(e.stroke),e.grid.stroke=ey(e.grid.stroke),e.ticks.stroke=ey(e.ticks.stroke),e.border.stroke=ey(e.border.stroke);let o=e.values;e.values=eI(o)&&!eI(o[0])?ey(o):r?eI(o)?lv(lF,lw(o,lG)):eL(o)?(t=e5(o),(e,l,n,i,r)=>l.map(e=>t(lF(e)))):o||lN:o||lj,e.filter=ey(e.filter||(i.distr>=3&&10==i.log?lU:3==i.distr&&2==i.log?lV:ek)),e.font=tP(e.font),e.labelFont=tP(e.labelFont),e._size=e.size(e3,null,l,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(tZ[l]=!0,e._el=z("u-axis",lr))}}),t?t instanceof HTMLElement?(t.appendChild(lt),nZ()):t(e3,nZ):nZ(),e3}tz.assign=eJ,tz.fmtNum=et,tz.rangeNum=Z,tz.rangeLog=$,tz.rangeAsinh=J,tz.orient=l3,tz.pxRatio=n,tz.join=function(e,l){if(function(e){let l=e[0][0],t=l.length;for(let n=1;n<e.length;n++){let i=e[n][0];if(i.length!=t)return!1;if(i!=l){for(let e=0;e<t;e++)if(i[e]!=l[e])return!1}}return!0}(e)){let l=e[0].slice();for(let t=1;t<e.length;t++)l.push(...e[t].slice(1));return!function(e,l=100){let t=e.length;if(t<=1)return!0;let n=0,i=t-1;for(;n<=i&&null==e[n];)n++;for(;i>=n&&null==e[i];)i--;if(i<=n)return!0;let r=ef(1,eo((i-n+1)/l));for(let l=e[n],t=n+r;t<=i;t+=r){let n=e[t];if(null!=n){if(n<=l)return!1;l=n}}return!0}(l[0])&&(l=function(e){let l=e[0],t=l.length,n=Array(t);for(let e=0;e<n.length;e++)n[e]=e;n.sort((e,t)=>l[e]-l[t]);let i=[];for(let l=0;l<e.length;l++){let r=e[l],o=Array(t);for(let e=0;e<t;e++)o[e]=r[n[e]];i.push(o)}return i}(l)),l}let t=new Set;for(let l=0;l<e.length;l++){let n=e[l][0],i=n.length;for(let e=0;e<i;e++)t.add(n[e])}let n=[Array.from(t).sort((e,l)=>e-l)],i=n[0].length,r=new Map;for(let e=0;e<i;e++)r.set(n[0][e],e);for(let t=0;t<e.length;t++){let o=e[t],u=o[0];for(let e=1;e<o.length;e++){let s=o[e],a=Array(i).fill(void 0),f=l?l[t][e]:1,c=[];for(let e=0;e<s.length;e++){let l=s[e],t=r.get(u[e]);null===l?0!=f&&(a[t]=l,2==f&&c.push(t)):a[t]=l}(function(e,l,t){for(let n=0,i,r=-1;n<l.length;n++){let o=l[n];if(o>r){for(i=o-1;i>=0&&null==e[i];)e[i--]=null;for(i=o+1;i<t&&null==e[i];)e[r=i++]=null}}})(a,c,i),n.push(a)}}return n},tz.fmtDate=e5,tz.tzDate=function(e,l){let t;return"UTC"==l||"Etc/UTC"==l?t=new Date(+e+6e4*e.getTimezoneOffset()):l==e4?t=e:(t=new Date(e.toLocaleString("en-US",{timeZone:l}))).setMilliseconds(e.getMilliseconds()),t},tz.sync=l2;{tz.addGap=function(e,l,t){let n=e[e.length-1];n&&n[0]==l?n[1]=t:e.push([l,t])},tz.clipGaps=l7;let e=tz.paths={points:tc};e.linear=tm,e.stepped=function(e){let l=Q(e.align,1),t=Q(e.ascDesc,!1),i=Q(e.alignGaps,0),r=Q(e.extend,!1);return(e,o,u,s)=>l3(e,o,(a,f,c,h,d,p,m,g,x,w,v)=>{[u,s]=V(c,u,s);let b=a.pxRound,{left:y,width:_}=e.bbox,k=e=>b(p(e,h,w,g)),M=e=>b(m(e,d,v,x)),S=0==h.ori?tn:ti,E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:1},T=E.stroke,P=h.dir*(0==h.ori?1:-1),D=M(c[1==P?u:s]),z=k(f[1==P?u:s]),A=z,O=z;r&&-1==l&&S(T,O=y,D),S(T,z,D);for(let e=1==P?u:s;e>=u&&e<=s;e+=P){let t=c[e];if(null==t)continue;let n=k(f[e]),i=M(t);1==l?S(T,n,D):S(T,A,i),S(T,n,i),D=i,A=n}let C=A;r&&1==l&&S(T,C=y+_,D);let[W,j]=l5(e,o);if(null!=a.fill||0!=W){let l=E.fill=new Path2D(T),t=M(a.fillTo(e,o,a.min,a.max,W));S(l,C,t),S(l,O,t)}if(!a.spanGaps){let r=[];r.push(...l8(f,c,u,s,P,k,i));let d=a.width*n/2,p=t||1==l?d:-d,m=t||-1==l?-d:d;
1r.forEach(e=>{e[0]+=p,e[1]+=m}),E.gaps=r=a.gaps(e,o,u,s,r),E.clip=l7(r,h.ori,g,x,w,v)}return 0!=j&&(E.band=2==j?[l6(e,o,u,s,T,-1),l6(e,o,u,s,T,1)]:l6(e,o,u,s,T,j)),E})},e.bars=function(e){let l=Q((e=e||eY).size,[.6,ex,1]),t=e.align||0,i=e.gap||0,r=e.radius,o=ey(r=null==r?[0,0]:"number"==typeof r?[r,0]:r),u=1-l[0],s=Q(l[1],ex),a=Q(l[2],1),f=Q(e.disp,eY),c=Q(e.each,e=>{}),{fill:h,stroke:d}=f;return(e,l,r,p)=>l3(e,l,(m,g,x,w,v,b,y,_,k,M,S)=>{let E,T,P=m.pxRound,D=t,z=i*n,A=s*n,O=a*n;0==w.ori?[E,T]=o(e,l):[T,E]=o(e,l);let C=w.dir*(0==w.ori?1:-1),W=0==w.ori?tr:to,j=0==w.ori?c:(e,l,t,n,i,r,o)=>{c(e,l,t,i,n,o,r)},Y=Q(e.bands,eR).find(e=>e.series[0]==l),R=null!=Y?Y.dir:0,H=m.fillTo(e,l,m.min,m.max,R),I=P(y(H,v,S,k)),F,G,L,N=M,U=P(m.width*n),V=!1,B=null,$=null,J=null,q=null;null!=h&&(0==U||null!=d)&&(V=!0,B=h.values(e,l,r,p),$=new Map,new Set(B).forEach(e=>{null!=e&&$.set(e,new Path2D)}),U>0&&(J=d.values(e,l,r,p),q=new Map,new Set(J).forEach(e=>{null!=e&&q.set(e,new Path2D)})));let{x0:K,size:X}=f;if(null!=K&&null!=X){D=1,g=K.values(e,l,r,p),2==K.unit&&(g=g.map(l=>e.posToVal(_+l*M,w.key,!0)));let t=X.values(e,l,r,p);G=2==X.unit?t[0]*M:b(t[0],w,M,_)-b(0,w,M,_),L=(N=tg(g,x,b,w,M,_,N))-G+z}else L=(N=tg(g,x,b,w,M,_,N))*u+z,G=N-L;L<1&&(L=0),U>=G/2&&(U=0),L<5&&(P=e_);let Z=L>0;G=P(ev(N-L-(Z?U:0),O,A)),F=(0==D?G/2:D==C?0:G)-D*C*((0==D?z/2:0)+(Z?U/2:0));let ee={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},el=V?null:new Path2D,et=null;if(null!=Y)et=e.data[Y.series[1]];else{let{y0:t,y1:n}=f;null!=t&&null!=n&&(x=n.values(e,l,r,p),et=t.values(e,l,r,p))}let en=E*G,ei=T*G;for(let t=1==C?r:p;t>=r&&t<=p;t+=C){let n=x[t];if(null==n)continue;if(null!=et){let e=et[t]??0;if(n-e==0)continue;I=y(e,v,S,k)}let i=b(2!=w.distr||null!=f?g[t]:t,w,M,_),r=y(Q(n,H),v,S,k),o=P(i-F),u=P(ef(r,I)),s=P(ea(r,I)),a=u-s;if(null!=n){let i=n<0?ei:en,r=n<0?en:ei;V?(U>0&&null!=J[t]&&W(q.get(J[t]),o,s+eo(U/2),G,ef(0,a-U),i,r),null!=B[t]&&W($.get(B[t]),o,s+eo(U/2),G,ef(0,a-U),i,r)):W(el,o,s+eo(U/2),G,ef(0,a-U),i,r),j(e,l,t,o-U/2,s,G+U,a)}}return U>0?ee.stroke=V?q:el:V||(ee._fill=0==m.width?m._fill:m._stroke??m._fill,ee.width=0),ee.fill=V?$:el,ee})},e.spline=function(e){return function(e,l){let t=Q(l?.alignGaps,0);return(l,n,i,r)=>l3(l,n,(o,u,s,a,f,c,h,d,p,m,g)=>{let x,w,v;[i,r]=V(s,i,r);let b=o.pxRound,y=e=>b(c(e,a,m,d)),_=e=>b(h(e,f,g,p));0==a.ori?(x=tl,v=tn,w=ta):(x=tt,v=ti,w=tf);let k=a.dir*(0==a.ori?1:-1),M=y(u[1==k?i:r]),S=M,E=[],T=[];for(let e=1==k?i:r;e>=i&&e<=r;e+=k)if(null!=s[e]){let l=y(u[e]);E.push(S=l),T.push(_(s[e]))}let P={stroke:e(E,T,x,v,w,b),fill:null,clip:null,band:null,gaps:null,flags:1},D=P.stroke,[z,A]=l5(l,n);if(null!=o.fill||0!=z){let e=P.fill=new Path2D(D),t=_(o.fillTo(l,n,o.min,o.max,z));v(e,S,t),v(e,M,t)}if(!o.spanGaps){let e=[];e.push(...l8(u,s,i,r,k,y,t)),P.gaps=e=o.gaps(l,n,i,r,e),P.clip=l7(e,a.ori,d,p,m,g)}return 0!=A&&(P.band=2==A?[l6(l,n,i,r,D,-1),l6(l,n,i,r,D,1)]:l6(l,n,i,r,D,A)),P})}(tx,e)}}},84429:()=>{}}]);
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.