1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{Bn as t,Fn as n,Ln as r}from"./ui-vendor-DjPL_jpu.js";import{t as i}from"./context-CmrmIVG-.js";import"./index-j8Rgow4h.js";import{n as a,t as o}from"./utils-CN6dXUtf.js";import{a as s,i as c,n as l,r as u}from"./ContentArea-C0HDSIyS.js";import"./XhtmlString-4U75Qeoa.js";var d=r(),f=e(t(),1),p=n(),m=e=>{let t=(0,d.c)(14),{content:n,autoScroll:r}=e,a=r===void 0||r,o;t[0]!==a||t[1]!==n?(o=()=>{n&&a&&(a instanceof Boolean||a instanceof Function&&a(n))&&window.scrollTo(0,0)},t[0]=a,t[1]=n,t[2]=o):o=t[2];let l=n?._id,m;t[3]!==a||t[4]!==n||t[5]!==l?(m=[n,l,a],t[3]=a,t[4]=n,t[5]=l,t[6]=m):m=t[6],(0,f.useEffect)(o,m);let{pageMap:h}=(0,f.useContext)(i);if(!n)return null;let g=h[n._type];if(!g)return s(`No page component is found for type ${n._type}, nothing to render`,c.Error),null;let _;t[7]===n?_=t[8]:(_=u(n),t[7]=n,t[8]=_);let v=_,y;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(y={},t[9]=y):y=t[9];let b=y,{data:x,info:S}=v,C;return t[10]!==g||t[11]!==x||t[12]!==S?(C=(0,p.jsx)(g,{content:x,propsInfo:b,pageInfo:S}),t[10]=g,t[11]=x,t[12]=S,t[13]=C):C=t[13],C},h=e=>{let t=(0,d.c)(11),{content:n,pageInfo:r,propInfo:i,component:s,getAdditionalBlockInfo:c}=e,u;t[0]===i?u=t[1]:(u=a(i),t[0]=i,t[1]=u);let f;t[2]!==n||t[3]!==c||t[4]!==r||t[5]!==i?.blockInfo?(f=n&&(0,p.jsx)(l,{content:n,pageInfo:r,getAdditionalBlockInfo:c,blockInfo:i?.blockInfo}),t[2]=n,t[3]=c,t[4]=r,t[5]=i?.blockInfo,t[6]=f):f=t[6];let m;return t[7]!==s||t[8]!==u||t[9]!==f?(m=(0,p.jsx)(o,{...u,component:s,children:f}),t[7]=s,t[8]=u,t[9]=f,t[10]=m):m=t[10],m},g=`beta/epiReady`,_=(e,t)=>{let n=Date.now();return new Promise((r,i)=>{(function a(){if(e())return r(!0);if(Date.now()-n>=t)return i(Error(`Timeout waiting for predicate`));setTimeout(a,30)})()})},v=()=>_(()=>!!(window.epi&&window.epi.beta),5e3);new Promise(e=>{let t=async()=>{try{await v()}catch{return e(void 0)}let{epi:t}=window;if(!t)return e(void 0);if(t.beta&&t.beta.ready)return e(t.beta);if(t.subscribe){let n=t.subscribe(g,()=>{e(window.epi?window.epi.beta:void 0),n&&n.remove&&n.remove()})}else e(void 0)};document.readyState===`complete`?t():window.addEventListener(`load`,()=>{t()})});export{m as n,h as t};
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.