var b=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},g={exports:{}};(function(w,P){(function(p,o){w.exports=o()})(b,function(){var p=function(){function o(n){return i.appendChild(n.dom),n}function r(n){for(var l=0;la+1e3&&(h.update(1e3*e/(n-a),100),a=n,e=0,v)){var l=performance.memory;v.update(l.usedJSHeapSize/1048576,l.jsHeapSizeLimit/1048576)}return n},update:function(){f=this.end()},domElement:i,setMode:r}};return p.Panel=function(o,r,c){var i=1/0,f=0,a=Math.round,e=a(window.devicePixelRatio||1),h=80*e,x=48*e,v=3*e,n=2*e,l=3*e,d=15*e,s=74*e,u=30*e,m=document.createElement("canvas");m.width=h,m.height=x,m.style.cssText="width:80px;height:48px";var t=m.getContext("2d");return t.font="bold "+9*e+"px Helvetica,Arial,sans-serif",t.textBaseline="top",t.fillStyle=c,t.fillRect(0,0,h,x),t.fillStyle=r,t.fillText(o,v,n),t.fillRect(l,d,s,u),t.fillStyle=c,t.globalAlpha=.9,t.fillRect(l,d,s,u),{dom:m,update:function(y,S){i=Math.min(i,y),f=Math.max(f,y),t.fillStyle=c,t.globalAlpha=1,t.fillRect(0,0,h,d),t.fillStyle=r,t.fillText(a(y)+" "+o+" ("+a(i)+"-"+a(f)+")",v,n),t.drawImage(m,l+e,d,s-e,u,l,d,s-e,u),t.fillRect(l+s-e,d,e,u),t.fillStyle=c,t.globalAlpha=.9,t.fillRect(l+s-e,d,e,a((1-y/S)*u))}}},p})})(g);const R=g.exports;export{R as S};