HtmlUnit / htmlunit

HtmlUnit is a "GUI-Less browser for Java programs".
https://www.htmlunit.org
Apache License 2.0
862 stars 170 forks source link

EvaluatorException: missing formal parameter #232

Open wisniewskib opened 3 years ago

wisniewskib commented 3 years ago

I'm trying to scape gog.com with HtmlUnit 2.43. I'm getting an EvaluatorException when I execute my code with JavaScript enabled. I can't disable JavaScript because the website is built in Angular.

My Code:

//imports
public class Scrapper {
    public static void main(String[] args) throws FailingHttpStatusCodeException, MalformedURLException, IOException {
        String url="https://www.gog.com/games?page=1&sort=popularity&price=discounted";
        WebClient client=new WebClient(BrowserVersion.CHROME);
        client.getOptions().setCssEnabled(false);
        client.getOptions().setJavaScriptEnabled(true);
        client.getOptions().setUseInsecureSSL(true);
        client.getOptions().setThrowExceptionOnScriptError(false);
        HtmlPage page=client.getPage(url);
        client.waitForBackgroundJavaScript(3000);
        System.out.println(page.asXml());
        List<HtmlElement> items=page.getByXPath("div[@class='product-tile']");
        if(items.isEmpty()) {
            System.out.println("Nothing  found");
        }else {
            for(HtmlElement i:items) {
                System.out.println(i.asText());
            }
        }
    }
}

Stack trace:

Sep 21, 2020 11:50:48 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:48 AM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener scriptException
SEVERE: Error during JavaScript execution
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.EvaluatorException]
com.gargoylesoftware.htmlunit.ScriptException: missing formal parameter (https://www4-static.gog-statics.com/js/insights_w4-0d0dd4c.js#1)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:929)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:760)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:726)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1123)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:361)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:256)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:560)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:514)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1192)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1132)
    at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:219)
    at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:312)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2114)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:937)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:443)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:394)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:760)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:208)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:283)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:163)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:638)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
    at com.webscrapper.Scrapper.main(Scrapper.java:22)
Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: missing formal parameter (https://www4-static.gog-statics.com/js/insights_w4-0d0dd4c.js#1)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$HtmlUnitErrorReporter.error(HtmlUnitContextFactory.java:438)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:258)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:326)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:320)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunctionParams(Parser.java:1063)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunctionParams(Parser.java:1046)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunction(Parser.java:1000)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2392)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parenExpr(Parser.java:3237)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3148)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2379)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrayLiteral(Parser.java:3333)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3136)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.returnOrYield(Parser.java:1951)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1233)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2379)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.plainProperty(Parser.java:3730)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.objectLiteral(Parser.java:3630)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3140)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:651)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:570)
    at net.sourceforge.htmlunit.corejs.javascript.Context.parse(Context.java:2598)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2547)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1551)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:224)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1540)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:751)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    ... 34 more
Enclosed exception: 
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: missing formal parameter (https://www4-static.gog-statics.com/js/insights_w4-0d0dd4c.js#1)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$HtmlUnitErrorReporter.error(HtmlUnitContextFactory.java:438)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:258)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:326)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:320)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunctionParams(Parser.java:1063)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunctionParams(Parser.java:1046)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunction(Parser.java:1000)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2392)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parenExpr(Parser.java:3237)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3148)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2379)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrayLiteral(Parser.java:3333)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3136)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.returnOrYield(Parser.java:1951)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1233)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2379)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.plainProperty(Parser.java:3730)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.objectLiteral(Parser.java:3630)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3140)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:651)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:570)
    at net.sourceforge.htmlunit.corejs.javascript.Context.parse(Context.java:2598)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2547)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1551)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:224)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1540)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:751)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:760)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:726)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1123)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:361)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:256)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:560)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:514)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1192)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1132)
    at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:219)
    at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:312)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2114)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:937)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:443)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:394)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:760)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:208)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:283)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:163)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:638)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
    at com.webscrapper.Scrapper.main(Scrapper.java:22)
== CALLING JAVASCRIPT ==
webpackJsonp([16],{14:function(module,exports,__webpack_require__){var factory;factory=function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=0)}([function(module,exports,__webpack_require__){module.exports=__webpack_require__(1)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const pageViewEvent_1=__webpack_require__(2);exports.pageViewEvent=pageViewEvent_1.pageViewEvent;const cartEvents_1=__webpack_require__(4);exports.cartEvents=cartEvents_1.cartEvents;const wishlistEvents_1=__webpack_require__(10);exports.wishlistEvents=wishlistEvents_1.wishlistEvents;const productTileClicked_1=__webpack_require__(11);exports.productTileClickedEvent=productTileClicked_1.productTileClickedEvent},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const metaData_1=__webpack_require__(3);exports.pageViewEvent=(clientInstance=>{clientInstance.sendEvent({type:"page_visited",meta:metaData_1.getMetaWithReferral()})})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const getDefaultMeta=()=>({url:{protocol:window.location.protocol,hostname:window.location.hostname,page_path:window.location.pathname,query_params:window.location.search,anchor_params:window.location.hash}});exports.getDefaultMeta=getDefaultMeta;exports.getMetaWithReferral=(()=>Object.assign(getDefaultMeta(),{referral:document.referrer}))},function(module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_clonedeep_1=__importDefault(__webpack_require__(5)),productUtils_1=__webpack_require__(8),metaData_1=__webpack_require__(3),eventStore_1=__webpack_require__(9);exports.cartEvents=((clientInstance,products,currency,currentCartContent)=>{const previousEvent=eventStore_1.eventStore({cartContent:currentCartContent.map(Number)}),sendAddToCartEvent=eventData=>{const cartProducts=eventData.cartContent.map(Number);productUtils_1.isEqual(previousEvent.get().cartContent,cartProducts)||(productUtils_1.productWasAdded(cartProducts,previousEvent.get().cartContent)&&sendCartEvents(eventData),previousEvent.set(lodash_clonedeep_1.default(eventData)))};void 0!==typeof window.gogEventBus&&window.gogEventBus.subscribe("cart","updated",sendAddToCartEvent);const sendCartEvents=eventData=>{productUtils_1.filterDifferentProducts(eventData.cartContent,previousEvent.get().cartContent).forEach(product=>sendInsightsCartEvent(product,eventData))},sendInsightsCartEvent=(productId,eventData)=>{const newProduct=productUtils_1.findProduct(productId,products);newProduct&&clientInstance.sendEvent({type:"item_added_to_cart",data:{product_id:newProduct.id.toString(),final_value:newProduct.price.finalAmount,currency:currency,base_value:newProduct.price.baseAmount,cart:{product_id:eventData.cartContent.map(String),final_value:getCartValue(eventData,"finalAmount"),base_value:getCartValue(eventData,"baseAmount")}},meta:metaData_1.getDefaultMeta()})},getCartValue=(eventData,key)=>{return eventData.cartContent.reduce((accumulator,productId)=>{const product=productUtils_1.findProduct(productId,products);return product?accumulator+parseFloat(product.price[key]):accumulator},0).toString()}})},function(module,exports,__webpack_require__){(function(global,module){var LARGE_ARRAY_SIZE=200,HASH_UNDEFINED="__lodash_hash_undefined__",MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",boolTag="[object Boolean]",dateTag="[object Date]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reFlags=/\w*$/,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsUint=/^(?:0|[1-9]\d*)$/,cloneableTags={};cloneableTags[argsTag]=cloneableTags["[object Array]"]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags["[object Error]"]=cloneableTags[funcTag]=cloneableTags["[object WeakMap]"]=!1;var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports;function addMapEntry(map,pair){return map.set(pair[0],pair[1]),map}function addSetEntry(set,value){return set.add(value),set}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array?array.length:0;for(initAccum&&length&&(accumulator=array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function isHostObject(value){var result=!1;if(null!=value&&"function"!=typeof value.toString)try{result=!!(value+"")}catch(e){}return result}function mapToArray(map){var index=-1,result=Array(map.size);return map.forEach(function(value,key){result[++index]=[key,value]}),result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function setToArray(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=value}),result}var uid,arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype,coreJsData=root["__core-js_shared__"],maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"",funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectToString=objectProto.toString,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=moduleExports?root.Buffer:void 0,Symbol=root.Symbol,Uint8Array=root.Uint8Array,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,nativeKeys=overArg(Object.keys,Object),DataView=getNative(root,"DataView"),Map=getNative(root,"Map"),Promise=getNative(root,"Promise"),Set=getNative(root,"Set"),WeakMap=getNative(root,"WeakMap"),nativeCreate=getNative(Object,"create"),dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function Hash(entries){var index=-1,length=entries?entries.length:0;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function ListCache(entries){var index=-1,length=entries?entries.length:0;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function MapCache(entries){var index=-1,length=entries?entries.length:0;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function Stack(entries){this.__data__=new ListCache(entries)}function arrayLikeKeys(value,inherited){var result=isArray(value)||function(value){return function(value){return function(value){return!!value&&"object"==typeof value}(value)&&isArrayLike(value)}(value)&&hasOwnProperty.call(value,"callee")&&(!propertyIsEnumerable.call(value,"callee")||objectToString.call(value)==argsTag)}(value)?function(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}(value.length,String):[],length=result.length,skipIndexes=!!length;for(var key in value)!inherited&&!hasOwnProperty.call(value,key)||skipIndexes&&("length"==key||isIndex(key,length))||result.push(key);return result}function assignValue(object,key,value){var objValue=object[key];hasOwnProperty.call(object,key)&&eq(objValue,value)&&(void 0!==value||key in object)||(object[key]=value)}function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}function baseClone(value,isDeep,isFull,customizer,key,object,stack){var result;if(customizer&&(result=object?customizer(value,key,object,stack):customizer(value)),void 0!==result)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=function(array){var length=array.length,result=array.constructor(length);length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input);return result}(value),!isDeep)return function(source,array){var index=-1,length=source.length;array||(array=Array(length));for(;++index<length;)array[index]=source[index];return array}(value,result)}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value))return function(buffer,isDeep){if(isDeep)return buffer.slice();var result=new buffer.constructor(buffer.length);return buffer.copy(result),result}(value,isDeep);if(tag==objectTag||tag==argsTag||isFunc&&!object){if(isHostObject(value))return object?value:{};if(result=function(object){return"function"!=typeof object.constructor||isPrototype(object)?{}:(proto=getPrototype(object),isObject(proto)?objectCreate(proto):{});var proto}(isFunc?{}:value),!isDeep)return function(source,object){return copyObject(source,getSymbols(source),object)}(value,function(object,source){return object&&copyObject(source,keys(source),object)}(result,value))}else{if(!cloneableTags[tag])return object?value:{};result=function(object,tag,cloneFunc,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return function(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength)}(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return function(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length)}(object,isDeep);case mapTag:return function(map,isDeep,cloneFunc){return arrayReduce(isDeep?cloneFunc(mapToArray(map),!0):mapToArray(map),addMapEntry,new map.constructor)}(object,isDeep,cloneFunc);case numberTag:case stringTag:return new Ctor(object);case regexpTag:return(result=new(regexp=object).constructor(regexp.source,reFlags.exec(regexp))).lastIndex=regexp.lastIndex,result;case setTag:return function(set,isDeep,cloneFunc){return arrayReduce(isDeep?cloneFunc(setToArray(set),!0):setToArray(set),addSetEntry,new set.constructor)}(object,isDeep,cloneFunc);case symbolTag:return symbol=object,symbolValueOf?Object(symbolValueOf.call(symbol)):{}}var symbol;var regexp,result}(value,tag,baseClone,isDeep)}}stack||(stack=new Stack);var stacked=stack.get(value);if(stacked)return stacked;if(stack.set(value,result),!isArr)var props=isFull?function(object){return function(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:function(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}(result,symbolsFunc(object))}(object,keys,getSymbols)}(value):keys(value);return function(array,iteratee){for(var index=-1,length=array?array.length:0;++index<length&&!1!==iteratee(array[index],index,array););}(props||value,function(subValue,key){props&&(subValue=value[key=subValue]),assignValue(result,key,baseClone(subValue,isDeep,isFull,customizer,key,value,stack))}),result}function baseIsNative(value){return!(!isObject(value)||maskSrcKey&&maskSrcKey in value)&&(isFunction(value)||isHostObject(value)?reIsNative:reIsHostCtor).test(toSource(value))}function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);return new Uint8Array(result).set(new Uint8Array(arrayBuffer)),result}function copyObject(source,props,object,customizer){object||(object={});for(var index=-1,length=props.length;++index<length;){var key=props[index],newValue=customizer?customizer(object[key],source[key],key,object,source):void 0;assignValue(object,key,void 0===newValue?source[key]:newValue)}return object}function getMapData(map,key){var value,type,data=map.__data__;return("string"==(type=typeof(value=key))||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==value:null===value)?data["string"==typeof key?"string":"hash"]:data.map}function getNative(object,key){var value=function(object,key){return null==object?void 0:object[key]}(object,key);return baseIsNative(value)?value:void 0}Hash.prototype.clear=function(){this.__data__=nativeCreate?nativeCreate(null):{}},Hash.prototype.delete=function(key){return this.has(key)&&delete this.__data__[key]},Hash.prototype.get=function(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?void 0:result}return hasOwnProperty.call(data,key)?data[key]:void 0},Hash.prototype.has=function(key){var data=this.__data__;return nativeCreate?void 0!==data[key]:hasOwnProperty.call(data,key)},Hash.prototype.set=function(key,value){return this.__data__[key]=nativeCreate&&void 0===value?HASH_UNDEFINED:value,this},ListCache.prototype.clear=function(){this.__data__=[]},ListCache.prototype.delete=function(key){var data=this.__data__,index=assocIndexOf(data,key);return!(index<0||(index==data.length-1?data.pop():splice.call(data,index,1),0))},ListCache.prototype.get=function(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?void 0:data[index][1]},ListCache.prototype.has=function(key){return assocIndexOf(this.__data__,key)>-1},ListCache.prototype.set=function(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?data.push([key,value]):data[index][1]=value,this},MapCache.prototype.clear=function(){this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}},MapCache.prototype.delete=function(key){return getMapData(this,key).delete(key)},MapCache.prototype.get=function(key){return getMapData(this,key).get(key)},MapCache.prototype.has=function(key){return getMapData(this,key).has(key)},MapCache.prototype.set=function(key,value){return getMapData(this,key).set(key,value),this},Stack.prototype.clear=function(){this.__data__=new ListCache},Stack.prototype.delete=function(key){return this.__data__.delete(key)},Stack.prototype.get=function(key){return this.__data__.get(key)},Stack.prototype.has=function(key){return this.__data__.has(key)},Stack.prototype.set=function(key,value){var cache=this.__data__;if(cache instanceof ListCache){var pairs=cache.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1)return pairs.push([key,value]),this;cache=this.__data__=new MapCache(pairs)}return cache.set(key,value),this};var getSymbols=nativeGetSymbols?overArg(nativeGetSymbols,Object):function(){return[]},getTag=function(value){return objectToString.call(value)};function isIndex(value,length){return!!(length=null==length?MAX_SAFE_INTEGER:length)&&("number"==typeof value||reIsUint.test(value))&&value>-1&&value%1==0&&value<length}function isPrototype(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto)}function toSource(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}function eq(value,other){return value===other||value!=value&&other!=other}(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map)!=mapTag||Promise&&"[object Promise]"!=getTag(Promise.resolve())||Set&&getTag(new Set)!=setTag||WeakMap&&"[object WeakMap]"!=getTag(new WeakMap))&&(getTag=function(value){var result=objectToString.call(value),Ctor=result==objectTag?value.constructor:void 0,ctorString=Ctor?toSource(Ctor):void 0;if(ctorString)switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return"[object Promise]";case setCtorString:return setTag;case weakMapCtorString:return"[object WeakMap]"}return result});var isArray=Array.isArray;function isArrayLike(value){return null!=value&&function(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}(value.length)&&!isFunction(value)}var isBuffer=nativeIsBuffer||function(){return!1};function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):function(object){if(!isPrototype(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty.call(object,key)&&"constructor"!=key&&result.push(key);return result}(object)}module.exports=function(value){return baseClone(value,!0,!0)}}).call(this,__webpack_require__(6),__webpack_require__(7)(module))},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1),module}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.findProduct=((productId,products)=>products.find(product=>product.id.toString()===productId.toString()));exports.isEqual=((obj1,obj2)=>JSON.stringify(obj1)===JSON.stringify(obj2));exports.productWasAdded=((currentList,previousList)=>previousList.length<currentList.length);exports.filterDifferentProducts=((currentList,previousList)=>currentList.filter(productId=>!previousList.includes(productId)))},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.eventStore=(initialEventData=>{let currentData=initialEventData;return{get:()=>currentData,set:newData=>{currentData=newData}}})},function(module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_clonedeep_1=__importDefault(__webpack_require__(5)),productUtils_1=__webpack_require__(8),metaData_1=__webpack_require__(3),eventStore_1=__webpack_require__(9);exports.wishlistEvents=((clientInstance,products,currentWishlistContents)=>{const previousEvent=eventStore_1.eventStore({wishlistedProducts:currentWishlistContents.map(Number)}),sendWishlistProductsChangedEvents=eventData=>{const wishlistedProducts=eventData.wishlistedProducts.map(Number);if(!productUtils_1.isEqual(previousEvent.get().wishlistedProducts,wishlistedProducts)){if(productUtils_1.productWasAdded(wishlistedProducts,previousEvent.get().wishlistedProducts)){const[newWishlistedProduct]=productUtils_1.filterDifferentProducts(wishlistedProducts,previousEvent.get().wishlistedProducts);sendInsightsWishlistProductEvent(newWishlistedProduct,"product_added_to_wishlist")}else{const[removedWishlistedProduct]=productUtils_1.filterDifferentProducts(previousEvent.get().wishlistedProducts,wishlistedProducts);sendInsightsWishlistProductEvent(removedWishlistedProduct,"product_removed_from_wishlist")}previousEvent.get().wishlistedProducts=lodash_clonedeep_1.default(eventData).wishlistedProducts.map(Number)}};void 0!==typeof window.gogEventBus&&window.gogEventBus.subscribe("wishlist","updated",sendWishlistProductsChangedEvents);const sendInsightsWishlistProductEvent=(productId,eventName)=>{const product=productUtils_1.findProduct(productId,products);product&&clientInstance.sendEvent({type:eventName,data:{product_id:product.id.toString()},meta:metaData_1.getDefaultMeta()})}})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const metaData_1=__webpack_require__(3);exports.productTileClickedEvent=((clientInstance,eventBus=window.gogEventBus)=>{eventBus.subscribe("product","opened",eventData=>{const insightsEventData={product_id:eventData.productData.id};"string"==typeof eventData.sectionId&&(insightsEventData.context=eventData.sectionId),clientInstance.sendEvent({type:"product_tile_clicked",data:insightsEventData,meta:metaData_1.getDefaultMeta()})})})}])},module.exports=factory()},195:function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__data_application_node_modules_gog_module_insights_client_dist_scripts_insights_client_es5_min_js__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_1__data_application_node_modules_gog_module_insights_events_dist_scripts_gog_module_insights_events_es5_min_js__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__data_application_node_modules_gog_module_insights_client_dist_scripts_insights_client_es5_min_js__),__webpack_require__(196)),__WEBPACK_IMPORTED_MODULE_2__data_application_src_GOG_Website_CommonBundle_Resources_assets_scripts_insights_pageViewEvent_js__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__data_application_node_modules_gog_module_insights_events_dist_scripts_gog_module_insights_events_es5_min_js__),__webpack_require__(197)),__WEBPACK_IMPORTED_MODULE_3__data_application_src_GOG_Website_CommonBundle_Resources_assets_scripts_insights_wishlistEvents_js__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__data_application_src_GOG_Website_CommonBundle_Resources_assets_scripts_insights_pageViewEvent_js__),__webpack_require__(198)),__WEBPACK_IMPORTED_MODULE_4__data_application_src_GOG_Website_CommonBundle_Resources_assets_scripts_insights_pageLoaded_ts__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__data_application_src_GOG_Website_CommonBundle_Resources_assets_scripts_insights_wishlistEvents_js__),__webpack_require__(8));__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__data_application_src_GOG_Website_CommonBundle_Resources_assets_scripts_insights_pageLoaded_ts__)},196:function(module,exports,__webpack_require__){var e;e=function(){return n={},o.m=r=[function(t,e,r){t.exports=r(1)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.pageViewEvent=n.pageViewEvent;var o=r(4);e.cartEvents=o.cartEvents;var u=r(10);e.wishlistEvents=u.wishlistEvents;var i=r(11);e.productTileClickedEvent=i.productTileClickedEvent},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3);e.pageViewEvent=function(t){t.sendEvent({type:"page_visited",meta:n.getMetaWithReferral()})}},function(t,e,r){"use strict";function n(){return{url:{protocol:window.location.protocol,hostname:window.location.hostname,page_path:window.location.pathname,query_params:window.location.search,anchor_params:window.location.hash}}}Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultMeta=n,e.getMetaWithReferral=function(){return Object.assign(n(),{referral:document.referrer})}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=n(r(5)),s=r(8),l=r(3),d=r(9);e.cartEvents=function(n,o,u,t){var r=d.eventStore({cartContent:t.map(Number)});window.gogEventBus,window.gogEventBus.subscribe("cart","updated",function(t){var e=t.cartContent.map(Number);s.isEqual(r.get().cartContent,e)||(s.productWasAdded(e,r.get().cartContent)&&i(t),r.set(f.default(t)))});var i=function(e){s.filterDifferentProducts(e.cartContent,r.get().cartContent).forEach(function(t){return c(t,e)})},c=function(t,e){var r=s.findProduct(t,o);r&&n.sendEvent({type:"item_added_to_cart",data:{product_id:r.id.toString(),final_value:r.price.finalAmount,currency:u,base_value:r.price.baseAmount,cart:{product_id:e.cartContent.map(String),final_value:a(e,"finalAmount"),base_value:a(e,"baseAmount")}},meta:l.getDefaultMeta()})},a=function(t,n){return t.cartContent.reduce(function(t,e){var r=s.findProduct(e,o);return r?t+parseFloat(r.price[n]):t},0).toString()}}},function(t,Qt,e){(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,p="[object Arguments]",v="[object Boolean]",_="[object Date]",h="[object Function]",y="[object GeneratorFunction]",b="[object Map]",g="[object Number]",w="[object Object]",o="[object Promise]",j="[object RegExp]",m="[object Set]",O="[object String]",P="[object Symbol]",u="[object WeakMap]",E="[object ArrayBuffer]",S="[object DataView]",A="[object Float32Array]",x="[object Float64Array]",M="[object Int8Array]",D="[object Int16Array]",C="[object Int32Array]",k="[object Uint8Array]",B="[object Uint8ClampedArray]",I="[object Uint16Array]",F="[object Uint32Array]",N=/\w*$/,i=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,T={};T[p]=T["[object Array]"]=T[E]=T[S]=T[v]=T[_]=T[A]=T[x]=T[M]=T[D]=T[C]=T[b]=T[g]=T[w]=T[j]=T[m]=T[O]=T[P]=T[k]=T[B]=T[I]=T[F]=!0,T["[object Error]"]=T[h]=T[u]=!1;var a="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,s=a||f||Function("return this")(),l=Qt&&!Qt.nodeType&&Qt,d=l&&"object"==typeof e&&e&&!e.nodeType&&e,$=d&&d.exports===l;function W(t,e){return t.set(e[0],e[1]),t}function R(t,e){return t.add(e),t}function U(t,e,r,n){var o=-1,u=t?t.length:0;for(n&&u&&(r=t[++o]);++o<u;)r=e(r,t[o],o,t);return r}function V(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function q(t){var r=-1,n=Array(t.size);return t.forEach(function(t,e){n[++r]=[e,t]}),n}function z(e,r){return function(t){return e(r(t))}}function J(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var L,G=Array.prototype,H=Function.prototype,K=Object.prototype,Q=s["__core-js_shared__"],X=(L=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",Y=H.toString,Z=K.hasOwnProperty,tt=K.toString,et=RegExp("^"+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=$?s.Buffer:void 0,nt=s.Symbol,ot=s.Uint8Array,ut=z(Object.getPrototypeOf,Object),it=Object.create,ct=K.propertyIsEnumerable,at=G.splice,ft=Object.getOwnPropertySymbols,st=rt?rt.isBuffer:void 0,lt=z(Object.keys,Object),dt=Tt(s,"DataView"),pt=Tt(s,"Map"),vt=Tt(s,"Promise"),_t=Tt(s,"Set"),ht=Tt(s,"WeakMap"),yt=Tt(Object,"create"),bt=Vt(dt),gt=Vt(pt),wt=Vt(vt),jt=Vt(_t),mt=Vt(ht),Ot=nt?nt.prototype:void 0,Pt=Ot?Ot.valueOf:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t){this.__data__=new St(t)}function Dt(t,e,r){var n=t[e];Z.call(t,e)&&qt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Ct(t,e){for(var r=t.length;r--;)if(qt(t[r][0],e))return r;return-1}function kt(r,n,o,u,t,e,i){var c;if(u&&(c=e?u(r,t,e,i):u(r)),void 0!==c)return c;if(!Ht(r))return r;var a=zt(r);if(a){if(c=function(t){var e=t.length,r=t.constructor(e);return e&&"string"==typeof t[0]&&Z.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(r),!n)return function(t,e){var r=-1,n=t.length;for(e=e||Array(n);++r<n;)e[r]=t[r];return e}(r,c)}else{var f=Wt(r),s=f==h||f==y;if(Lt(r))return function(t,e){if(n)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(r);if(f==w||f==p||s&&!e){if(V(r))return e?r:{};if(c=function(t){return"function"!=typeof t.constructor||Ut(t)?{}:function(t){return Ht(t)?it(t):{}}(ut(t))}(s?{}:r),!n)return function(t,e){return Ft(t,$t(t),e)}(r,function(t,e){return t&&Ft(r,Kt(r),t)}(c))}else{if(!T[f])return e?r:{};c=function(t,e,r,n){var o=t.constructor;switch(e){case E:return It(t);case v:case _:return new o(+t);case S:return function(t,e){var r=n?It(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t);case A:case x:case M:case D:case C:case k:case B:case I:case F:return function(t,e){var r=n?It(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t);case b:return function(t,e,r){return U(n?r(q(t),!0):q(t),W,new t.constructor)}(t,0,r);case g:case O:return new o(t);case j:return function(t){var e=new t.constructor(t.source,N.exec(t));return e.lastIndex=t.lastIndex,e}(t);case m:return function(t,e,r){return U(n?r(J(t),!0):J(t),R,new t.constructor)}(t,0,r);case P:return function(t){return Pt?Object(Pt.call(t)):{}}(t)}}(r,f,kt,n)}}var l=(i=i||new xt).get(r);if(l)return l;if(i.set(r,c),!a)var d=o?function(t,e,r){var n=Kt(t);return zt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(r,0,$t):Kt(r);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r););}(d||r,function(t,e){d&&(t=r[e=t]),Dt(c,e,kt(t,n,o,u,e,r,i))}),c}function It(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function Ft(t,e,r,n){r=r||{};for(var o=-1,u=e.length;++o<u;){var i=e[o],c=n?n(r[i],t[i],i,r,t):void 0;Dt(r,i,void 0===c?t[i]:c)}return r}function Nt(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function Tt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ht(t)||function(t){return!!X&&X in t}(t))&&(Gt(t)||V(t)?et:i).test(Vt(t))}(r)?r:void 0}Et.prototype.clear=function(){this.__data__=yt?yt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===n?void 0:r}return Z.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:Z.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},St.prototype.clear=function(){this.__data__=[]},St.prototype.delete=function(t){var e=this.__data__,r=Ct(e,t);return!(r<0||(r==e.length-1?e.pop():at.call(e,r,1),0))},St.prototype.get=function(t){var e=this.__data__,r=Ct(e,t);return r<0?void 0:e[r][1]},St.prototype.has=function(t){return-1<Ct(this.__data__,t)},St.prototype.set=function(t,e){var r=this.__data__,n=Ct(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},At.prototype.clear=function(){this.__data__={hash:new Et,map:new(pt||St),string:new Et}},At.prototype.delete=function(t){return Nt(this,t).delete(t)},At.prototype.get=function(t){return Nt(this,t).get(t)},At.prototype.has=function(t){return Nt(this,t).has(t)},At.prototype.set=function(t,e){return Nt(this,t).set(t,e),this},xt.prototype.clear=function(){this.__data__=new St},xt.prototype.delete=function(t){return this.__data__.delete(t)},xt.prototype.get=function(t){return this.__data__.get(t)},xt.prototype.has=function(t){return this.__data__.has(t)},xt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof St){var n=r.__data__;if(!pt||n.length<199)return n.push([t,e]),this;r=this.__data__=new At(n)}return r.set(t,e),this};var $t=ft?z(ft,Object):function(){return[]},Wt=function(t){return tt.call(t)};function Rt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||c.test(t))&&-1<t&&t%1==0&&t<e}function Ut(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||K)}function Vt(t){if(null!=t){try{return Y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function qt(t,e){return t===e||t!=t&&e!=e}(dt&&Wt(new dt(new ArrayBuffer(1)))!=S||pt&&Wt(new pt)!=b||vt&&Wt(vt.resolve())!=o||_t&&Wt(new _t)!=m||ht&&Wt(new ht)!=u)&&(Wt=function(t){var e=tt.call(t),r=e==w?t.constructor:void 0,n=r?Vt(r):void 0;if(n)switch(n){case bt:return S;case gt:return b;case wt:return o;case jt:return m;case mt:return u}return e});var zt=Array.isArray;function Jt(t){return null!=t&&function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=r}(t.length)&&!Gt(t)}var Lt=st||function(){return!1};function Gt(t){var e=Ht(t)?tt.call(t):"";return e==h||e==y}function Ht(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Kt(t){return Jt(t)?function(t,e){var r=zt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Jt(t)}(t)&&Z.call(t,"callee")&&(!ct.call(t,"callee")||tt.call(t)==p)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var u in t)!e&&!Z.call(t,u)||o&&("length"==u||Rt(u,n))||r.push(u);return r}(t):function(t){if(!Ut(t))return lt(t);var e=[];for(var r in Object(t))Z.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}e.exports=function(t){return kt(t,!0,!0)}}).call(this,e(6),e(7)(t))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findProduct=function(e,t){return t.find(function(t){return t.id.toString()===e.toString()})},e.isEqual=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},e.productWasAdded=function(t,e){return e.length<t.length},e.filterDifferentProducts=function(t,e){return t.filter(function(t){return!e.includes(t)})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.eventStore=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}}},function(t,e,r){"use strict";var c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,u=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(n=u.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}return i},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(r(5)),f=r(8),s=r(3),l=r(9);e.wishlistEvents=function(n,o,t){var u=l.eventStore({wishlistedProducts:t.map(Number)});window.gogEventBus,window.gogEventBus.subscribe("wishlist","updated",function(t){var e=t.wishlistedProducts.map(Number);if(!f.isEqual(u.get().wishlistedProducts,e)){if(f.productWasAdded(e,u.get().wishlistedProducts)){var r=c(f.filterDifferentProducts(e,u.get().wishlistedProducts),1)[0];i(r,"product_added_to_wishlist")}else{var n=c(f.filterDifferentProducts(u.get().wishlistedProducts,e),1)[0];i(n,"product_removed_from_wishlist")}u.get().wishlistedProducts=a.default(t).wishlistedProducts.map(Number)}});var i=function(t,e){var r=f.findProduct(t,o);r&&n.sendEvent({type:e,data:{product_id:r.id.toString()},meta:s.getDefaultMeta()})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3);e.productTileClickedEvent=function(r,t){void 0===t&&(t=window.gogEventBus),t.subscribe("product","opened",function(t){var e={product_id:t.productData.id};"string"==typeof t.sectionId&&(e.context=t.sectionId),r.sendEvent({type:"product_tile_clicked",data:e,meta:n.getDefaultMeta()})})}}],o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,n},module.exports=e()},197:function(module,exports,__webpack_require__){var insightsClientInstance=__webpack_require__(62).getInsightsClientInstance(window.gogData.insightsCollectorUrl,window.gogData.clientId),pageViewEvent=__webpack_require__(14).pageViewEvent;window.gogData.features.insightsWebsitePageView&&pageViewEvent(insightsClientInstance)},198:function(module,exports,__webpack_require__){var insightsClientInstance=__webpack_require__(62).getInsightsClientInstance(window.gogData.insightsCollectorUrl,window.gogData.clientId),wishlistEvents=__webpack_require__(14).wishlistEvents;if(window.gogData.features.insightsWebsiteWishlist){var wishlistedProductsLoaded=!1;window.gogEventBus.subscribe("wishlist","productsLoaded",function(data){var wishlistProducts;wishlistedProductsLoaded||("object"!=typeof data.wishlistedProducts||data.wishlistedProducts.length?data.wishlistedProducts.length&&(wishlistProducts=data.wishlistedProducts):wishlistProducts=Object.keys(data.wishlistedProducts),wishlistedProductsLoaded=!0,wishlistEvents(insightsClientInstance,window.gogData.products,wishlistProducts))})}},3:function(module,exports,__webpack_require__){var e;e=function(){return function(n){var r={};function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}return i.m=n,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);e.InsightsClient=r.InsightsClient;var i=n(9);e.VisitIdProvider=i.VisitIdProvider;var o=n(11);e.getInsightsClientInstance=o.getInsightsClientInstance},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(o,s,a,u){return new(a||(a=Promise))(function(t,e){function n(t){try{i(u.next(t))}catch(t){e(t)}}function r(t){try{i(u.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(n,r)}i((u=u.apply(o,s||[])).next())})},i=this&&this.__generator||function(n,r){var i,o,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=r.call(n,a)}catch(t){e=[6,t],o=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),s=n(9),a=n(10),u=function(){function t(t,e,n,r){void 0===n&&(n=a.authenticationProvider),void 0===r&&(r=new s.VisitIdProvider),this.collectorUrl=t,this.clientId=e,this.authenticationProvider=n,this.visit=r,this.instanceIdProvider=new s.InstanceIdProvider}return t.prototype.sendEvent=function(e,n){return r(this,void 0,void 0,function(){return i(this,function(t){return n&&!n.userAction||this.onUserAction(),[2,this.sendData(new o.EnrichedEvent(e))]})})},t.prototype.onUserAction=function(){this.visit.prolongExpiryDate()},t.prototype.sendData=function(n){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return e=new Headers({"X-Visit":this.visit.getId(),"X-Instance":this.instanceIdProvider.getId(),"Content-Type":"application/json"}),[4,this.authenticationProvider().then(function(t){e.append("Authorization","Bearer "+t)}).catch(function(){})];case 1:return t.sent(),[2,fetch(this.collectorUrl+"/clients/"+this.clientId+"/events",{method:"POST",credentials:"include",headers:e,body:JSON.stringify(n)})]}})})},t}();e.InsightsClient=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=function(){function n(t){t.hasOwnProperty("data")&&(this.data=t.data),t.hasOwnProperty("meta")&&(this.meta=t.meta),t.hasOwnProperty("userId")&&(this.user_id=t.userId),t.hasOwnProperty("visitId")&&(this.visit_id=t.visitId),t.hasOwnProperty("runtimeId")&&(this.runtime_id=t.runtimeId),t.hasOwnProperty("sessionId")&&(this.session_id=t.sessionId),this.type=t.type,this.date=(new Date).toISOString(),this.uuid=r.v4()}return n.prototype.serialize=function(){return JSON.stringify(this,function(t,e){return n.isValueBlacklisted(e)?void 0:e})},n.isValueBlacklisted=function(t){return null===t||""===t},n}();e.EnrichedEvent=i},function(t,e,n){var r=n(5),i=n(8),o=i;o.v1=r,o.v4=i,t.exports=o},function(t,e,n){var h,y,v=n(6),g=n(7),w=0,b=0;t.exports=function(t,e,n){var r=e&&n||0,i=e||[],o=(t=t||{}).node||h,s=void 0!==t.clockseq?t.clockseq:y;if(null==o||null==s){var a=v();null==o&&(o=h=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=y=16383&(a[6]<<8|a[7]))}var u=void 0!==t.msecs?t.msecs:(new Date).getTime(),c=void 0!==t.nsecs?t.nsecs:b+1,l=u-w+(c-b)/1e4;if(l<0&&void 0===t.clockseq&&(s=s+1&16383),(l<0||w<u)&&void 0===t.nsecs&&(c=0),1e4<=c)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=u,y=s;var f=(1e4*(268435455&(u+=122192928e5))+(b=c))%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;var d=u/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var p=0;p<6;++p)i[r+p]=o[p];return e||g(i)}},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,r=i;return[r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]]].join("")}},function(t,e,n){var s=n(6),a=n(7);t.exports=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var i=(t=t||{}).random||(t.rng||s)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var o=0;o<16;++o)e[r+o]=i[o];return e||a(i)}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),s=function(){function t(t,e){this.storagePrefix=t,this.ttl=e,this.expiryDate=0,this.id="",this.restoreData()}return t.prototype.getId=function(){return this.id&&!this.isIdExpired()||this.generateId(),this.id},t.prototype.prolongExpiryDate=function(){this.expiryDate=(new Date).getTime()+this.ttl,this.storeData()},t.prototype.generateId=function(){this.id=o.v4(),this.prolongExpiryDate()},t.prototype.isIdExpired=function(){return this.expiryDate<(new Date).getTime()},t.prototype.storeData=function(){try{window.localStorage.setItem(this.storagePrefix+"_id",this.id),window.localStorage.setItem(this.storagePrefix+"_expiryDate",this.expiryDate.toString())}catch(t){}},t.prototype.restoreData=function(){try{this.id=window.localStorage.getItem(this.storagePrefix+"_id")||"",this.expiryDate=parseInt(window.localStorage.getItem(this.storagePrefix+"_expiryDate")||"0")}catch(t){}},t}(),a=function(t){function e(){return t.call(this,"insightsVisit",18e5)||this}return i(e,t),e}(e.StoredIdProvider=s);e.VisitIdProvider=a;var u=function(t){function e(){return t.call(this,"insightsInstance",31536e7)||this}return i(e,t),e}(s);e.InstanceIdProvider=u},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(o,s,a,u){return new(a||(a=Promise))(function(t,e){function n(t){try{i(u.next(t))}catch(t){e(t)}}function r(t){try{i(u.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(n,r)}i((u=u.apply(o,s||[])).next())})},i=this&&this.__generator||function(n,r){var i,o,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=r.call(n,a)}catch(t){e=[6,t],o=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},o=this;Object.defineProperty(e,"__esModule",{value:!0}),e.authenticationProvider=function(){return r(o,void 0,void 0,function(){return i(this,function(t){return[2,new Promise(function(t,e){"string"==typeof window.gogAccessToken?t(window.gogAccessToken):e()})]})})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),s=new Map;e.getInsightsClientInstance=function(t,e,n,r){var i=s.get([t,e,n,r]);return i||(i=new o.InsightsClient(t,e,n,r),s.set([t,e,n,r],i)),i}}])},module.exports=e()},62:function(module,exports,__webpack_require__){var e;e=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){t.exports=r(1)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(2);e.InsightsClient=n.InsightsClient;const i=r(9);e.VisitIdProvider=i.VisitIdProvider;const s=r(11);e.getInsightsClientInstance=s.getInsightsClientInstance},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3),i=r(9),s=r(10);e.InsightsClient=class{constructor(t,e,r=s.authenticationProvider,n=new i.VisitIdProvider){this.collectorUrl=t,this.clientId=e,this.authenticationProvider=r,this.visit=n,this.instanceIdProvider=new i.InstanceIdProvider}async sendEvent(t,e){return e&&!e.userAction||this.onUserAction(),this.sendData(new n.EnrichedEvent(t))}onUserAction(){this.visit.prolongExpiryDate()}async sendData(t){const e=new Headers({"X-Visit":this.visit.getId(),"X-Instance":this.instanceIdProvider.getId(),"Content-Type":"application/json"});return await this.authenticationProvider().then(t=>{e.append("Authorization",`Bearer ${t}`)}).catch(()=>{}),fetch(`${this.collectorUrl}/clients/${this.clientId}/events`,{method:"POST",credentials:"include",headers:e,body:JSON.stringify(t)})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4);class i{constructor(t){t.hasOwnProperty("data")&&(this.data=t.data),t.hasOwnProperty("meta")&&(this.meta=t.meta),t.hasOwnProperty("userId")&&(this.user_id=t.userId),t.hasOwnProperty("visitId")&&(this.visit_id=t.visitId),t.hasOwnProperty("runtimeId")&&(this.runtime_id=t.runtimeId),t.hasOwnProperty("sessionId")&&(this.session_id=t.sessionId),this.type=t.type,this.date=(new Date).toISOString(),this.uuid=n.v4()}serialize(){return JSON.stringify(this,(t,e)=>i.isValueBlacklisted(e)?void 0:e)}static isValueBlacklisted(t){return null===t||""===t}}e.EnrichedEvent=i},function(t,e,r){var n=r(5),i=r(8),s=i;s.v1=n,s.v4=i,t.exports=s},function(t,e,r){var n,i,s=r(6),o=r(7),a=0,c=0;t.exports=function(t,e,r){var d=e&&r||0,u=e||[],l=(t=t||{}).node||n,f=void 0!==t.clockseq?t.clockseq:i;if(null==l||null==f){var p=s();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=i=16383&(p[6]<<8|p[7]))}var h=void 0!==t.msecs?t.msecs:(new Date).getTime(),v=void 0!==t.nsecs?t.nsecs:c+1,y=h-a+(v-c)/1e4;if(y<0&&void 0===t.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===t.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,c=v,i=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;u[d++]=g>>>24&255,u[d++]=g>>>16&255,u[d++]=g>>>8&255,u[d++]=255&g;var I=h/4294967296*1e4&268435455;u[d++]=I>>>8&255,u[d++]=255&I,u[d++]=I>>>24&15|16,u[d++]=I>>>16&255,u[d++]=f>>>8|128,u[d++]=255&f;for(var w=0;w<6;++w)u[d+w]=l[w];return e||o(u)}},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,r){var n=r(6),i=r(7);t.exports=function(t,e,r){var s=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;++a)e[s+a]=o[a];return e||i(o)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4);class i{constructor(t,e){this.storagePrefix=t,this.ttl=e,this.expiryDate=0,this.id="",this.restoreData()}getId(){return this.id&&!this.isIdExpired()||this.generateId(),this.id}prolongExpiryDate(){this.expiryDate=(new Date).getTime()+this.ttl,this.storeData()}generateId(){this.id=n.v4(),this.prolongExpiryDate()}isIdExpired(){return this.expiryDate<(new Date).getTime()}storeData(){try{window.localStorage.setItem(`${this.storagePrefix}_id`,this.id),window.localStorage.setItem(`${this.storagePrefix}_expiryDate`,this.expiryDate.toString())}catch(t){}}restoreData(){try{this.id=window.localStorage.getItem(`${this.storagePrefix}_id`)||"",this.expiryDate=parseInt(window.localStorage.getItem(`${this.storagePrefix}_expiryDate`)||"0")}catch(t){}}}e.StoredIdProvider=i,e.VisitIdProvider=class extends i{constructor(){super("insightsVisit",18e5)}},e.InstanceIdProvider=class extends i{constructor(){super("insightsInstance",31536e7)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.authenticationProvider=(async()=>new Promise((t,e)=>{"string"==typeof window.gogAccessToken?t(window.gogAccessToken):e()}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(2);let i=new Map;e.getInsightsClientInstance=((t,e,r,s)=>{let o=i.get([t,e,r,s]);return o||(o=new n.InsightsClient(t,e,r,s),i.set([t,e,r,s],o)),o})}])},module.exports=e()},8:function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var insights_client_es5_min_1=__webpack_require__(3),gog_module_page_loaded_1=__webpack_require__(9);exports.sendPageLoadedEvent=function(){var whitelistedDomains=window.gogData.pageLoadedWhitelistedDomains.map(function(domain){if(domain=domain.toString(),/^\/.*\//.test(domain)){var flags=domain.replace(/.*\/([gimy]*)$/,"$1"),pattern=domain.replace(new RegExp("^/(.*?)/"+flags+"$"),"$1");return new RegExp(pattern,flags)}return domain});gog_module_page_loaded_1.sendPageLoaded(whitelistedDomains,insights_client_es5_min_1.getInsightsClientInstance(window.gogData.insightsCollectorUrl,window.gogData.clientId))}},9:function(module,exports,__webpack_require__){var factory;factory=function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=0)}([function(module,exports,__webpack_require__){module.exports=__webpack_require__(1)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const eventSender_1=__webpack_require__(2);exports.sendPageLoaded=eventSender_1.sendPageLoaded;const domainsStats_1=__webpack_require__(6);exports.DomainStatistics=domainsStats_1.DomainStatistics},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tti_polyfill_1=__webpack_require__(3),fcp_1=__webpack_require__(5),domainsStats_1=__webpack_require__(6),metadata_1=__webpack_require__(7);exports.sendPageLoaded=function(domains,insightsClient){tti_polyfill_1.getFirstConsistentlyInteractive().then(tti=>{const pageLoadTimings={tti_millis:null!==tti&&void 0!==tti?tti:0};fcp_1.getFcp()>0&&(pageLoadTimings.fcp_millis=fcp_1.getFcp());const domainsStats=new domainsStats_1.DomainStatistics(domains,window.performance);insightsClient.sendEvent({type:"page_loaded",data:{page_loading_stats:pageLoadTimings,domain_usage_stats:domainsStats.serialize()},meta:metadata_1.getDefaultMeta()}).catch(error=>{})})}},function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_RESULT__;!function(){var h="undefined"!=typeof window&&window===this?this:void 0!==global&&null!=global?global:this,k="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function l(){l=function(){},h.Symbol||(h.Symbol=m)}var n=0;function m(a){return"jscomp_symbol_"+(a||"")+n++}function p(){l();var a=h.Symbol.iterator;a||(a=h.Symbol.iterator=h.Symbol("iterator")),"function"!=typeof Array.prototype[a]&&k(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return q(this)}}),p=function(){}}function q(a){var b=0;return function(a){return p(),(a={next:a})[h.Symbol.iterator]=function(){return this},a}(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function t(a){p();var b=a[Symbol.iterator];return b?b.call(a):q(a)}function u(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var v=0;var y="img script iframe link audio video source".split(" ");function z(a,b){for(var c=(a=t(a)).next();!c.done;c=a.next())if(c=c.value,b.includes(c.nodeName.toLowerCase())||z(c.children,b))return!0;return!1}function B(a,b){if(2<a.length)return performance.now();for(var c=[],d=(b=t(b)).next();!d.done;d=b.next())d=d.value,c.push({timestamp:d.start,type:"requestStart"}),c.push({timestamp:d.end,type:"requestEnd"});for(d=(b=t(a)).next();!d.done;d=b.next())c.push({timestamp:d.value,type:"requestStart"});for(c.sort(function(a,b){return a.timestamp-b.timestamp}),a=a.length,b=c.length-1;0<=b;b--)switch(d=c[b],d.type){case"requestStart":a--;break;case"requestEnd":if(2<++a)return d.timestamp;break;default:throw Error("Internal Error: This should never happen")}return 0}function C(a){a=a||{},this.w=!!a.useMutationObserver,this.u=a.minValue||null,a=window.__tti&&window.__tti.e;var b=window.__tti&&window.__tti.o;this.a=a?a.map(function(a){return{start:a.startTime,end:a.startTime+a.duration}}):[],b&&b.disconnect(),this.b=[],this.f=new Map,this.j=null,this.v=-1/0,this.i=!1,this.h=this.c=this.s=null,function(a,b){var c=XMLHttpRequest.prototype.send,d=v++;XMLHttpRequest.prototype.send=function(f){for(var e=[],g=0;g<arguments.length;++g)e[g-0]=arguments[g];var E=this;return a(d),this.addEventListener("readystatechange",function(){4===E.readyState&&b(d)}),c.apply(this,e)}}(this.m.bind(this),this.l.bind(this)),function(a,b){var c=fetch;fetch=function(d){for(var f=[],e=0;e<arguments.length;++e)f[e-0]=arguments[e];return new Promise(function(d,e){var g=v++;a(g),c.apply(null,[].concat(u(f))).then(function(a){b(g),d(a)},function(a){b(a),e(a)})})}}(this.m.bind(this),this.l.bind(this)),function(a){a.c=new PerformanceObserver(function(b){for(var c=(b=t(b.getEntries())).next();!c.done;c=b.next())if("resource"===(c=c.value).entryType&&(a.b.push({start:c.fetchStart,end:c.responseEnd}),G(a,B(a.g,a.b)+5e3)),"longtask"===c.entryType){var d=c.startTime+c.duration;a.a.push({start:c.startTime,end:d}),G(a,d+5e3)}}),a.c.observe({entryTypes:["longtask","resource"]})}(this),this.w&&(this.h=function(a){var b=new MutationObserver(function(c){for(var b=(c=t(c)).next();!b.done;b=c.next())"childList"==(b=b.value).type&&z(b.addedNodes,y)?a(b):"attributes"==b.type&&y.includes(b.target.tagName.toLowerCase())&&a(b)});return b.observe(document,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["href","src"]}),b}(this.B.bind(this)))}function F(a){a.i=!0;var b=0<a.a.length?a.a[a.a.length-1].end:0,c=B(a.g,a.b);G(a,Math.max(c+5e3,b))}function G(a,b){!a.i||a.v>b||(clearTimeout(a.j),a.j=setTimeout(function(){var b=performance.timing.navigationStart,d=B(a.g,a.b);b=(window.a&&window.a.A?1e3*window.a.A().C-b:0)||performance.timing.domContentLoadedEventEnd-b;if(a.u)var f=a.u;else performance.timing.domContentLoadedEventEnd?f=(f=performance.timing).domContentLoadedEventEnd-f.navigationStart:f=null;var e=performance.now();null===f&&G(a,Math.max(d+5e3,e+1e3));var g=a.a;5e3>e-d?d=null:d=5e3>e-(d=g.length?g[g.length-1].end:b)?null:Math.max(d,f),d&&(a.s(d),clearTimeout(a.j),a.i=!1,a.c&&a.c.disconnect(),a.h&&a.h.disconnect()),G(a,performance.now()+1e3)},b-performance.now()),a.v=b)}C.prototype.getFirstConsistentlyInteractive=function(){var a=this;return new Promise(function(b){a.s=b,"complete"==document.readyState?F(a):window.addEventListener("load",function(){F(a)})})},C.prototype.m=function(a){this.f.set(a,performance.now())},C.prototype.l=function(a){this.f.delete(a)},C.prototype.B=function(){G(this,performance.now()+5e3)},h.Object.defineProperties(C.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(u(this.f.values()))}}});var H={getFirstConsistentlyInteractive:function(a){return a=a||{},"PerformanceLongTaskTiming"in window?new C(a).getFirstConsistentlyInteractive():Promise.resolve(null)}};module.exports?module.exports=H:void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return H}.apply(exports,[]))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()}).call(this,__webpack_require__(4))},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFcp=function(){const paintEntries=window.performance.getEntriesByName("first-contentful-paint");let fcp=0;return paintEntries.length>0&&(fcp=paintEntries[0].startTime),fcp}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class DomainStatistics{constructor(whitelist,performance){this.whitelist=whitelist,this.totalStats=DomainStatistics.createStats(),this.domainRecords=new Map,performance.getEntriesByType("resource").forEach(entry=>{this.isEntryWhitelisted(entry)&&this.processEntry(entry)})}serialize(){const items=[];return this.domainRecords.forEach(item=>{item.stats=DomainStatistics.cleanupStats(item.stats),items.push(item)}),{items:items,totals:{stats:DomainStatistics.cleanupStats(this.totalStats)}}}processEntry(entry){if(void 0===entry.encodedBodySize)return;const domain=DomainStatistics.getDomainFromEntry(entry);this.createDomainEntry(domain);const domainData=this.domainRecords.get(domain);DomainStatistics.wasDownloadFailed(entry)?(domainData.stats.download.failed_files.count++,this.totalStats.download.failed_files.count++):DomainStatistics.wasDownloadTakenFromCache(entry)?(domainData.stats.cache.fetched_files.count++,domainData.stats.cache.fetched_files.size_bytes+=entry.encodedBodySize,this.totalStats.cache.fetched_files.count++,this.totalStats.cache.fetched_files.size_bytes+=entry.encodedBodySize):(domainData.stats.download.fetched_files.count++,domainData.stats.download.fetched_files.size_bytes+=entry.encodedBodySize,domainData.stats.download.time_millis+=entry.duration,this.totalStats.download.fetched_files.count++,this.totalStats.download.fetched_files.size_bytes+=entry.encodedBodySize,this.totalStats.download.time_millis+=entry.duration)}isEntryWhitelisted(entry){return this.whitelist.some(whitelistElement=>"string"==typeof whitelistElement?whitelistElement===DomainStatistics.getDomainFromEntry(entry):whitelistElement.test(DomainStatistics.getDomainFromEntry(entry)))}static getDomainFromEntry(entry){return new URL(entry.name).hostname}static wasDownloadFailed(entry){return 0===entry.encodedBodySize}static wasDownloadTakenFromCache(entry){return entry.transferSize<entry.encodedBodySize}createDomainEntry(domain){this.domainRecords.has(domain)||this.domainRecords.set(domain,{domain:domain,stats:DomainStatistics.createStats()})}static cleanupStats(stats){return 0===stats.download.fetched_files.count&&0===stats.download.failed_files.count&&0===stats.download.time_millis&&0===stats.cache.fetched_files.count?{}:stats}static createStats(){return{download:{fetched_files:{count:0,size_bytes:0},failed_files:{count:0},time_millis:0},cache:{fetched_files:{count:0,size_bytes:0}}}}}exports.DomainStatistics=DomainStatistics},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDefaultMeta=(()=>({url:{protocol:window.location.protocol,hostname:window.location.hostname,page_path:window.location.pathname,query_params:window.location.search,anchor_params:window.location.hash}}))}])},module.exports=factory()}},[195]);
======= EXCEPTION END ========

Sep 21, 2020 11:50:48 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:48 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:48 AM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener scriptException
SEVERE: Error during JavaScript execution
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.EvaluatorException]
com.gargoylesoftware.htmlunit.ScriptException: identifier is a reserved word: class (https://www.gog.com/accessTokenClient.js#1)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:929)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:760)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:726)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1123)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:361)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:256)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:560)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:514)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1192)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1132)
    at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:219)
    at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:312)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2114)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:937)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:443)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:394)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:760)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:208)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:283)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:163)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:638)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
    at com.webscrapper.Scrapper.main(Scrapper.java:22)
Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: identifier is a reserved word: class (https://www.gog.com/accessTokenClient.js#1)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$HtmlUnitErrorReporter.error(HtmlUnitContextFactory.java:438)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:258)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:326)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:313)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3207)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1276)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrayLiteral(Parser.java:3333)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3136)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2612)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1276)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:651)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:570)
    at net.sourceforge.htmlunit.corejs.javascript.Context.parse(Context.java:2598)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2547)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1551)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:224)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1540)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:751)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    ... 34 more
Enclosed exception: 
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: identifier is a reserved word: class (https://www.gog.com/accessTokenClient.js#1)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$HtmlUnitErrorReporter.error(HtmlUnitContextFactory.java:438)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:258)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:326)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:313)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3207)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1276)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrayLiteral(Parser.java:3333)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3136)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2612)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1276)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:651)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:570)
    at net.sourceforge.htmlunit.corejs.javascript.Context.parse(Context.java:2598)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2547)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1551)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:224)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1540)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:751)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:760)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:726)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1123)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:361)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:256)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:560)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:514)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1192)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1132)
    at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:219)
    at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:312)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2114)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:937)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:443)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:394)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:760)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:208)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:283)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:163)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:638)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
    at com.webscrapper.Scrapper.main(Scrapper.java:22)
== CALLING JAVASCRIPT ==
!function(e){var n={};function o(t){if(n[t])return n[t].exports;var c=n[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,o),c.l=!0,c.exports}o.m=e,o.c=n,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)o.d(t,c,function(n){return e[n]}.bind(null,c));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=0)}([function(e,n,o){e.exports=o(1)},function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});const t=o(2);if(!window.hasOwnProperty("gogAccessTokenClient")){let e="/user/accessToken.json";"string"==typeof window.gogAccessTokenSource&&(e=window.gogAccessTokenSource),/gog(-|\.)(dev)/.test(window.location.hostname)&&(e="https://single-sign-on.gog-develop.com/user/accessToken.json"),window.gogAccessTokenClient=new t.AccessTokenClient(e)}},function(e,n,o){"use strict";var t=this&&this.__awaiter||function(e,n,o,t){return new(o||(o=Promise))(function(c,s){function i(e){try{u(t.next(e))}catch(e){s(e)}}function r(e){try{u(t.throw(e))}catch(e){s(e)}}function u(e){e.done?c(e.value):new o(function(n){n(e.value)}).then(i,r)}u((t=t.apply(e,n||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0});class c{constructor(e){this.accessTokenUrl=e,this.retrieveNewAccessToken()}retrieveNewAccessToken(){this.callForAccessToken().then(this.accessTokenLoaded.bind(this)).catch(this.accessTokenFailedToLoad)}callForAccessToken(){return t(this,void 0,void 0,function*(){return new Promise((e,n)=>t(this,void 0,void 0,function*(){const o=yield window.fetch(this.accessTokenUrl,{method:"POST",credentials:"include"});if(o.ok){const n=yield o.json();e(n)}else n()}))})}accessTokenLoaded(e){this.refreshTimeoutId=setTimeout(this.retrieveNewAccessToken.bind(this),this.countAccessTokenTimeout(e.accessTokenExpiration)),window.gogAccessToken=e.accessToken,window.gogAccessTokenExpiration=e.accessTokenExpiration,window.gogAccessTokenClientId=e.accessTokenClientId,window.gogAccessTokenUserId=e.accessTokenUserId;const n={gogAccessToken:e.accessToken,gogAccessTokenExpiration:e.accessTokenExpiration,gogAccessTokenClientId:e.accessTokenClientId,gogAccessTokenUserId:e.accessTokenUserId};window.gogEventBus.publish("accessToken","ready",n)}accessTokenFailedToLoad(){window.gogEventBus.publish("accessToken","notAvailable")}countAccessTokenTimeout(e){return new Date(1e3*e).getTime()-Date.now()-c.ACCESS_TOKEN_REFRESH_OFFSET}}c.ACCESS_TOKEN_REFRESH_OFFSET=3e5,n.AccessTokenClient=c}]);
======= EXCEPTION END ========

Sep 21, 2020 11:50:48 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:48 AM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener scriptException
SEVERE: Error during JavaScript execution
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.EvaluatorException]
com.gargoylesoftware.htmlunit.ScriptException: missing formal parameter (https://www4-static.gog-statics.com/js/catalog-35f9157.js#1)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:929)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:760)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:726)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1123)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:361)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:256)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:560)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:514)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1192)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1132)
    at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:219)
    at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:312)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2114)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:937)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:443)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:394)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:760)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:208)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:283)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:163)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:638)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
    at com.webscrapper.Scrapper.main(Scrapper.java:22)
Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: missing formal parameter (https://www4-static.gog-statics.com/js/catalog-35f9157.js#1)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$HtmlUnitErrorReporter.error(HtmlUnitContextFactory.java:438)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:258)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:326)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:320)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunctionParams(Parser.java:1063)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunctionParams(Parser.java:1046)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunction(Parser.java:1000)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2392)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parenExpr(Parser.java:3237)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3148)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2379)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrayLiteral(Parser.java:3333)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3136)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.returnOrYield(Parser.java:1951)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1233)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2379)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.plainProperty(Parser.java:3730)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.objectLiteral(Parser.java:3630)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3140)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:651)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:570)
    at net.sourceforge.htmlunit.corejs.javascript.Context.parse(Context.java:2598)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2547)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1551)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:224)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1540)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:751)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    ... 34 more
Enclosed exception: 
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: missing formal parameter (https://www4-static.gog-statics.com/js/catalog-35f9157.js#1)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$HtmlUnitErrorReporter.error(HtmlUnitContextFactory.java:438)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:258)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:326)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.reportError(Parser.java:320)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunctionParams(Parser.java:1063)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunctionParams(Parser.java:1046)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrowFunction(Parser.java:1000)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2392)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parenExpr(Parser.java:3237)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3148)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2379)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.arrayLiteral(Parser.java:3333)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3136)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.returnOrYield(Parser.java:1951)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1233)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2379)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:755)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:937)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.function(Parser.java:869)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3132)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.plainProperty(Parser.java:3730)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.objectLiteral(Parser.java:3630)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3140)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2764)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2731)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2881)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2800)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2658)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2579)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2563)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2544)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2519)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2491)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2480)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2469)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2458)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2447)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2436)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2400)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2356)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2335)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:2084)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1266)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:1130)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:651)
    at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:570)
    at net.sourceforge.htmlunit.corejs.javascript.Context.parse(Context.java:2598)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2547)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1551)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:224)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1540)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:751)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:760)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:726)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1123)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:361)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:256)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:560)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:514)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1192)
    at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1132)
    at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:219)
    at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:312)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2114)
    at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:937)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:443)
    at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:394)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:760)
    at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:208)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:283)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:163)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:638)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
    at com.webscrapper.Scrapper.main(Scrapper.java:22)
[...]
======= EXCEPTION END ========

Sep 21, 2020 11:50:49 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:49 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:49 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:49 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'text/javascript'.
Sep 21, 2020 11:50:49 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'text/javascript'.
Sep 21, 2020 11:50:49 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'text/javascript'.
Sep 21, 2020 11:50:49 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'text/javascript'.
Sep 21, 2020 11:50:50 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:51 AM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Sep 21, 2020 11:50:51 AM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener scriptException
SEVERE: Error during JavaScript execution
======= EXCEPTION START ========
Exception class=[java.lang.RuntimeException]
com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setTimeout
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:929)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:809)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:785)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1023)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:361)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:977)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$200(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:924)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:809)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:785)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:776)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:943)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:305)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:395)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:256)
    at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1098)
    at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:983)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:1024)
    at com.gargoylesoftware.htmlunit.javascript.host.dom.Node.insertBeforeImpl(Node.java:353)
    at com.gargoylesoftware.htmlunit.javascript.host.dom.Node.insertBefore(Node.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:188)
    at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:391)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1697)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1013)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:340)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3640)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:851)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:858)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:830)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2607)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2600)
    at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:342)
    at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeAtTargetListeners(EventListenersContainer.java:379)
    at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:172)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.lambda$executeEventHandlersIfNeeded$0(HtmlPage.java:1269)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1269)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:259)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:646)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
    at com.webscrapper.Scrapper.main(Scrapper.java:22)
Caused by: java.lang.RuntimeException: Exception invoking setTimeout
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:214)
    at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:391)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1697)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1013)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:126)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:800)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    ... 64 more
Caused by: java.lang.NullPointerException
    at com.gargoylesoftware.htmlunit.javascript.host.WindowOrWorkerGlobalScopeMixin.setTimeoutIntervalImpl(WindowOrWorkerGlobalScopeMixin.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.WindowOrWorkerGlobalScopeMixin.setTimeout(WindowOrWorkerGlobalScopeMixin.java:110)
    at com.gargoylesoftware.htmlunit.javascript.host.Window.setTimeout(Window.java:590)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:188)
    ... 70 more
Enclosed exception: 
java.lang.RuntimeException: Exception invoking setTimeout
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:214)
    at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:391)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1697)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1013)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:126)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:800)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:809)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:785)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1023)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:361)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:977)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$200(JavaScriptEngine.java:107)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:924)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:809)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:785)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:776)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:943)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:305)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:395)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:234)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:256)
    at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1098)
    at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:983)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:1024)
    at com.gargoylesoftware.htmlunit.javascript.host.dom.Node.insertBeforeImpl(Node.java:353)
    at com.gargoylesoftware.htmlunit.javascript.host.dom.Node.insertBefore(Node.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:188)
    at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:391)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1697)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1013)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:340)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3640)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:851)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:914)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:858)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:830)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2607)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2600)
    at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:342)
    at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeAtTargetListeners(EventListenersContainer.java:379)
    at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:172)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.lambda$executeEventHandlersIfNeeded$0(HtmlPage.java:1269)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:619)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:537)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:354)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1269)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:259)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:646)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
    at com.webscrapper.Scrapper.main(Scrapper.java:22)
Caused by: java.lang.NullPointerException
    at com.gargoylesoftware.htmlunit.javascript.host.WindowOrWorkerGlobalScopeMixin.setTimeoutIntervalImpl(WindowOrWorkerGlobalScopeMixin.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.WindowOrWorkerGlobalScopeMixin.setTimeout(WindowOrWorkerGlobalScopeMixin.java:110)
    at com.gargoylesoftware.htmlunit.javascript.host.Window.setTimeout(Window.java:590)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:188)
    ... 70 more
======= EXCEPTION END ========
rbri commented 3 years ago

Looks like another incarnation of this Rhino problem - https://github.com/mozilla/rhino/issues/652.

dballardgh commented 3 years ago

Hi @rbri,

Here's an example of the same error, but using a default parameter. If you use HtmlUnit 2.50 to GET a page containing:

<script>      
  const engine = {
    callme(message = 'Default message') {
      console.log(message)
    }
  }
  engine.callme()
  engine.callme('Hello')
</script>

You'll get:

com.gargoylesoftware.htmlunit.ScriptException: missing ) after formal parameters (script in http://localhost/mine.html from (11, 13) to (19, 14)#13)

Unfortunately Bootstrap 5.0 does this, so HtmlUnit can't load a Bootstrap 5 page. If this is an unrelated issue, please let me know and I'll create a new issue.

rbri commented 3 years ago

There is some hope for this, the Rhino community is working on various improvements at the moment. And rest parameters are already in the works. Please be a bit more patient. Or have a look at twitter - will always inform about the progress there.

cdalexndr commented 3 years ago

Encountered same issue after updating to Bootstrap 5.

This is the rhino issue regarding default parameters: https://github.com/mozilla/rhino/issues/678

ShoodEver commented 1 year ago

Hi, I see this isssue still open. is there any update please?

apetrichkovich commented 1 year ago

Hi, same exception with page https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html

mcchris commented 1 year ago

Hi, Any plan to fix this issue ?

credmond commented 1 year ago

Hmm, yes...any plans to fix this?

gangadharkasturi commented 11 months ago

any update on this? I am facing the similar issue:

Caused by: org.htmlunit.corejs.javascript.EvaluatorException: missing formal parameter

rekaszeru commented 10 months ago

@rbri is there a plan to fix this? with an ETA possibly? Occurs on v3.5.0 too (latest stable at this point in time).

bjornharvold commented 9 months ago

Still an issue on HtmlUnit 3.9.0. 3 years has gone by since this issue was created.

yelg commented 6 months ago

4 years issue still there htmlunit-core-js-3.11.0.jar

rbri commented 6 months ago

Sorry folks, but I'm doing all the work on this in my spare time. And i made many improvements for rhino already. If you need some progress here, you can provide a pull request or you can sponsor my work to give me the chance to spend some time on this.

rbri commented 5 months ago

see #755