So i am not sure if this is the real issue but i see a mistake. I theme.js file at around line 8321 or at the very bottom you have a added some js code inside script tags. But Putting an HTML tag inside a .js file will result in a syntax error when the file is loaded by the browser and that’s what you are getting here.
You should try transferring this entire code to by entire i mean from line 8321 to 8340 to theme.liquid file just before closing body tag at the bottom. Hope this helps
Go to your store admin > Sales channels > Online Store > Themes > click “…” in Current theme > Edit code > open theme.js, move this code (remove the code from theme.js) below to theme.liquid file above tag.