{"release_id":"01a2309f-d47d-0000-29bc-a17a97e31fa5","chunk_id":"01a2309f-d57c-7630-84a8-1f583e3baa10","file":"BiWY0Sn5.mjs","mappings":"qTAMO,MAAMA,EAAaC,GACzBA,EAAE,OAAS,OAAS,QAAQ,mBAAmBA,EAAE,QAAQ,CAAC,GAAK,OAAOA,EAAE,IAAI,GAItE,SAASC,EAAWC,EAAmC,CAC7D,GAAI,CAACA,EAAK,OAAO,KACjB,MAAMC,EAAI,IAAI,gBAAgBD,CAAG,EAC3BE,EAAMD,EAAE,IAAI,KAAK,EACvB,GAAIC,IAAQ,QAAUA,IAAQ,aAAcL,EAAU,CAAE,KAAMK,EAAK,EACnE,MAAMC,EAAOF,EAAE,IAAI,MAAM,GAAG,OAAO,QAAQ,KAAM,EAAE,EACnD,OAAOE,GAAQA,EAAK,QAAU,GAAKN,EAAU,CAAE,KAAM,OAAQ,SAAUM,CAAA,CAAM,EAAI,IAClF,CAGO,SAASC,EAASC,EAA6B,CACrD,MAAMH,EAAMG,EAAI,aAAa,IAAI,KAAK,EACtC,GAAIH,IAAQ,QAAUA,IAAQ,MAAO,MAAO,CAAE,KAAMA,CAAA,EACpD,MAAMC,EAAOE,EAAI,aAAa,IAAI,MAAM,GAAG,OAAO,QAAQ,KAAM,EAAE,EAClE,OAAOF,GAAQA,EAAK,QAAU,GAAK,CAAE,KAAM,OAAQ,SAAUA,CAAA,EAAS,IACvE","names":["duetQuery","t","duetBackOf","raw","q","bot","nick","targetOf","url"],"sources":["../../../../../../src/lib/components/sculpt/duet/duet-url.ts"],"sourcesContent":["// The duet's URLs (fleet tasks/2026-11-27-sculpt-vulva-duet): ?with=<nickname> / ?bot=muse|avg, read\n// and written. A leaf with no game in it: the sculpt editor imports it, and must not pull the duet\n// game (duet-game.ts) into its chunk through stage.ts (perf audit).\nimport type { DuetTarget } from './contract';\n\n/** A duet's own query (/sculpt/duet?…): ?with=<nickname> or ?bot=muse|avg. */\nexport const duetQuery = (t: DuetTarget) =>\n\tt.kind === 'user' ? `with=${encodeURIComponent(t.nickname)}` : `bot=${t.kind}`;\n\n/** The editor's ?duet= (Gear shop from a duet): that duet's query, checked, else null. It only ever\n *  points back at /sculpt/duet, with one partner and nothing else. */\nexport function duetBackOf(raw: string | null): string | null {\n\tif (!raw) return null;\n\tconst q = new URLSearchParams(raw);\n\tconst bot = q.get('bot');\n\tif (bot === 'muse' || bot === 'avg') return duetQuery({ kind: bot });\n\tconst nick = q.get('with')?.trim().replace(/^@/, '');\n\treturn nick && nick.length <= 40 ? duetQuery({ kind: 'user', nickname: nick }) : null;\n}\n\n/** The duet page's ?with=<nickname> or ?bot=muse|avg; anything else has no partner. */\nexport function targetOf(url: URL): DuetTarget | null {\n\tconst bot = url.searchParams.get('bot');\n\tif (bot === 'muse' || bot === 'avg') return { kind: bot };\n\tconst nick = url.searchParams.get('with')?.trim().replace(/^@/, '');\n\treturn nick && nick.length <= 40 ? { kind: 'user', nickname: nick } : null;\n}\n"],"version":3}