indeclinable particle; yathāyaṁ is yathā + ayaṁ (demonstrative pronoun nom. sg.), a contraction used as a correlative conjunction
Analysis. yathā (correlative particle 'as') + ayaṁ (this, here) = 'as this' or 'just as this', used to introduce a clause that explains or exemplifies the preceding statement; common in narrative and doctrinal contexts to mark the manner or reason for what follows.
Meanings from the Digital Pāḷi Dictionary; morphology and etymology by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version