import{S as n,a as t}from"./p-06588791.js";import{C as s}from"./p-138d8bf9.js";function o(){return new s}const i=(s=o())=>({token:s.get(n),uid:s.get(t)});function a(n,t){const s=!!i(n).token;return null==t||t.new("KimlikUtilFunctions").debugGroup("isUserLoggedIn",{result:s,storage:i(n)}),s}function r(n="/",t,s=o(),i=(n=>window.location=n.path)){t?null==t||t.logout().then((()=>{s.clear(),i({path:n})})):(s.clear(),i({path:n}))}export{o as a,i as g,a as i,r as l}