text: "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@react-three/fiber"),r=require("three/examples/js/libs/stats.min"),n=require("../helpers/useEffectfulState.cjs.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=c(e),f=u(r);exports.Stats=function({showPanel:e=0,className:r,parent:u}){const c=n((()=>new f.default),[]);return a.useEffect((()=>{if(c){const n=u&&u.current||document.body;c.showPanel(e),null==n||n.appendChild(c.dom),r&&c.dom.classList.add(r);const a=t.addEffect((()=>c.begin())),f=t.addAfterEffect((()=>c.end()));return()=>{null==n||n.removeChild(c.dom),a(),f()}}}),[u,c,r,e]),null};
  