package g1;

import d1.t;
import kotlin.jvm.internal.k;
import y0.a2;
import y0.e4;
import y0.v;
import y0.z;

/* loaded from: classes.dex */
public final class e extends d1.d implements a2 {

    /* renamed from: v, reason: collision with root package name */
    public static final b f19024v = new b(null);

    /* renamed from: w, reason: collision with root package name */
    private static final e f19025w;

    /* loaded from: classes.dex */
    public static final class a extends d1.f implements a2.a {

        /* renamed from: v, reason: collision with root package name */
        private e f19026v;

        public a(e eVar) {
            super(eVar);
            this.f19026v = eVar;
        }

        public /* bridge */ e4 A(v vVar) {
            return (e4) super.get(vVar);
        }

        public /* bridge */ e4 B(v vVar, e4 e4Var) {
            return (e4) super.getOrDefault(vVar, e4Var);
        }

        public /* bridge */ e4 C(v vVar) {
            return (e4) super.remove(vVar);
        }

        @Override // d1.f, java.util.AbstractMap, java.util.Map
        public final /* bridge */ boolean containsKey(Object obj) {
            if (obj instanceof v) {
                return y((v) obj);
            }
            return false;
        }

        @Override // java.util.AbstractMap, java.util.Map
        public final /* bridge */ boolean containsValue(Object obj) {
            if (obj instanceof e4) {
                return z((e4) obj);
            }
            return false;
        }

        @Override // d1.f, java.util.AbstractMap, java.util.Map
        public final /* bridge */ /* synthetic */ Object get(Object obj) {
            if (obj instanceof v) {
                return A((v) obj);
            }
            return null;
        }

        @Override // java.util.Map
        public final /* bridge */ /* synthetic */ Object getOrDefault(Object obj, Object obj2) {
            return !(obj instanceof v) ? obj2 : B((v) obj, (e4) obj2);
        }

        @Override // d1.f, java.util.AbstractMap, java.util.Map
        public final /* bridge */ /* synthetic */ Object remove(Object obj) {
            if (obj instanceof v) {
                return C((v) obj);
            }
            return null;
        }

        @Override // d1.f
        /* renamed from: w, reason: merged with bridge method [inline-methods] and merged with bridge method [inline-methods] */
        public e e() {
            e eVar;
            if (g() == this.f19026v.w()) {
                eVar = this.f19026v;
            } else {
                r(new f1.e());
                eVar = new e(g(), size());
            }
            this.f19026v = eVar;
            return eVar;
        }

        public /* bridge */ boolean y(v vVar) {
            return super.containsKey(vVar);
        }

        public /* bridge */ boolean z(e4 e4Var) {
            return super.containsValue(e4Var);
        }
    }

    /* loaded from: classes.dex */
    public static final class b {
        private b() {
        }

        public /* synthetic */ b(k kVar) {
            this();
        }

        public final e a() {
            return e.f19025w;
        }
    }

    static {
        t a10 = t.f15752e.a();
        kotlin.jvm.internal.t.e(a10, "null cannot be cast to non-null type androidx.compose.runtime.external.kotlinx.collections.immutable.implementations.immutableMap.TrieNode<androidx.compose.runtime.CompositionLocal<kotlin.Any?>, androidx.compose.runtime.ValueHolder<kotlin.Any?>>");
        f19025w = new e(a10, 0);
    }

    public e(t tVar, int i10) {
        super(tVar, i10);
    }

    @Override // y0.a2
    /* renamed from: C, reason: merged with bridge method [inline-methods] */
    public a builder() {
        return new a(this);
    }

    public /* bridge */ boolean D(v vVar) {
        return super.containsKey(vVar);
    }

    public /* bridge */ boolean E(e4 e4Var) {
        return super.containsValue(e4Var);
    }

    public /* bridge */ e4 F(v vVar) {
        return (e4) super.get(vVar);
    }

    public /* bridge */ e4 G(v vVar, e4 e4Var) {
        return (e4) super.getOrDefault(vVar, e4Var);
    }

    @Override // y0.y
    public Object a(v vVar) {
        return z.b(this, vVar);
    }

    @Override // d1.d, java.util.Map
    public final /* bridge */ boolean containsKey(Object obj) {
        if (obj instanceof v) {
            return D((v) obj);
        }
        return false;
    }

    @Override // sm.d, java.util.Map
    public final /* bridge */ boolean containsValue(Object obj) {
        if (obj instanceof e4) {
            return E((e4) obj);
        }
        return false;
    }

    @Override // d1.d, java.util.Map
    public final /* bridge */ /* synthetic */ Object get(Object obj) {
        if (obj instanceof v) {
            return F((v) obj);
        }
        return null;
    }

    @Override // java.util.Map
    public final /* bridge */ /* synthetic */ Object getOrDefault(Object obj, Object obj2) {
        return !(obj instanceof v) ? obj2 : G((v) obj, (e4) obj2);
    }

    @Override // y0.a2
    public a2 o(v vVar, e4 e4Var) {
        t.b P = w().P(vVar.hashCode(), vVar, e4Var, 0);
        return P == null ? this : new e(P.a(), size() + P.b());
    }
}
