Question: What language group includes the the old version of the language used by Khaqani?

full_context: Document 1: Iranian languages: What is known in Iranian linguistic history as the "Middle Iranian" era is thought to begin around the 4th century BCE lasting through the 9th century. Linguistically the Middle Iranian languages are conventionally classified into two main groups, Western and Eastern.
Document 2: Hafez: Hafez was born in Shiraz, Iran. His parents were from Kazerun, Fars Province. Despite his profound effect on Persian life and culture and his enduring popularity and influence, few details of his life are known. Accounts of his early life rely upon traditional anecdotes. Early tazkiras (biographical sketches) mentioning Hafez are generally considered unreliable. At an early age, he memorized the Quran and was given the title of Hafez, which he later used as his pen name. The preface of his Divān, in which his early life is discussed, was written by an unknown contemporary whose name may have been Moḥammad Golandām. Two of the most highly regarded modern editions of Hafez's Divān are compiled by Moḥammad Ghazvini and Qāsem Ḡani (495 ghazals) and by Parviz Natel-Khanlari (486 ghazals).Modern scholars generally agree that Hafez was born either in 1315 or 1317.  According to an account by Jami, Hafez died in 1390. Hafez was supported by patronage from several successive local regimes: Shah Abu Ishaq, who came to power while Hafez was in his teens; Timur at the end of his life; and even the strict ruler Shah Mubariz ud-Din Muhammad (Mubariz Muzaffar). Though his work flourished most under the 27-year rule of Jalal ud-Din Shah Shuja (Shah Shuja), it is claimed Hāfez briefly fell out of favor with Shah Shuja for mocking inferior poets (Shah Shuja wrote poetry himself and may have taken the comments personally), forcing Hāfez to flee from Shiraz to Isfahan and Yazd, but no historical evidence is available. He is said to have been in Timur's court, as Hafez wrote a ghazal whose verse says if this Turk accept his homage:
Document 3: Iranian languages: The multitude of Middle Iranian languages and peoples indicate that great linguistic diversity must have existed among the ancient speakers of Iranian languages. Of that variety of languages/dialects, direct evidence of only two have survived. These are:
Document 4: Wali Mohammed Wali: Before Wali, South Asian Ghazals were composed in Persian, almost being replicated in thought and style from the original Persian masters like Saa'di, Jami and Khaqani. Wali began, using not only an Indian language, but Indian themes, idioms and imagery in his ghazals. It is said that his visit to Delhi in 1700, along with his divan of Urdu ghazals created a ripple in the literary circles of the north, inspiring them to produce stalwarts like Zauq, Sauda and Mir.
Document 5: Muslim world: The best known work of fiction from the Islamic world is One Thousand and One Nights (In Persian: hezār-o-yek šab > Arabic: ʔalf-layl-at-wa-l’-layla= One thousand Night and (one) Night) or *Arabian Nights, a name invented by early Western translators, which is a compilation of folk tales from Sanskrit, Persian, and later Arabian fables. The original concept is derived from a pre-Islamic Persian prototype Hezār Afsān (Thousand Fables) that relied on particular Indian elements. It reached its final form by the 14th century; the number and type of tales have varied from one manuscript to another. All Arabian fantasy tales tend to be called Arabian Nights stories when translated into English, regardless of whether they appear in The Book of One Thousand and One Nights or not. This work has been very influential in the West since it was translated in the 18th century, first by Antoine Galland. Imitations were written, especially in France. Various characters from this epic have themselves become cultural icons in Western culture, such as Aladdin, Sinbad the Sailor and Ali Baba.
Document 6: Sarmad Kashani: Sarmad Kashani or simply as "Sarmad" (ca 1590–1661) was a Persian speaking Armenian mystic and poet who travelled to and made the Indian subcontinent his permanent home during the 17th century. Originally Jewish, he may have renounced his religion to adopt Islam. Sarmad, in his poetry, states that he is neither Jewish, nor Muslim, nor Hindu.
Document 7: Iranian languages: In addition to Old Persian and Avestan, which are the only directly attested Old Iranian languages, all Middle Iranian languages must have had a predecessor "Old Iranian" form of that language, and thus can all be said to have had an (at least hypothetical) "Old" form. Such hypothetical Old Iranian languages include Carduchi (the hypothetical predecessor to Kurdish) and Old Parthian. Additionally, the existence of unattested languages can sometimes be inferred from the impact they had on neighbouring languages. Such transfer is known to have occurred for Old Persian, which has (what is called) a "Median" substrate in some of its vocabulary. Also, foreign references to languages can also provide a hint to the existence of otherwise unattested languages, for example through toponyms/ethnonyms or in the recording of vocabulary, as Herodotus did for what he called "Scythian".
Document 8: Quran: One of the notable authors of esoteric interpretation prior to the 12th century is Sulami (d. 1021) without whose work the majority of very early Sufi commentaries would not have been preserved. Sulami's major commentary is a book named haqaiq al-tafsir ("Truths of Exegesis") which is a compilation of commentaries of earlier Sufis. From the 11th century onwards several other works appear, including commentaries by Qushayri (d. 1074), Daylami (d. 1193), Shirazi (d. 1209) and Suhrawardi (d. 1234). These works include material from Sulami's books plus the author's contributions. Many works are written in Persian such as the works of Maybudi (d. 1135) kash al-asrar ("the unveiling of the secrets"). Rumi (d. 1273) wrote a vast amount of mystical poetry in his book Mathnawi. Rumi makes heavy use of the Quran in his poetry, a feature that is sometimes omitted in translations of Rumi's work. A large number of Quranic passages can be found in Mathnawi, which some consider a kind of Sufi interpretation of the Quran. Rumi's book is not exceptional for containing citations from and elaboration on the Quran, however, Rumi does mention Quran more frequently. Simnani (d. 1336) wrote two influential works of esoteric exegesis on the Quran. He reconciled notions of God's manifestation through and in the physical world with the sentiments of Sunni Islam. Comprehensive Sufi commentaries appear in the 18th century such as the work of Ismail Hakki Bursevi (d. 1725). His work ruh al-Bayan (the Spirit of Elucidation) is a voluminous exegesis. Written in Arabic, it combines the author's own ideas with those of his predecessors (notably Ibn Arabi and Ghazali), all woven together in Hafiz, a Persian poetry form.
Document 9: Iranian languages: Two of the earliest dialectal divisions among Iranian indeed happen to not follow the later division into Western and Eastern blocks. These concern the fate of the Proto-Indo-Iranian first-series palatal consonants, *ć and *dź:
Document 10: Mahsati: As an eminent poet, she was composer of quatrains (ruba'is). Originated from Ganja, she was said to have associated with both Omar Khayyam and Nizami. She is also said to have been a companion of Sultan Sanjar. Her alleged free way of living and peddled verses have stamped her as a Persian Madame Sans-Gêne . Her purported love affairs are recounted in the works of "Jauhari of Bukhara".
Document 11: Shahnameh: The first to undertake the versification of the Pahlavi chronicle was Abu - Mansur Daqiqi, a contemporary of Ferdowsi, poet at the court of the Samanids, who came to a violent end after completing only 1,000 verses. These verses, which deal with the rise of the prophet Zoroaster, were afterward incorporated by Ferdowsi, with acknowledgment, in his own poem. The style of the Shahnameh shows characteristics of both written and oral literature. Some claim that Ferdowsi also used Zoroastrian nasks, such as the now - lost Chihrdad, as sources as well.
Document 12: Iranian languages: It is possible that other distinct dialect groups were already in existence during this period. Good candidates are the hypothethical ancestor languages of Alanian/Scytho-Sarmatian subgroup of Scythian in the far northwest; and the hypothetical "Old Parthian" (the Old Iranian ancestor of Parthian) in the near northwest, where original *dw > *b (paralleling the development of *ćw).
Document 13: Nader Naderpour: Among many Iranian poets who shaped up the New Persian Poetry or New Poetry (in Persian: "She'r-e Now"), Ali Esfandiari aka Nima Yooshij, Parviz Natel Khanlari, Nader Naderpour, Forough Farrokhzad, Mehdi Akhavan Saless, Sohrab Sepehri, Fereydoon Moshiri, Siavash Kasrai, Ahmad Shamlu, Hushang Ebtehaj, and Mohammad-Reza Shafiei Kadkani are considered to be the most famous, skilful, and professional. Though Nima Yooshij (1896–1960) is known as the Father of New Persian Poetry, aka Nimaii Poetry or "She'r-e Nimaii", according to a number of eminent and highly respected literary and poetry scholars Nader Naderpour is considered as the first Iranian poet who opened up exciting vistas of the new Persian poetry.
Document 14: Iranian languages: Old Persian is the Old Iranian dialect as it was spoken in south-western Iran by the inhabitants of Parsa, who also gave their name to their region and language. Genuine Old Persian is best attested in one of the three languages of the Behistun inscription, composed circa 520 BC, and which is the last inscription (and only inscription of significant length) in which Old Persian is still grammatically correct. Later inscriptions are comparatively brief, and typically simply copies of words and phrases from earlier ones, often with grammatical errors, which suggests that by the 4th century BC the transition from Old Persian to Middle Persian was already far advanced, but efforts were still being made to retain an "old" quality for official proclamations.
Document 15: Western Iranian languages: The Western Iranian languages are a branch of the Iranian languages, attested from the time of Old Persian (6th century BC) and Median.
ground_truth: Iranian languages
sub_queries: Khaqani >> languages spoken, written or signed Answer: Persian
Old Persian >> part of Answer: Iranian languages