The Resident in Court Ritual, 1764–1858