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EAAA,EACxF,CAAE,IAAK,aAAc,GAAI,SAAU,KAAM,SAAU,MAAO,IAAK,KAAM,SAAU,KAAM,EAAA,EACrF,CAAE,IAAK,eAAgB,GAAI,WAAY,KAAM,WAAY,MAAO,IAAK,KAAM,SAAU,KAAM,EAAA,EAG3F,CAAE,IAAK,WAAY,GAAI,OAAQ,KAAM,WAAY,MAAO,IAAK,KAAM,SAAU,OAAQ,EAAG,KAAM,EAAA,CAC/F,EAeO,SAASC,GAAYjE,EAA+B,CAC1D,OAAO,OAAOA,GAAM,UAAa6D,GAAgC,SAAS7D,CAAC,EAAKA,EAAmB,IACpG","names":["GEAR_HAIRS","GEAR_PIERCINGS","GEAR_JEWELS","GEAR_RINGS","GEAR_RING_COLS","GEAR_CHARMS","GEAR_FUN","GEAR_HATS","GEAR_WINGS","GEAR_METALS","GEAR_VJEWELS","GEAR_GEMS","GEAR_PLUG_SIZES","GEAR_TAIL_COLS","GEAR_STANDS","GEAR_GROUPS","PRO_GEAR","EXOTIC_GEAR","VULVA_GEAR_LIVE","VULVA_PRO_GEAR","FOX_TAIL_FREE_UNTIL","VULVA_EXOTIC_GEAR","GEAR_CATALOG","i","CHARM_ITEMS","c","HAT_ITEMS","h","getGear","key","hairKey","charmKey","hatKey","ringKey","r","wingsKey","w","PLAQUE_NICK_RE","PLAQUE_NO_MAX","sanitizePlaque","v","src","nick","has","list","subset","s","k","VULVA_GEAR","sanitizeTail","col","sanitizePlug","out","sanitizeGear","input","body","g","vj","vjewel","tail","plug","pierce","jewel","fun","f","plaque","stand","gearKeysInUse","keys","p","j","stripUnownedGear","owned","INK_UPLOAD_LIVE","INK_CATALOG","INK_KEYS","isInkKey","getInk","isFreeInk","TAT_TEXT_MAX","TAT_TEXT_RE","SLUR_SUBSTRINGS","SLUR_WORDS","HATE_RAW","LEET","fold","foldLookalikes","joinSpelled","m","squeeze","SLUR_SUBSTRING_KEYS","SLUR_WORD_SET","SLUR_WORD_SQUEEZED","hasSlur","text","raw","re","squashed","cleanTatText","TAT_IMG_RE","cleanTatImg","MATERIALS","matKey","id","MATERIAL_CATALOG","sanitizeMat"],"sources":["../../../../../../src/lib/sculpt/gear.ts","../../../../../../src/lib/sculpt/ink.ts","../../../../../../src/lib/sculpt/material.ts"],"sourcesContent":["// Sculpt gear: hair styles, piercings, jewellery, charms, fun wear, hats and the exotic extras. Shared and\n// pure (no three): the editor shows these prices, sanitizeSculptParams validates params.gear with\n// sanitizeGear, and the server charges from GEAR_CATALOG (src/lib/server/sculpt-shop.ts, unlockItems) and\n// strips unowned gear on save. Unlocks are permanent per user per item (table sculpt_unlock). Catalog keys\n// are stored in sculpt_unlock.item_key: the SQL CHECK (20261213000008_sculpt_shop.sql) must list the same\n// keys. Tiers: 'pro' = free for subscribers, else tokens; 'exotic' = tokens only (src/lib/sculpt/shop.ts).\n// The renderer (render/gear) keeps its own copies of these lists; gear.test.ts checks they match.\n\nexport const GEAR_HAIRS = ['dreads', 'viking'] as const;\nexport const GEAR_PIERCINGS = ['pa', 'ladder', 'apadravya', 'ampallang', 'dydoe', 'hafada', 'guiche', 'pubic', 'lorum'] as const;\nexport const GEAR_JEWELS = ['chain', 'stretcher', 'glansring', 'pachain'] as const;\nexport const GEAR_RINGS = ['none', 'metal', 'leather', 'silicone', 'diamond'] as const;\n/** Silicone cock ring colours (index = gear.ringCol). */\nexport const GEAR_RING_COLS = ['#e0457b', '#2f6fe0', '#8ad13a', '#151517'] as const;\nexport const GEAR_CHARMS = ['none', 'bell', 'heart', 'skull', 'dollar', 'dice', 'anchor', 'diamond'] as const;\nexport const GEAR_FUN = ['eyes', 'moustache', 'monocle', 'bowtie', 'necktie', 'watch'] as const;\nexport const GEAR_HATS = ['none', 'party', 'cowboy', 'viking', 'beanie', 'santa', 'horns', 'wizard', 'tophat', 'astronaut', 'crown'] as const;\nexport const GEAR_WINGS = ['angel', 'bat'] as const;\nexport const GEAR_METALS = ['gold', 'silver', 'black', 'rainbow', 'rose'] as const;\n/** Vulva piercings and jewellery (a vulva only; the values are catalog keys). One VCH: plain or with\n *  a gem (the gem one wins). The chain hangs between the inner rings and brings them when not worn. */\nexport const GEAR_VJEWELS = [\n\t'vch',\n\t'vch_gem',\n\t'hch',\n\t'labia_inner',\n\t'labia_outer',\n\t'christina',\n\t'fourchette',\n\t'labia_chain'\n] as const;\n/** Stone colours for her gem pieces (the gem VCH, the jewel plug): free to change, like the metal. */\nexport const GEAR_GEMS = [\n\t'clear',\n\t'pink',\n\t'blue',\n\t'orange',\n\t'red',\n\t'purple',\n\t'green',\n\t'black'\n] as const;\n/** Jewel plug sizes: the stone 2.5 / 3 / 3.5 cm across. */\nexport const GEAR_PLUG_SIZES = ['s', 'm', 'l'] as const;\n/** Fox tail colours (one unlock covers all): red fox (white tip), arctic, silver (white tip), black,\n *  pink. Free to change, like the metal. */\nexport const GEAR_TAIL_COLS = ['red', 'arctic', 'silver', 'black', 'pink'] as const;\n/** The free display stands: not catalog items (no sculpt_unlock row, never stripped on save). The paid\n *  Pedestal replaces them: a gear object never carries both (sanitizeGear keeps the Pedestal). */\nexport const GEAR_STANDS = ['studio', 'walnut', 'trophy'] as const;\n\nexport type GearHairStyle = (typeof GEAR_HAIRS)[number];\nexport type GearPiercing = (typeof GEAR_PIERCINGS)[number];\nexport type GearJewel = (typeof GEAR_JEWELS)[number];\nexport type GearRing = (typeof GEAR_RINGS)[number];\nexport type GearCharm = (typeof GEAR_CHARMS)[number];\nexport type GearFun = (typeof GEAR_FUN)[number];\nexport type GearHat = (typeof GEAR_HATS)[number];\nexport type GearMetal = (typeof GEAR_METALS)[number];\nexport type GearWings = (typeof GEAR_WINGS)[number];\nexport type GearStand = (typeof GEAR_STANDS)[number];\nexport type GearVJewel = (typeof GEAR_VJEWELS)[number];\nexport type GearGem = (typeof GEAR_GEMS)[number];\nexport type GearPlugSize = (typeof GEAR_PLUG_SIZES)[number];\nexport type GearTailCol = (typeof GEAR_TAIL_COLS)[number];\n\n/** Her jewel plug (worn when present; its metal is the gear's metal). Only non-default fields are\n *  kept: size (M by default) and its stone (pink by default). */\nexport interface GearPlug {\n\tsize?: Exclude<GearPlugSize, 'm'>;\n\tgem?: Exclude<GearGem, 'pink'>;\n}\n\n/** Her fox tail plug (worn when present, instead of the jewel plug: one plug at a time). Only a\n *  non-default colour is kept (red fox by default). */\nexport interface GearTail {\n\tcol?: Exclude<GearTailCol, 'red'>;\n}\n\n/** The Season plaque on the pedestal: stamped by the server on save (never taken from the client),\n *  `no` = the owner's Season 1 number (null = no number yet), `nick` = their handle. */\nexport interface GearPlaque {\n\tno: number | null;\n\tnick: string;\n}\n\n/**\n * params.gear. Only non-default fields are kept (sanitizeGear), and no gear at all is null, so old\n * sculpts and plain ones stay as small as before.\n */\nexport interface SculptGear {\n\thair?: GearHairStyle;\n\tpierce?: GearPiercing[];\n\tjewel?: GearJewel[];\n\tring?: Exclude<GearRing, 'none'>;\n\tringCol?: number;\n\tcharm?: Exclude<GearCharm, 'none'>;\n\tfun?: GearFun[];\n\that?: Exclude<GearHat, 'none'>;\n\tmetal?: Exclude<GearMetal, 'gold'>;\n\twings?: GearWings;\n\tpedestal?: true;\n\tplaque?: GearPlaque;\n\t/** a free display stand (never with the pedestal) */\n\tstand?: GearStand;\n\t/** a vulva's piercings and jewellery, the gem VCH's stone, her jewel plug */\n\tvjewel?: GearVJewel[];\n\tgem?: Exclude<GearGem, 'clear'>;\n\tplug?: GearPlug;\n\t/** her fox tail plug (never with the jewel plug) */\n\ttail?: GearTail;\n}\n\nexport type GearGroup =\n\t| 'hair'\n\t| 'piercings'\n\t| 'jewellery'\n\t| 'charms'\n\t| 'fun'\n\t| 'hats'\n\t| 'extras'\n\t| 'plugs';\n\nexport const GEAR_GROUPS: readonly { id: GearGroup; label: string }[] = [\n\t{ id: 'hair', label: 'Hair' },\n\t{ id: 'piercings', label: 'Piercings' },\n\t{ id: 'jewellery', label: 'Jewellery' },\n\t{ id: 'charms', label: 'Charms' },\n\t{ id: 'fun', label: 'Fun' },\n\t{ id: 'hats', label: 'Hats' },\n\t{ id: 'extras', label: 'Extras' },\n\t{ id: 'plugs', label: 'Plugs' }\n];\n\nexport type GearTier = 'pro' | 'exotic';\n\n/** The pre-shop gear: the Pro tier (free with an active subscription, else these prices). */\nconst PRO_GEAR = [\n\t{ key: 'hair_dreads', name: 'Dreads', price: 50, group: 'hair' },\n\t{ key: 'hair_viking', name: 'Viking braids', price: 60, group: 'hair' },\n\t{ key: 'pa', name: 'Prince Albert', price: 30, group: 'piercings' },\n\t{ key: 'ladder', name: 'Frenum ladder', price: 40, group: 'piercings' },\n\t{ key: 'apadravya', name: 'Apadravya', price: 30, group: 'piercings' },\n\t{ key: 'ampallang', name: 'Ampallang', price: 30, group: 'piercings' },\n\t{ key: 'dydoe', name: 'Dydoe', price: 25, group: 'piercings' },\n\t{ key: 'hafada', name: 'Hafada', price: 30, group: 'piercings' },\n\t{ key: 'guiche', name: 'Guiche', price: 25, group: 'piercings' },\n\t{ key: 'pubic', name: 'Pubic', price: 20, group: 'piercings' },\n\t{ key: 'lorum', name: 'Lorum', price: 20, group: 'piercings' },\n\t{ key: 'chain', name: 'Gold chain', price: 45, group: 'jewellery' },\n\t{ key: 'cockring', name: 'Cock ring', price: 25, group: 'jewellery' },\n\t{ key: 'stretcher', name: 'Ball stretcher', price: 30, group: 'jewellery' },\n\t{ key: 'glansring', name: 'Glans ring', price: 20, group: 'jewellery' },\n\t{ key: 'pachain', name: 'PA chain', price: 35, group: 'jewellery' },\n\t{ key: 'charm_bell', name: 'Bell', price: 15, group: 'charms' },\n\t{ key: 'charm_heart', name: 'Heart', price: 15, group: 'charms' },\n\t{ key: 'charm_skull', name: 'Skull', price: 15, group: 'charms' },\n\t{ key: 'charm_dollar', name: 'Dollar', price: 15, group: 'charms' },\n\t{ key: 'charm_dice', name: 'Dice', price: 15, group: 'charms' },\n\t{ key: 'charm_anchor', name: 'Anchor', price: 15, group: 'charms' },\n\t{ key: 'charm_diamond', name: 'Diamond', price: 30, group: 'charms' },\n\t{ key: 'eyes', name: 'Googly eyes', price: 15, group: 'fun' },\n\t{ key: 'moustache', name: 'Moustache', price: 15, group: 'fun' },\n\t{ key: 'monocle', name: 'Monocle + moustache', price: 20, group: 'fun' },\n\t{ key: 'bowtie', name: 'Bow tie', price: 20, group: 'fun' },\n\t{ key: 'necktie', name: 'Necktie', price: 20, group: 'fun' },\n\t{ key: 'watch', name: 'Watch', price: 35, group: 'fun' },\n\t{ key: 'hat_party', name: 'Party hat', price: 25, group: 'hats' },\n\t{ key: 'hat_cowboy', name: 'Cowboy hat', price: 25, group: 'hats' },\n\t{ key: 'hat_viking', name: 'Viking helmet', price: 25, group: 'hats' },\n\t{ key: 'hat_beanie', name: 'Beanie', price: 25, group: 'hats' },\n\t{ key: 'hat_santa', name: 'Santa hat', price: 25, group: 'hats' }\n] as const satisfies readonly { key: string; name: string; price: number; group: GearGroup }[];\n\n/** Exotic gear: tokens only, subscribers too. `live: false` = not built yet (hidden, not sold). */\nconst EXOTIC_GEAR = [\n\t{ key: 'hat_horns', name: 'Devil horns', price: 75, group: 'hats', live: true },\n\t{ key: 'hat_wizard', name: 'Wizard hat', price: 80, group: 'hats', live: true },\n\t{ key: 'hat_tophat', name: 'Top hat + cape', price: 100, group: 'hats', live: true },\n\t{ key: 'hat_astronaut', name: 'Astronaut helmet', price: 120, group: 'hats', live: false },\n\t{ key: 'hat_crown', name: 'Crown', price: 150, group: 'hats', season: 1, live: true },\n\t{ key: 'ring_diamond', name: 'Diamond ring', price: 120, group: 'jewellery', live: true },\n\t{ key: 'pedestal', name: 'Pedestal', price: 100, group: 'extras', season: 1, live: true },\n\t{ key: 'wings_angel', name: 'Angel wings', price: 140, group: 'extras', live: false },\n\t{ key: 'wings_bat', name: 'Bat wings', price: 140, group: 'extras', live: false }\n] as const satisfies readonly { key: string; name: string; price: number; group: GearGroup; season?: 1; live: boolean }[];\n\n/** Vulva gear on sale: off until the vulva editor's jewellery picker ships (until then hidden in the\n *  shop and refused by the server, like INK_UPLOAD_LIVE). */\nexport const VULVA_GEAR_LIVE = true;\n\n/** Vulva piercings: the Pro tier, like the penis piercings. */\nconst VULVA_PRO_GEAR = [\n\t{ key: 'vch', name: 'VCH', price: 30, group: 'piercings' },\n\t{ key: 'hch', name: 'HCH ring', price: 30, group: 'piercings' },\n\t{ key: 'labia_inner', name: 'Inner labia rings', price: 35, group: 'piercings' },\n\t{ key: 'labia_outer', name: 'Outer labia rings', price: 35, group: 'piercings' },\n\t{ key: 'christina', name: 'Christina', price: 30, group: 'piercings' },\n\t{ key: 'fourchette', name: 'Fourchette', price: 25, group: 'piercings' }\n] as const satisfies readonly { key: GearVJewel; name: string; price: number; group: GearGroup }[];\n\n/** The fox tail's launch week: claimed before this (UTC, the server's clock) it unlocks for 0 tokens,\n *  for good; from then on it costs its price. */\nexport const FOX_TAIL_FREE_UNTIL = Date.UTC(2026, 11, 7);\n\n/** Vulva exotics: the gem VCH, the chain (it brings the inner rings it hangs from), the jewel plug and\n *  the fox tail (free to claim until its freeUntil). */\nconst VULVA_EXOTIC_GEAR = [\n\t{ key: 'vch_gem', name: 'Gem VCH', price: 80, group: 'jewellery' },\n\t{ key: 'labia_chain', name: 'Labia chain', price: 110, group: 'jewellery' },\n\t{ key: 'jewel_plug', name: 'Jewel plug', price: 120, group: 'plugs' },\n\t{ key: 'fox_tail', name: 'Fox tail', price: 120, group: 'plugs', freeUntil: FOX_TAIL_FREE_UNTIL }\n] as const satisfies readonly {\n\tkey: GearVJewel | 'jewel_plug' | 'fox_tail';\n\tname: string;\n\tprice: number;\n\tgroup: GearGroup;\n\tfreeUntil?: number;\n}[];\n\nexport type GearKey =\n\t| (typeof PRO_GEAR)[number]['key']\n\t| (typeof EXOTIC_GEAR)[number]['key']\n\t| (typeof VULVA_PRO_GEAR)[number]['key']\n\t| (typeof VULVA_EXOTIC_GEAR)[number]['key'];\nexport interface GearItem {\n\tkey: GearKey;\n\tname: string;\n\tprice: number;\n\tgroup: GearGroup;\n\ttier: GearTier;\n\t/** Built and on sale (a season item also needs its season open, shop.ts isPurchasable). */\n\tlive: boolean;\n\tseason?: 1;\n\t/** Worn by this body only (absent: the penis). */\n\tbody?: 'vulva';\n\t/** Free to claim before this (ms since epoch, UTC): a claim then is a normal permanent unlock at 0\n\t *  tokens (shop.ts priceAt; the server decides with its own clock). */\n\tfreeUntil?: number;\n}\n\nexport const GEAR_CATALOG: readonly GearItem[] = [\n\t...PRO_GEAR.map((i) => ({ ...i, tier: 'pro' as const, live: true })),\n\t...EXOTIC_GEAR.map((i) => ({ ...i, tier: 'exotic' as const })),\n\t...VULVA_PRO_GEAR.map((i) => ({\n\t\t...i,\n\t\ttier: 'pro' as const,\n\t\tlive: VULVA_GEAR_LIVE,\n\t\tbody: 'vulva' as const\n\t})),\n\t...VULVA_EXOTIC_GEAR.map((i) => ({\n\t\t...i,\n\t\ttier: 'exotic' as const,\n\t\tlive: VULVA_GEAR_LIVE,\n\t\tbody: 'vulva' as const\n\t}))\n];\n\n/** The pickable charms / hats (no 'none'). */\nexport const CHARM_ITEMS = GEAR_CHARMS.filter((c) => c !== 'none') as Exclude<GearCharm, 'none'>[];\nexport const HAT_ITEMS = GEAR_HATS.filter((h) => h !== 'none') as Exclude<GearHat, 'none'>[];\n\nexport const GEAR_KEYS: readonly GearKey[] = GEAR_CATALOG.map((i) => i.key);\n\nexport const isGearKey = (v: unknown): v is GearKey =>\n\ttypeof v === 'string' && (GEAR_KEYS as readonly string[]).includes(v);\n\nexport const getGear = (key: GearKey): GearItem => GEAR_CATALOG.find((i) => i.key === key)!;\n\n/** Catalog key of each gear value. */\nexport const hairKey = (h: GearHairStyle): GearKey => `hair_${h}`;\nexport const charmKey = (c: Exclude<GearCharm, 'none'>): GearKey => `charm_${c}`;\nexport const hatKey = (h: Exclude<GearHat, 'none'>): GearKey => `hat_${h}`;\nexport const ringKey = (r: Exclude<GearRing, 'none'>): GearKey => (r === 'diamond' ? 'ring_diamond' : 'cockring');\nexport const wingsKey = (w: GearWings): GearKey => `wings_${w}`;\n\n/** Plaque nickname: the cardHandle-style safe charset, at most 24 chars. */\nconst PLAQUE_NICK_RE = /[^A-Za-z0-9_.-]/g;\nexport const PLAQUE_NO_MAX = 99999;\n\nfunction sanitizePlaque(v: unknown): GearPlaque | null {\n\tif (!v || typeof v !== 'object' || Array.isArray(v)) return null;\n\tconst src = v as Record<string, unknown>;\n\tconst nick = typeof src.nick === 'string' ? src.nick.replace(PLAQUE_NICK_RE, '').slice(0, 24) : '';\n\tif (!nick) return null;\n\tconst no =\n\t\ttypeof src.no === 'number' && Number.isInteger(src.no) && src.no >= 1 && src.no <= PLAQUE_NO_MAX ? src.no : null;\n\treturn { no, nick };\n}\n\nconst has = <T extends string>(list: readonly T[], v: unknown): v is T =>\n\ttypeof v === 'string' && (list as readonly string[]).includes(v);\n\n/** A de-duplicated subset of `list`, in catalog order. */\nconst subset = <T extends string>(v: unknown, list: readonly T[]): T[] => {\n\tif (!Array.isArray(v)) return [];\n\tconst s = new Set(v);\n\treturn list.filter((k) => s.has(k));\n};\n\n/** Penis gear a vulva sculpt can wear too: the stands, the Pedestal with its plaque, and the metal\n *  colour (her jewellery's). Materials are params.mat, not gear, and fit both bodies. Her own pieces\n *  are vjewel (+ gem); everything else is anchored on the penis. */\nconst VULVA_GEAR = new Set<keyof SculptGear>(['pedestal', 'plaque', 'stand', 'metal']);\n\nfunction sanitizeTail(v: unknown): GearTail | null {\n\tif (v === true) return {};\n\tif (!v || typeof v !== 'object' || Array.isArray(v)) return null;\n\tconst col = (v as Record<string, unknown>).col;\n\treturn has(GEAR_TAIL_COLS, col) && col !== 'red' ? { col } : {};\n}\n\nfunction sanitizePlug(v: unknown): GearPlug | null {\n\tif (v === true) return {};\n\tif (!v || typeof v !== 'object' || Array.isArray(v)) return null;\n\tconst src = v as Record<string, unknown>,\n\t\tout: GearPlug = {};\n\tif (has(GEAR_PLUG_SIZES, src.size) && src.size !== 'm') out.size = src.size;\n\tif (has(GEAR_GEMS, src.gem) && src.gem !== 'pink') out.gem = src.gem;\n\treturn out;\n}\n\n/** Coerce anything into a valid, minimal gear object (null when nothing is on). Never throws. */\nexport function sanitizeGear(input: unknown, body: 'penis' | 'vulva' = 'penis'): SculptGear | null {\n\tif (!input || typeof input !== 'object' || Array.isArray(input)) return null;\n\tconst src = input as Record<string, unknown>,\n\t\tout: SculptGear = {};\n\tif (body === 'vulva') {\n\t\tconst g = sanitizeGear(input) ?? {};\n\t\tfor (const k of Object.keys(g) as (keyof SculptGear)[]) if (!VULVA_GEAR.has(k)) delete g[k];\n\t\tconst vj = subset(src.vjewel, GEAR_VJEWELS);\n\t\t// one VCH: the gem one wins\n\t\tconst vjewel = vj.includes('vch_gem') ? vj.filter((k) => k !== 'vch') : vj;\n\t\tif (vjewel.length) g.vjewel = vjewel;\n\t\tif (has(GEAR_GEMS, src.gem) && src.gem !== 'clear') g.gem = src.gem;\n\t\t// one plug at a time: the fox tail wins\n\t\tconst tail = sanitizeTail(src.tail),\n\t\t\tplug = tail ? null : sanitizePlug(src.plug);\n\t\tif (plug) g.plug = plug;\n\t\tif (tail) g.tail = tail;\n\t\treturn Object.keys(g).length ? g : null;\n\t}\n\tif (has(GEAR_HAIRS, src.hair)) out.hair = src.hair;\n\tconst pierce = subset(src.pierce, GEAR_PIERCINGS);\n\tif (pierce.length) out.pierce = pierce;\n\tconst jewel = subset(src.jewel, GEAR_JEWELS);\n\tif (jewel.length) out.jewel = jewel;\n\tif (has(GEAR_RINGS, src.ring) && src.ring !== 'none') {\n\t\tout.ring = src.ring;\n\t\tif (src.ring === 'silicone' && typeof src.ringCol === 'number' && Number.isInteger(src.ringCol) && src.ringCol > 0 && src.ringCol < GEAR_RING_COLS.length)\n\t\t\tout.ringCol = src.ringCol;\n\t}\n\tif (has(GEAR_CHARMS, src.charm) && src.charm !== 'none') out.charm = src.charm;\n\tlet fun = subset(src.fun, GEAR_FUN);\n\t// one thing at the neck\n\tif (fun.includes('bowtie')) fun = fun.filter((f) => f !== 'necktie');\n\tif (fun.length) out.fun = fun;\n\tif (has(GEAR_HATS, src.hat) && src.hat !== 'none') out.hat = src.hat;\n\tif (has(GEAR_METALS, src.metal) && src.metal !== 'gold') out.metal = src.metal;\n\tif (has(GEAR_WINGS, src.wings)) out.wings = src.wings;\n\tif (src.pedestal === true) {\n\t\tout.pedestal = true;\n\t\t// the plaque only rides on a pedestal (the server stamps it on save)\n\t\tconst plaque = sanitizePlaque(src.plaque);\n\t\tif (plaque) out.plaque = plaque;\n\t} else {\n\t\t// the first cut's names (drafts only, never shipped)\n\t\tconst stand = src.stand === 'oak' ? 'walnut' : src.stand === 'concrete' ? 'trophy' : src.stand;\n\t\tif (has(GEAR_STANDS, stand)) out.stand = stand;\n\t}\n\treturn Object.keys(out).length ? out : null;\n}\n\n/** The paid catalog keys a gear object uses. */\nexport function gearKeysInUse(g: SculptGear | null): GearKey[] {\n\tif (!g) return [];\n\tconst keys: GearKey[] = [];\n\tif (g.hair) keys.push(hairKey(g.hair));\n\tfor (const p of g.pierce ?? []) keys.push(p);\n\tfor (const j of g.jewel ?? []) keys.push(j);\n\tif (g.ring) keys.push(ringKey(g.ring));\n\tif (g.charm) keys.push(charmKey(g.charm));\n\tfor (const f of g.fun ?? []) keys.push(f);\n\tif (g.hat) keys.push(hatKey(g.hat));\n\tif (g.wings) keys.push(wingsKey(g.wings));\n\tfor (const v of g.vjewel ?? []) keys.push(v);\n\tif (g.plug) keys.push('jewel_plug');\n\tif (g.tail) keys.push('fox_tail');\n\tif (g.pedestal) keys.push('pedestal');\n\treturn keys;\n}\n\n/** Drop every gear item whose key is not in `owned` (the owned + entitled keys). Metal colour, ring\n *  colour, stone and tail colour are free, so is a stand. Taking the pedestal off takes its plaque with it. */\nexport function stripUnownedGear(\n\tg: SculptGear | null,\n\towned: ReadonlySet<string>,\n\tbody: 'penis' | 'vulva' = 'penis'\n): SculptGear | null {\n\tif (!g) return null;\n\tconst out: SculptGear = { ...g };\n\tif (out.hair && !owned.has(hairKey(out.hair))) delete out.hair;\n\tif (out.pierce) out.pierce = out.pierce.filter((k) => owned.has(k));\n\tif (out.jewel) out.jewel = out.jewel.filter((k) => owned.has(k));\n\tif (out.ring && !owned.has(ringKey(out.ring))) {\n\t\tdelete out.ring;\n\t\tdelete out.ringCol;\n\t}\n\tif (out.charm && !owned.has(charmKey(out.charm))) delete out.charm;\n\tif (out.fun) out.fun = out.fun.filter((k) => owned.has(k));\n\tif (out.hat && !owned.has(hatKey(out.hat))) delete out.hat;\n\tif (out.wings && !owned.has(wingsKey(out.wings))) delete out.wings;\n\tif (out.vjewel) out.vjewel = out.vjewel.filter((k) => owned.has(k));\n\tif (out.plug && !owned.has('jewel_plug')) delete out.plug;\n\tif (out.tail && !owned.has('fox_tail')) delete out.tail;\n\tif (out.pedestal && !owned.has('pedestal')) {\n\t\tdelete out.pedestal;\n\t\tdelete out.plaque;\n\t}\n\treturn sanitizeGear(out, body);\n}\n","// Sculpt ink (tattoos): the catalog and its prices, plus the custom-text rules. Shared and pure:\n// the editor shows the same prices and validates text live, the server charges from INK_CATALOG\n// (src/lib/server/sculpt-shop.ts) and sanitizeSculptParams uses cleanTatText. Unlocks are permanent\n// per user per item (table sculpt_unlock). Keys are stored in sculpt_unlock.item_key and in the\n// params JSON: the SQL CHECK in 20261213000008_sculpt_shop.sql must list the same keys.\n// Tiers: 'classic' = the first paid designs, tokens only (not part of Pro); 'exotic' = the shop's\n// big pieces, tokens only too (src/lib/sculpt/shop.ts).\n\nexport type InkKind = 'free' | 'paid' | 'text' | 'upload';\nexport type InkTier = 'classic' | 'exotic';\n\n/** Flip once the tattoo image upload + moderation step ships. Until then 'upload' is not sold\n *  (the shop says 'unavailable') and a saved tatImg is dropped (enforceShopOwnership). */\nexport const INK_UPLOAD_LIVE = false;\n\nexport const INK_CATALOG = [\n\t{ key: 'heart', name: 'Heart', price: 0, kind: 'free', tier: 'classic', live: true },\n\t{ key: 'stars', name: 'Stars', price: 0, kind: 'free', tier: 'classic', live: true },\n\t{ key: 'bolt', name: 'Bolt', price: 15, kind: 'paid', tier: 'classic', live: true },\n\t{ key: 'flames', name: 'Flames', price: 25, kind: 'paid', tier: 'classic', live: true },\n\t{ key: 'tribal', name: 'Tribal band', price: 30, kind: 'paid', tier: 'classic', live: true },\n\t{ key: 'barbed', name: 'Barbed wire', price: 30, kind: 'paid', tier: 'classic', live: true },\n\t// the 40 tokens unlock writing your own word (params.tatText)\n\t{ key: 'text', name: 'Your text', price: 40, kind: 'text', tier: 'classic', live: true },\n\t// your own image (params.tatImg); the upload + moderation step is not built yet\n\t{ key: 'upload', name: 'Upload', price: 60, kind: 'upload', tier: 'classic', live: INK_UPLOAD_LIVE },\n\t// exotic: a true-scale ruler decal and two full sleeves that wrap the shaft\n\t{ key: 'ruler', name: 'Ruler', price: 75, kind: 'paid', tier: 'exotic', live: true },\n\t{ key: 'koi', name: 'Koi sleeve', price: 100, kind: 'paid', tier: 'exotic', live: true },\n\t{ key: 'dragon', name: 'Dragon wrap', price: 120, kind: 'paid', tier: 'exotic', live: true }\n] as const satisfies readonly { key: string; name: string; price: number; kind: InkKind; tier: InkTier; live: boolean }[];\n\nexport type InkKey = (typeof INK_CATALOG)[number]['key'];\nexport type InkItem = (typeof INK_CATALOG)[number];\n\nexport const INK_KEYS: readonly InkKey[] = INK_CATALOG.map((i) => i.key);\n\nexport const isInkKey = (v: unknown): v is InkKey =>\n\ttypeof v === 'string' && (INK_KEYS as readonly string[]).includes(v);\n\nexport const getInk = (key: InkKey): InkItem => INK_CATALOG.find((i) => i.key === key)!;\n\n/** Free ink needs no unlock row (and is never charged). */\nexport const isFreeInk = (key: unknown): boolean => isInkKey(key) && getInk(key).price === 0;\n\n// ─── Custom text ─────────────────────────────────────────────────────────────\n\nexport const TAT_TEXT_MAX = 14;\n\n// Latin letters (accents too), digits, space, basic punctuation. Latin only on purpose: Cyrillic\n// / Greek look-alikes would walk straight past the slur check below.\nconst TAT_TEXT_RE = /^[\\p{Script=Latin}0-9 .,!?'&+#:*-]+$/u;\n\n// Slurs and hate shorthand, matched after normalizing (see slurKey). This site is adult, so plain\n// profanity is fine on a tattoo; slurs are not. There is no shared word filter in the repo to\n// reuse (moderation is the async OpenAI call in server/moderation/openai-text.ts).\n// SUBSTRING: unambiguous enough to match anywhere, even with the spaces taken out.\nconst SLUR_SUBSTRINGS = [\n\t'nigger', 'nigga', 'niglet', 'faggot', 'tranny', 'trannie', 'wetback', 'beaner',\n\t'towelhead', 'raghead', 'chingchong', 'kike', 'kyke', 'retard', 'hitler', 'nazi',\n\t'whitepower', 'siegheil', 'gaschamber', 'killalljews'\n] as const;\n// WORD: short ones that sit inside harmless words (spicy, raccoon, skunk), so whole words only.\nconst SLUR_WORDS = [\n\t'fag', 'fags', 'spic', 'spics', 'spick', 'chink', 'chinks', 'coon', 'coons', 'gook', 'gooks',\n\t'dyke', 'dykes', 'paki', 'pakis', 'jap', 'japs', 'wop', 'wops', 'zipperhead', 'shemale', 'heil'\n] as const;\n// 1488 / 88 (as a number of its own, not 1988) and KKK: checked on the raw text, before squeezing\nconst HATE_RAW = [/(^|\\D)(1488|88)(\\D|$)/, /k{3}/i];\n\nconst LEET: Record<string, string> = { '0': 'o', '1': 'i', '3': 'e', '4': 'a', '5': 's', '7': 't', '8': 'b', '9': 'g', '@': 'a', '$': 's', '!': 'i', '+': 't' };\n\n/** Lowercase, accents off, leetspeak folded, \"ph\" read as \"f\". */\nconst fold = (s: string) =>\n\ts\n\t\t.normalize('NFD')\n\t\t.replace(/\\p{M}+/gu, '')\n\t\t.toLowerCase()\n\t\t.replace(/[0-9@$!+]/g, (c) => LEET[c] ?? c)\n\t\t.replace(/ph/g, 'f');\n/** Look-alike letters too (q→g, l→i). Substring pass only: on whole words it would turn \"hell\"\n *  into \"heil\" and \"faq\" into \"fag\". */\nconst foldLookalikes = (s: string) => s.replace(/q/g, 'g').replace(/l/g, 'i');\n/** Single letters spelled out with dots / spaces (\"f.a.g\", \"f a g\") joined back into a word. */\nconst joinSpelled = (s: string) =>\n\ts.replace(/(?<!\\p{L})\\p{L}(?:[.\\s]+\\p{L}(?!\\p{L}))+/gu, (m) => m.replace(/[.\\s]+/g, ''));\n/** Runs of the same letter squeezed, so \"niiiggger\" and \"nigger\" meet as \"niger\". */\nconst squeeze = (s: string) => s.replace(/(\\p{L})\\1+/gu, '$1');\n\nconst SLUR_SUBSTRING_KEYS = SLUR_SUBSTRINGS.map((s) => squeeze(foldLookalikes(fold(s))));\nconst SLUR_WORD_SET = new Set<string>(SLUR_WORDS);\n// squeezed matching only for words without a double letter (\"coon\" squeezed is \"con\", a real word)\nconst SLUR_WORD_SQUEEZED = new Set<string>(SLUR_WORDS.filter((w) => squeeze(w) === w));\n\n/** True when the text carries a slur or hate shorthand. Exported for the editor's live hint. */\nexport function hasSlur(text: string): boolean {\n\tconst raw = text.replace(/\\s+/g, '');\n\tif (HATE_RAW.some((re) => re.test(raw))) return true;\n\tconst key = joinSpelled(fold(text));\n\tconst squashed = squeeze(foldLookalikes(key).replace(/[^\\p{L}]+/gu, ''));\n\tif (SLUR_SUBSTRING_KEYS.some((s) => squashed.includes(s))) return true;\n\treturn key\n\t\t.split(/[^\\p{L}]+/u)\n\t\t.some((w) => w && (SLUR_WORD_SET.has(w) || SLUR_WORD_SQUEEZED.has(squeeze(w))));\n}\n\n/** The stored form of a custom tattoo word, or null when it is not allowed. Trims and collapses\n *  spaces, NFC. 1–14 chars, letters / digits / space / basic punctuation, at least one letter or\n *  digit, no slurs. Never throws. */\nexport function cleanTatText(v: unknown): string | null {\n\tif (typeof v !== 'string') return null;\n\tconst s = v.normalize('NFC').replace(/\\s+/g, ' ').trim();\n\tif (s.length < 1 || s.length > TAT_TEXT_MAX) return null;\n\tif (!TAT_TEXT_RE.test(s) || !/[\\p{L}0-9]/u.test(s)) return null;\n\tif (hasSlur(s)) return null;\n\treturn s;\n}\n\n// ─── Uploaded image ──────────────────────────────────────────────────────────\n\n/** A storage path shape for params.tatImg: relative, no \"..\", no leading slash. Whose path it is\n *  (the owner's own folder) is checked on the server (enforceShopOwnership). */\nconst TAT_IMG_RE = /^[A-Za-z0-9_-][A-Za-z0-9_./-]{0,199}$/;\n\nexport function cleanTatImg(v: unknown): string | null {\n\tif (typeof v !== 'string') return null;\n\tif (!TAT_IMG_RE.test(v) || v.includes('..') || v.includes('//')) return null;\n\treturn v;\n}\n","// Sculpt materials: a whole-model finish (params.mat) that replaces the skin look. Shared and pure (no\n// three): the shop shows these prices, sanitizeSculptParams validates params.mat with sanitizeMat, and\n// the server charges from MATERIAL_CATALOG (src/lib/server/sculpt-shop.ts). Catalog keys ('mat_' + id)\n// are stored in sculpt_unlock.item_key: the CHECK in 20261213000008_sculpt_shop.sql lists them.\n// The look of each finish lives in render/finish.ts.\n\nexport const MATERIALS = ['bronze', 'obsidian', 'marble', 'gummy', 'crystal', 'chrome', 'kintsugi', 'gold'] as const;\n\nexport type MaterialId = (typeof MATERIALS)[number];\n\nexport const matKey = (id: MaterialId) => `mat_${id}` as const;\nexport type MaterialKey = ReturnType<typeof matKey>;\n\nexport const MATERIAL_CATALOG = [\n\t{ key: 'mat_bronze', id: 'bronze', name: 'Bronze', price: 80, tier: 'exotic', live: true },\n\t{ key: 'mat_obsidian', id: 'obsidian', name: 'Obsidian', price: 90, tier: 'exotic', live: true },\n\t{ key: 'mat_marble', id: 'marble', name: 'Marble', price: 100, tier: 'exotic', live: true },\n\t{ key: 'mat_gummy', id: 'gummy', name: 'Gummy', price: 100, tier: 'exotic', live: true },\n\t{ key: 'mat_crystal', id: 'crystal', name: 'Crystal', price: 120, tier: 'exotic', live: true },\n\t{ key: 'mat_chrome', id: 'chrome', name: 'Chrome', price: 120, tier: 'exotic', live: true },\n\t{ key: 'mat_kintsugi', id: 'kintsugi', name: 'Kintsugi', price: 140, tier: 'exotic', live: true },\n\t// Season 1 (the statue set): on sale only while the season is open (shop.ts isPurchasable).\n\t// Season 1 (sold only while it is open, season.ts)\n\t{ key: 'mat_gold', id: 'gold', name: '24K Gold', price: 150, tier: 'exotic', season: 1, live: true }\n] as const satisfies readonly {\n\tkey: MaterialKey;\n\tid: MaterialId;\n\tname: string;\n\tprice: number;\n\ttier: 'exotic';\n\tseason?: 1;\n\tlive: boolean;\n}[];\n\nexport type MaterialItem = (typeof MATERIAL_CATALOG)[number];\n\nexport const getMaterial = (id: MaterialId): MaterialItem => MATERIAL_CATALOG.find((m) => m.id === id)!;\n\n/** A valid material id, or null (skin) for anything else. Never throws. */\nexport function sanitizeMat(v: unknown): MaterialId | null {\n\treturn typeof v === 'string' && (MATERIALS as readonly string[]).includes(v) ? (v as MaterialId) : null;\n}\n"],"version":3}