There are Javascript compressors, that change the formatting of a script so it is hard to read and appears as one big blob. This code appears to have been put through one of those compressors to obfuscate and confuse the reader, and to create a minor obstacle to foul play.
That makes it difficult to determine if it’s garbage or well-structured code. I’ll give them the benefit of the doubt and assume that it was well-written code passed through a compressor.
The compressor doesn’t change the functioning of the code, just the formatting of the text.
View Source to see it formatted and with comments. It’s nearly 3,000 lines (400KB!) of error messages out of a total of 6,000 lines. Must be murder on a mobile connection.