/** * Timing Compiler * * Shared, pure HTML compilation that normalizes timing attributes. * Works in both Node.js and browser (no dependencies, regex-based). * * Guarantees every timed element gets: * - id on media elements when missing * - data-end (computed from data-start + data-duration when possible) * - data-has-audio="true" on