const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-C6B6irz5.js","./react-B8jdHdWa.js","./chunk-BneVvdWh.js","./react-C7IZe2D1.js"])))=>i.map(i=>d[i]);
import{a as e,n as t}from"./chunk-BneVvdWh.js";import{n,t as r}from"./preload-helper-nVtPd9zc.js";import{t as i}from"./react-C7IZe2D1.js";import{i as a,l as o,n as s,r as c,t as l}from"./iframe-D-oZzXNK.js";import{t as u}from"./client-o3HipSzo.js";function d(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var f,p,m,h,g,_,v,y=t((()=>{f=e(i(),1),p=e(u(),1),m=new Map,h=({callback:e,children:t})=>{let n=f.useRef();return f.useLayoutEffect(()=>{n.current!==e&&(n.current=e,e())},[e]),t},typeof Promise.withResolvers>`u`&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}),g=async(e,t,n)=>{let r=await v(t,n);if(d()){r.render(e);return}let{promise:i,resolve:a}=Promise.withResolvers();return r.render(f.createElement(h,{callback:a},e)),i},_=(e,t)=>{let n=m.get(e);n&&(n.unmount(),m.delete(e))},v=async(e,t)=>{let n=m.get(e);return n||(n=p.createRoot(e,t),m.set(e,n)),n}})),b,x,S,C,w=t((()=>{b=e(i(),1),y(),o(),n(),x={code:s,a:l,...a},S=class extends b.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:b.createElement(b.Fragment,null,t)}},C=class{constructor(){this.render=async(e,t,n)=>{let i={...x,...t?.components},a=c;return new Promise((o,s)=>{r(async()=>{let{MDXProvider:e}=await import(`./react-C6B6irz5.js`);return{MDXProvider:e}},__vite__mapDeps([0,1,2,3]),import.meta.url).then(({MDXProvider:r})=>g(b.createElement(S,{showException:s,key:Math.random()},b.createElement(r,{components:i},b.createElement(a,{context:e,docsParameter:t}))),n)).then(()=>o())})},this.unmount=e=>{_(e)}}}}));t((()=>{w()}))();export{C as DocsRenderer};