const e="settings",n={onboardingComplete:!1,trustRpcDirectly:!1,interceptEthLimo:!0,interceptW3Eth:!0,ipfsGatewayHost:"localhost",ipfsGatewayPort:8080,interceptGweiDomains:!0,autoPinIpfsContent:!1};async function a(){const t=(await chrome.storage.local.get(e))[e]??{};return t.rpcUrl==null&&Array.isArray(t.rpcUrls)&&t.rpcUrls[0]&&(t.rpcUrl=t.rpcUrls[0]),delete t.rpcUrls,{...n,...t}}async function o(r){const s={...await a(),...r};return await chrome.storage.local.set({[e]:s}),s}function c(r){chrome.storage.onChanged.addListener((t,s)=>{s!=="local"||!t[e]||r({...n,...t[e].newValue??{}})})}export{a as g,c as o,o as s};
//# sourceMappingURL=chunk-CwBz3wv4.js.map
