try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`abc66e35-9f06-4744-a957-0095643c8a8c`,e._sentryDebugIdIdentifier=`sentry-dbid-abc66e35-9f06-4744-a957-0095643c8a8c`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Fg as t,Ig as n}from"./entry.client-dr7r6s9a.js";var r=t(),i=e(n(),1),a=(e,t,n)=>{let a=(0,r.c)(12),[o,s]=(0,i.useState)(e),c=(0,i.useRef)(e),l,u;a[0]===e?(l=a[1],u=a[2]):(l=()=>{c.current=e},u=[e],a[0]=e,a[1]=l,a[2]=u),(0,i.useEffect)(l,u);let d=n?.maxDelay??1/0,f;a[3]===d?f=a[4]:(f=()=>{if(!Number.isFinite(d))return;let e=setTimeout(()=>{s(c.current)},d);return()=>{clearTimeout(e)}},a[3]=d,a[4]=f);let p;a[5]!==o||a[6]!==d?(p=[o,d],a[5]=o,a[6]=d,a[7]=p):p=a[7],(0,i.useEffect)(f,p);let m,h;return a[8]!==e||a[9]!==t?(m=()=>{let n=setTimeout(()=>s(e),t);return()=>clearTimeout(n)},h=[e,t],a[8]=e,a[9]=t,a[10]=m,a[11]=h):(m=a[10],h=a[11]),(0,i.useEffect)(m,h),o};export{a as t};