package oa;

import g9.d;
import kotlin.jvm.internal.t;
import uq.b0;
import uq.d0;
import uq.w;

/* loaded from: classes.dex */
public final class a implements w {

    /* renamed from: a, reason: collision with root package name */
    private final d f31088a;

    /* renamed from: b, reason: collision with root package name */
    private final ca.a f31089b;

    public a(d session, ca.a languageService) {
        t.g(session, "session");
        t.g(languageService, "languageService");
        this.f31088a = session;
        this.f31089b = languageService;
    }

    @Override // uq.w
    public d0 intercept(w.a chain) {
        t.g(chain, "chain");
        b0.a h10 = chain.g().h();
        String g10 = this.f31088a.g();
        if (g10 == null) {
            g10 = "";
        }
        b0.a m10 = h10.m("iv-user-l", g10);
        String c10 = this.f31089b.c();
        t.f(c10, "getLanguage(...)");
        return chain.b(m10.m("Accept-language", c10).b());
    }
}
