import fs from 'node:fs';import path from 'node:path';import vm from 'node:vm';import crypto from 'node:crypto';import assert from 'node:assert/strict'; const read=p=>JSON.parse(fs.readFileSync(p,'utf8')),state=read('C:/laragon/data/sgf-tempo/run/modular-regression-current.json'),tag=process.argv[2];if(state.port!==55439||!/^[a-f0-9]{12}$/.test(tag??''))throw Error('Owned rendered fixture required');const root=path.join(state.root,'private/ledger-'+tag),output=path.join(root,'sales-forms.json');if(fs.existsSync(output))throw Error('Completed form proof preserved'); const html=fs.readFileSync(path.join(root,'sales-demo-preparer.html'),'utf8'),script=[...html.matchAll(/