package androidx.compose.runtime.snapshots;

import F.C0168w;
import S4.p;
import S4.w;
import androidx.compose.runtime.DisposableEffectScope;
import kotlin.jvm.internal.o;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class c implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f11134a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ J4.c f11135b;

    public /* synthetic */ c(int i6, J4.c cVar) {
        this.f11134a = i6;
        this.f11135b = cVar;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f11134a) {
            case 0:
                return SnapshotKt.takeNewSnapshot$lambda$0(this.f11135b, (SnapshotIdSet) obj);
            case 1:
                String it = (String) obj;
                o.h(it, "it");
                this.f11135b.invoke(w.y0(it, "\n", ""));
                return C3137A.f25453a;
            case 2:
                String input = (String) obj;
                o.h(input, "input");
                StringBuilder sb = new StringBuilder();
                int length = input.length();
                for (int i6 = 0; i6 < length; i6++) {
                    char cCharAt = input.charAt(i6);
                    if (Character.isDigit(cCharAt)) {
                        sb.append(cCharAt);
                    }
                }
                this.f11135b.invoke(p.m1(4, sb.toString()));
                return C3137A.f25453a;
            case 3:
                DisposableEffectScope DisposableEffect = (DisposableEffectScope) obj;
                o.h(DisposableEffect, "$this$DisposableEffect");
                return new C0168w(this.f11135b, 11);
            case 4:
                String it2 = (String) obj;
                o.h(it2, "it");
                this.f11135b.invoke(w.y0(it2, "\n", ""));
                return C3137A.f25453a;
            default:
                Long l = (Long) obj;
                l.longValue();
                return this.f11135b.invoke(l);
        }
    }
}
