Is the word in bold a direct object or an indirect object?

Before my trip, Bonnie wished me a safe flight.

(1 point)

Direct object

Indirect object

Bot GPT 3.5 Bot GPT 3.5 answered

Indirect object