{"release_id":"01a247c3-a6b6-0000-74b2-4a83f2c91090","chunk_id":"01a247c3-a96b-7f53-b5a6-a60f0605df18","file":"12.CTxrhYEt.mjs","ignoreList":[],"mappings":";sOAAA,SAsBCA,EAAO,IAAO,CACbC,EAAYC,EAAK,GAAG,EACpBC,EAAUD,EAAK,GAAG,EAClBE,EAAeF,EAAK,GAAG,EACvBG,EAAUH,EAAK,GAAG,EAClBI,EAAWJ,EAAK,GAAG,EACnBK,EAAcL,EAAK,GAAG,CACvB,CAAC,EAEDM,EAAO,IAAO,KACRN,EAAK,KAAK,KAAI,OACf,IAAAO,EAAqB,KACrBC,EAAO,GACC,OAAAC,EAAA,+BAAAC,CAAA,uCAAsB,wBAAAA,CAAA,6BAAE,KAAI,EAAI,eAAAA,KAAqB,CAC5DF,IACJD,EAAIG,EAAc,EACbH,EAAE,MAAM,EAAK,EACnB,CAAC,EACY,KACZC,EAAO,GACPD,GAAG,KAAI,CACR,CACD,CAAC,iDACM","names":["$.user_effect","sculptDebug","page","sculptDpr","sculptSkinLite","sculptCam","sculptPace","sculptUpscale","onMount","p","gone","__vitePreload","createPresence"],"sources":["../../../../../../src/routes/sculpt/+layout.svelte"],"sourcesContent":["<script lang=\"ts\">\n\t// Every sculpt page keeps a signed-in player in Active now while it is in front (no switch: the\n\t// editor's duet switch, duet_open, is the one opt-out, checked by the list). The heartbeat is\n\t// lib/sculpt/presence.ts: a beat every PRESENCE.beatMs while visible, the lease ended when the page\n\t// goes hidden or away (pagehide). Loaded after mount, only for a signed-in viewer; one refused\n\t// first beat (no sculpt yet) and it stays quiet. The site-wide activity signal covers the rest.\n\timport { onMount, type Snippet } from 'svelte';\n\timport { page } from '$app/state';\n\timport type { Presence } from '$lib/sculpt/presence';\n\timport {\n\t\tsculptCam,\n\t\tsculptDebug,\n\t\tsculptDpr,\n\t\tsculptPace,\n\t\tsculptSkinLite,\n\t\tsculptUpscale\n\t} from '$lib/sculpt/debug-flag';\n\n\tlet { children }: { children: Snippet } = $props();\n\n\t// ?debug / ?dpr= / ?skin=lite on any sculpt page: the duet's frame-time readout, a fixed resolution\n\t// and a cheaper skin for this tab (debug-flag.ts)\n\t$effect(() => {\n\t\tsculptDebug(page.url);\n\t\tsculptDpr(page.url);\n\t\tsculptSkinLite(page.url);\n\t\tsculptCam(page.url);\n\t\tsculptPace(page.url);\n\t\tsculptUpscale(page.url);\n\t});\n\n\tonMount(() => {\n\t\tif (!page.data.user) return;\n\t\tlet p: Presence | null = null;\n\t\tlet gone = false;\n\t\tvoid import('$lib/sculpt/presence').then(({ createPresence }) => {\n\t\t\tif (gone) return;\n\t\t\tp = createPresence();\n\t\t\tvoid p.start(false);\n\t\t});\n\t\treturn () => {\n\t\t\tgone = true;\n\t\t\tp?.stop();\n\t\t};\n\t});\n</script>\n\n{@render children()}\n"],"version":3}