'use strict';
import { isBrowser } from '../lib/environments.js';
import { parseJson } from '../lib/utils.js';

var __defProp=Object['defineProperty'],__name=(_0x35c7ff,_0x1f6073)=>__defProp(_0x35c7ff,'name',{'value':_0x1f6073,'configurable':!![]});function localStorageGetString(_0x16895a){if(isBrowser()){const _0x16cb38=localStorage['getItem'](_0x16895a);return _0x16cb38??void(-0x23*-0x3a+-0x179*-0x13+0x1d*-0x13d);}return void(0x1497*0x1+0x1819+0x410*-0xb);}__name(localStorageGetString,'localStorageGetString');function getLocalStorage(_0x3ba41d){const _0x5896b4=localStorageGetString(_0x3ba41d);return _0x5896b4?parseJson(_0x5896b4):void(0x2*-0x304+-0xeec+0x14f4);}__name(getLocalStorage,'getLocalStorage');function setLocalStorage(_0x23c277,_0x48a764){if(_0x48a764===void(0x1e78+0x2*-0xafc+-0x880))return;localStorage['setItem'](_0x23c277,JSON['stringify'](_0x48a764));}__name(setLocalStorage,'setLocalStorage');function removeLocalStorage(_0xde3b8f){localStorage['removeItem'](_0xde3b8f);}__name(removeLocalStorage,'removeLocalStorage');

export { getLocalStorage, localStorageGetString, removeLocalStorage, setLocalStorage };
