{"release_id":"01a2309f-d47d-0000-29bc-a17a97e31fa5","chunk_id":"01a2309f-d5d3-7a12-a621-b0e637aa5543","file":"Ded7AxfK.mjs","mappings":"qTAGA,MAAMA,EAAM,eAEL,SAASC,GAAmB,CAClC,GAAI,CACH,OAAO,aAAa,QAAQD,CAAG,IAAM,KAAO,KAAO,IACpD,MAAQ,CACP,MAAO,IACR,CACD,CAEO,SAASE,EAAUC,EAAU,CACnC,GAAI,CACH,aAAa,QAAQH,EAAKG,CAAC,CAC5B,MAAQ,CAER,CACD","names":["KEY","loadUnits","saveUnits","u"],"sources":["../../../../../../src/lib/sculpt/units.ts"],"sourcesContent":["// The viewer's cm / in choice, shared by the editor and the clash / share pages (localStorage only).\nimport type { Units } from './stats';\n\nconst KEY = 'sculpt:units';\n\nexport function loadUnits(): Units {\n\ttry {\n\t\treturn localStorage.getItem(KEY) === 'in' ? 'in' : 'cm';\n\t} catch {\n\t\treturn 'cm';\n\t}\n}\n\nexport function saveUnits(u: Units) {\n\ttry {\n\t\tlocalStorage.setItem(KEY, u);\n\t} catch {\n\t\t/* private mode: the choice lasts for this page only */\n\t}\n}\n"],"version":3}