How is the underlined pronoun used in the subordinate clause?

I want to meet whoever wrote that anonymous article.

Aobject of a preposition
Bindirect object
Cdirect object
Dsubject