import{t as e}from"./rolldown-runtime.CMAw1HyY.mjs";import{E as t,F as n,L as r}from"./react.CI8P-fjo.mjs";import{$ as i,s as a,wt as o}from"./framer.Wxc585TD.mjs";function s(e){let t=a({state:Object.freeze({...e})}),i=e=>{typeof e==`function`&&(e=e(t.state)),t.state=Object.freeze({...t.state,...e})},s=typeof e==`object`?Object.freeze({...e}):e,c=new Set,l=e=>{typeof e==`function`&&(e=e(s)),s=typeof e==`object`?Object.freeze({...s,...e}):e,c.forEach(e=>e(s))};function u(){let[e,a]=r(s);return n(()=>(c.add(a),()=>c.delete(a)),[]),o()===!0?(o(),[t.state,i]):[e,l]}return u}var c=e((()=>{t(),i()})),l=e((()=>{c()}));export{s as n,l as t}; //# sourceMappingURL=store.js@_1.0.BtEPf84X.mjs.map