package h.b;

import g.h0.c.m;
import h.b.m.c;
import java.lang.annotation.Annotation;
import java.util.List;

/* JADX INFO: compiled from: PolymorphicSerializer.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class f<T> extends h.b.o.b<T> {
    public final g.k0.c<T> a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public List<? extends Annotation> f4351b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final g.g f4352c;

    /* JADX INFO: compiled from: PolymorphicSerializer.kt */
    @g.i
    public static final class a extends m implements g.h0.b.a<h.b.m.e> {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final /* synthetic */ f<T> f4353b;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public a(f<T> fVar) {
            super(0);
            this.f4353b = fVar;
        }

        @Override // g.h0.b.a
        public h.b.m.e invoke() {
            h.b.m.e eVarV = f.a.y.a.v("kotlinx.serialization.Polymorphic", c.a.a, new h.b.m.e[0], new e(this.f4353b));
            g.k0.c<T> cVar = this.f4353b.a;
            g.h0.c.l.f(eVarV, "<this>");
            g.h0.c.l.f(cVar, "context");
            return new h.b.m.b(eVarV, cVar);
        }
    }

    public f(g.k0.c<T> cVar) {
        g.h0.c.l.f(cVar, "baseClass");
        this.a = cVar;
        this.f4351b = g.c0.l.f4067b;
        this.f4352c = f.a.y.a.u0(g.h.PUBLICATION, new a(this));
    }

    @Override // h.b.b, h.b.j, h.b.a
    public h.b.m.e a() {
        return (h.b.m.e) this.f4352c.getValue();
    }

    @Override // h.b.o.b
    public g.k0.c<T> g() {
        return this.a;
    }

    public String toString() {
        StringBuilder sbB = d.b.a.a.a.B("kotlinx.serialization.PolymorphicSerializer(baseClass: ");
        sbB.append(this.a);
        sbB.append(')');
        return sbB.toString();
    }
}
