const o = window.localStorage, c = "", n = (e, t, r = c) => {
  try {
    return o.setItem(`${r}${e}`, JSON.stringify(t)), t;
  } catch {
  }
  return null;
}, s = (e, t = c) => {
  try {
    o.removeItem(`${t}${e}`);
  } catch {
  }
}, a = (e, t = c) => {
  try {
    const r = o.getItem(`${t}${e}`);
    return r && JSON.parse(r);
  } catch {
  }
  return null;
}, l = { save: n, load: a, removeItem: s };
export {
  l as storage
};
//# sourceMappingURL=storageUtils.js.map
