{"version":3,"file":"2-CydY8rPn.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/(app)/_layout.server.js","../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["import { c as config } from \"../../../chunks/config.js\";\nimport { r as redirect } from \"../../../chunks/index.js\";\nconst load = async ({ fetch, cookies }) => {\n if (!cookies.get(\"token\")) {\n return redirect(302, \"/auth\");\n }\n const res = await fetch(config.api_url + \"/me\");\n if (res.status > 399 && res.status < 499) {\n cookies.delete(\"token\", {\n path: \"/\"\n });\n redirect(302, \"/auth\");\n }\n const data = await res.json();\n return {\n me: data.user\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/(app)/_layout.server.js';\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/(app)/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/(app)/+layout.server.js\";\nexport const imports = [\"_app/immutable/nodes/2.yXbsUL8E.js\",\"_app/immutable/chunks/scheduler.7_EeBW2g.js\",\"_app/immutable/chunks/index.BSb_8PJS.js\",\"_app/immutable/chunks/each.BAM8_WyA.js\",\"_app/immutable/chunks/spread.CgU5AtxT.js\",\"_app/immutable/chunks/Icon.DMRWsWs7.js\",\"_app/immutable/chunks/index.BPRz3xFN.js\",\"_app/immutable/chunks/index.CRpkl5Da.js\",\"_app/immutable/chunks/Toaster.svelte_svelte_type_style_lang.BKjag0FG.js\",\"_app/immutable/chunks/x.RsPpi-iV.js\",\"_app/immutable/chunks/button.MHxSUL-o.js\",\"_app/immutable/chunks/mode-watcher.CTjEHy-L.js\",\"_app/immutable/chunks/config.KNWxMNH-.js\"];\nexport const stylesheets = [\"_app/immutable/assets/app.HhLI2UIK.css\",\"_app/immutable/assets/Toaster.CZzI-Nh6.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;AAEA,MAAM,IAAI,GAAG,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK;AAC3C,EAAE,IAAI,CAAC,OAAO,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