package com.bytedance.sdk.component.YFl;

import android.content.Context;
import android.text.TextUtils;
import android.webkit.WebView;
import com.bytedance.sdk.component.YFl.eT;
import java.util.LinkedHashSet;
import java.util.Set;
/* loaded from: classes2.dex */
public class nc {
    qsH AlY;
    boolean DSW;
    boolean EH;
    GA NjR;
    YFl Sg;
    WebView YFl;
    pDU nc;
    boolean pDU;
    boolean qsH;
    eT.YFl rkt;
    boolean vc;
    Context wN;
    String tN = "IESJSBridge";
    String eT = "host";
    final Set<String> YoT = new LinkedHashSet();
    final Set<String> GA = new LinkedHashSet();

    public nc Sg(boolean z) {
        this.DSW = z;
        return this;
    }

    public nc YFl() {
        this.EH = true;
        return this;
    }

    public nc YFl(YFl yFl) {
        this.Sg = yFl;
        return this;
    }

    public nc YFl(String str) {
        this.tN = str;
        return this;
    }

    public nc YFl(boolean z) {
        this.vc = z;
        return this;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public nc(WebView webView) {
        this.YFl = webView;
    }

    nc() {
    }

    public nc YFl(YoT yoT) {
        this.AlY = qsH.YFl(yoT);
        return this;
    }

    public lG Sg() {
        tN();
        return new lG(this);
    }

    private void tN() {
        if ((this.YFl == null && !this.pDU && this.Sg == null) || ((TextUtils.isEmpty(this.tN) && this.YFl != null) || this.AlY == null)) {
            throw new IllegalArgumentException("Requested arguments aren't set properly when building JsBridge.");
        }
    }
}
