import{f as s,la as a}from"./chunk-ISMRT7VU.js";var n=(()=>{class r{constructor(){this._subjectsMap=new Map}set(t,e){try{localStorage.setItem(t,JSON.stringify(e)),this._getSubject(t).next(e)}catch(c){throw new Error(c)}}get(t){try{let e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return null}}remove(t){try{localStorage.removeItem(t)}catch(e){throw new Error(e)}}watch(t){return this._getSubject(t).asObservable()}_getSubject(t){if(!this._subjectsMap.has(t)){let e=this.get(t);this._subjectsMap.set(t,new s(e))}return this._subjectsMap.get(t)}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=a({token:r,factory:r.\u0275fac})}}return r})();export{n as a};
//# sourceMappingURL=chunk-NRBWRRAF.js.map
