import{i as d}from"./_virtual___federation_fn_import-DB-0B1B_.js";const u=t=>{let e;const n=new Set,c=(s,a)=>{const o=typeof s=="function"?s(e):s;if(!Object.is(o,e)){const g=e;e=a??(typeof o!="object"||o===null)?o:Object.assign({},e,o),n.forEach(f=>f(e,g))}},i=()=>e,r={setState:c,getState:i,getInitialState:()=>l,subscribe:s=>(n.add(s),()=>n.delete(s))},l=e=t(c,i,r);return r},m=t=>t?u(t):u,S=await d("react"),p=t=>t;function I(t,e=p){const n=S.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return S.useDebugValue(n),n}const b=t=>{const e=m(t),n=c=>I(e,c);return Object.assign(n,e),n},O=t=>t?b(t):b;export{O as c};
//# sourceMappingURL=react-sxgC8Nxl.js.map
