import{l as a}from"./p-60cf0cc2.js";import{g as c}from"./p-858fc937.js";async function r(r){let o=r?await c(r,null):null;try{r?await a.removeItem(r):await a.clear()}catch(a){console.log("Error clearing data from cache with localforage",a)}try{r?localStorage.removeItem(r):localStorage.clear()}catch(a){console.log("Error clearing data from cache with LocalStorage",a)}return o}export{r as c}