90 lines
2.6 KiB
Java
90 lines
2.6 KiB
Java
package o;
|
|
|
|
import java.util.Objects;
|
|
|
|
/* renamed from: o.fWM, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C13286fWM<T, R> extends AbstractC13175fSw<R> {
|
|
private InterfaceC13169fSq<T> b;
|
|
private fSL<R, ? super T, R> c;
|
|
private R d;
|
|
|
|
public C13286fWM(InterfaceC13169fSq<T> interfaceC13169fSq, R r, fSL<R, ? super T, R> fsl) {
|
|
this.b = interfaceC13169fSq;
|
|
this.d = r;
|
|
this.c = fsl;
|
|
}
|
|
|
|
@Override // o.AbstractC13175fSw
|
|
public final void e(InterfaceC13176fSx<? super R> interfaceC13176fSx) {
|
|
this.b.subscribe(new HBt(interfaceC13176fSx, this.c, this.d));
|
|
}
|
|
|
|
/* renamed from: o.fWM$HBt */
|
|
/* loaded from: classes6.dex */
|
|
static final class HBt<T, R> implements InterfaceC13174fSv<T>, fSJ {
|
|
private fSJ a;
|
|
private R b;
|
|
private InterfaceC13176fSx<? super R> c;
|
|
private fSL<R, ? super T, R> e;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public HBt(InterfaceC13176fSx<? super R> interfaceC13176fSx, fSL<R, ? super T, R> fsl, R r) {
|
|
this.c = interfaceC13176fSx;
|
|
this.b = r;
|
|
this.e = fsl;
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onSubscribe(fSJ fsj) {
|
|
if (EnumC13192fTf.d(this.a, fsj)) {
|
|
this.a = fsj;
|
|
this.c.onSubscribe(this);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onNext(T t) {
|
|
R r = this.b;
|
|
if (r != null) {
|
|
try {
|
|
this.b = (R) Objects.requireNonNull(this.e.e(r, t), "The reducer returned a null value");
|
|
} catch (Throwable th) {
|
|
C13147fSI.c(th);
|
|
this.a.dispose();
|
|
onError(th);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
if (this.b != null) {
|
|
this.b = null;
|
|
this.c.onError(th);
|
|
} else {
|
|
C13418fZu.c(th);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
R r = this.b;
|
|
if (r != null) {
|
|
this.b = null;
|
|
this.c.e(r);
|
|
}
|
|
}
|
|
|
|
@Override // o.fSJ
|
|
public final void dispose() {
|
|
this.a.dispose();
|
|
}
|
|
|
|
@Override // o.fSJ
|
|
public final boolean isDisposed() {
|
|
return this.a.isDisposed();
|
|
}
|
|
}
|
|
}
|