1import{r as o,a as v}from"./vendor-DheSTE2Y.js";import{cm as E,cn as R,co as m}from"./index-BlclqTFS.js";function g(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,u;function a(){for(var i=arguments.length,l=new Array(i),t=0;t<i;t++)l[t]=arguments[t];var d=this,f=function(){e.apply(d,l)};clearTimeout(u),u=setTimeout(f,n)}return a.clear=function(){clearTimeout(u)},a}function p(e,n){return o.isValidElement(e)&&n.indexOf(e.type.muiName)!==-1}function V(e){var n=E(e);return n.defaultView||window}function S(e){var n=e.controlled,u=e.default;e.name,e.state;var a=o.useRef(n!==void 0),i=a.current,l=o.useState(u),t=l[0],d=l[1],f=i?n:t,r=o.useCallback(function(c){i||d(c)},[]);return[f,r]}function h(e){return e=typeof e=="function"?e():e,v.findDOMNode(e)}var s=typeof window<"u"?o.useLayoutEffect:o.useEffect,x=o.forwardRef(function(n,u){var a=n.children,i=n.container,l=n.disablePortal,t=l===void 0?!1:l,d=n.onRendered,f=o.useState(null),r=f[0],c=f[1],w=R(o.isValidElement(a)?a.ref:null,u);return s(function(){t||c(h(i)||document.body)},[i,t]),s(function(){if(r&&!t)return m(u,r),function(){m(u,null)}},[u,r,t]),s(function(){d&&(r||t)&&d()},[d,r,t]),t?o.isValidElement(a)?o.cloneElement(a,{ref:w}):a:r&&v.createPortal(a,r)});export{x as P,g as d,p as i,V as o,S as u};
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.