Waveform measurement of charge- and spin-density wavepackets in a chiral Tomonaga–Luttinger liquid