import{Fa as c,Tc as l}from"./chunk-GJDGQISV.js";import{a as i,b as s}from"./chunk-SNAKHGZS.js";var U={equal:S};function d(o,r=U){let a=Object.keys(o),n=a.reduce((e,t)=>s(i({},e),{[t]:c(o[t],r)}),{});return{select(e,t=U){return l(()=>e(n),t)},update(e,t){let T=n[e];typeof t=="function"?T.update(t):T.set(t)},reset(){a.forEach(e=>{n[e].set(o[e])})}}}function S(o,r){return o===r}export{d as a};
