package Q;

import D.C0135f;
import G0.InterfaceC0279y;
import I0.AbstractC0301k;
import I0.InterfaceC0297i;
import K.E;
import T.p;
import V.Y;
import V.Z;
import V4.B0;
import androidx.compose.runtime.SnapshotStateKt;
import androidx.compose.runtime.State;
import o0.C2632c;

/* JADX INFO: loaded from: classes.dex */
public final class l extends AbstractC0301k implements InterfaceC0297i, R.e {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public p f5713c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public Y f5714d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public Z f5715e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public E f5716f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public B0 f5717j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final State f5718k = SnapshotStateKt.derivedStateOf(new C0135f(this, 11));
    public C2632c l = C2632c.f21786e;

    public l(p pVar, Y y6, Z z6, E e6) {
        this.f5713c = pVar;
        this.f5714d = y6;
        this.f5715e = z6;
        this.f5716f = e6;
    }

    @Override // R.e
    public final N.c M() {
        return (N.c) this.f5718k.getValue();
    }

    @Override // R.e
    public final C2632c m0(InterfaceC0279y interfaceC0279y) {
        if (!isAttached()) {
            return this.l;
        }
        C2632c c2632c = (C2632c) this.f5716f.invoke(interfaceC0279y);
        if (c2632c == null) {
            return this.l;
        }
        this.l = c2632c;
        return c2632c;
    }

    @Override // i0.AbstractC2254r
    public final void onAttach() {
        super.onAttach();
        p pVar = this.f5713c;
        pVar.f6346c = m.f5721c;
        pVar.f6345b = this;
    }

    @Override // i0.AbstractC2254r
    public final void onDetach() {
        p pVar = this.f5713c;
        pVar.f6346c = m.f5720b;
        pVar.f6345b = null;
        super.onDetach();
    }

    @Override // R.e
    public final long s0(InterfaceC0279y interfaceC0279y) {
        return m0(interfaceC0279y).d();
    }
}
