That's way above your pay-grade.<quoted text>
What was the source of the material/the text in the original Hebrew version of the bible? That is, the one without the mistakes?
I usually state it's the recollection of material throughout IsraŽls and Judahs history.
So reflecting relations and believes of others in the territory as well.
Together forming a guide through the history.
Experience and do's and don't s for the territory.
If we read that all (including the coastal towns, egypt ,aram and arabs') but not Edom(later nabbatea) fought against assyria, We can understand antagonism in a later era.
That we see plenty of treaties, so you could also call the H.B. a log-book of Canaanite people.
And i'm a bit wary of the socalled sources-theory priestly, Elohist etc.
Western eyes and philosophy in action.
Just as greeks and romans were the new-comers in general and strangers looking on and interpreting events through their xeno-phobia and fear.
Mind these two groups were also new in Greece and Italy.(DNA allover the place)
So instead of being the cradle of civilisation, they are rather the myth producing barbarians.
Myth as instrument of correction (keep your women in the home lest they become like the amazons) and explanations of this strange new territory.
I would put christianity in the same category.