import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{h as t,n}from"./vendor-react-nmZsNlRz.js";var r=n(),i=e(t(),1),a=[`class`,`style`,`data-hermes-mode`,`data-hermes-theme`],o=new Set,s=null;function c(e){return!s&&typeof document<`u`&&(s=new MutationObserver(()=>o.forEach(e=>e())),s.observe(document.documentElement,{attributeFilter:a,attributes:!0})),o.add(e),()=>void o.delete(e)}function l(){let e=(0,r.c)(2),[t,n]=(0,i.useState)(0),a,o;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>c(()=>n(u)),o=[],e[0]=a,e[1]=o):(a=e[0],o=e[1]),(0,i.useEffect)(a,o),t}function u(e){return e+1}export{l as n,c as t};