text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Stats=t()}(this,function(){"use strict";var d=function(){var n=document.createElement("div");function e(e){return n.appendChild(e.dom),e}function t(e){for(var t=0;t<n.children.length;t++)n.children[t].style.display=t===e?"block":"none";e}n.style.cssText="position:fixed;top:0;left:0;opacity:0.9;z-index:90000";var l=(performance||Date).now(),i=l,a=0,o=e(new d.Panel("FPS","#0ff","#002")),f=e(new d.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var r=e(new d.Panel("MB","#f08","#201"));return t(0),{REVISION:16,dom:n,addPanel:e,showPanel:t,begin:function(){l=(performance||Date).now()},end:function(){a++;var e=(performance||Date).now();if(f.update(e-l,200),i+1e3<=e&&(o.update(1e3*a/(e-i),100),i=e,a=0,r)){var t=performance.memory;r.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){l=this.end()},domElement:n,setMode:t}};return d.Panel=function(n,l,i){var a=1/0,o=0,f=Math.round,r=f(window.devicePixelRatio||1),d=80*r,e=48*r,c=3*r,p=2*r,u=3*r,s=15*r,m=74*r,h=30*r,y=document.createElement("canvas");y.width=d,y.height=e,y.style.cssText="width:80px;height:48px";var x=y.getContext("2d");return x.font="bold "+9*r+"px Helvetica,Arial,sans-serif",x.textBaseline="top",x.fillStyle=i,x.fillRect(0,0,d,e),x.fillStyle=l,x.fillText(n,c,p),x.fillRect(u,s,m,h),x.fillStyle=i,x.globalAlpha=.9,x.fillRect(u,s,m,h),{dom:y,update:function(e,t){a=Math.min(a,e),o=Math.max(o,e),x.fillStyle=i,x.globalAlpha=1,x.fillRect(0,0,d,s),x.fillStyle=l,x.fillText(f(e)+" "+n+" ("+f(a)+"-"+f(o)+")",c,p),x.drawImage(y,u+r,s,m-r,h,u,s,m-r,h),x.fillRect(u+m-r,s,r,h),x.fillStyle=i,x.globalAlpha=.9,x.fillRect(u+m-r,s,r,f((1-e/t)*h))}}},d});
  