Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.

This commit is contained in:
2025-12-04 13:59:54 +01:00
parent f2fd1c3bf5
commit e0133d2ca2
10432 changed files with 1019085 additions and 1 deletions

View File

@@ -0,0 +1,169 @@
package Z2;
import java.util.AbstractSet;
import java.util.Iterator;
/* loaded from: classes3.dex */
public final class A extends AbstractSet {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f2190a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C f2191b;
public /* synthetic */ A(C c4, int i) {
this.f2190a = i;
this.f2191b = c4;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final void clear() {
switch (this.f2190a) {
case 0:
this.f2191b.clear();
return;
default:
this.f2191b.clear();
return;
}
}
/* JADX WARN: Removed duplicated region for block: B:19:0x0037 A[ORIG_RETURN, RETURN] */
/* JADX WARN: Removed duplicated region for block: B:20:? A[RETURN, SYNTHETIC] */
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean contains(java.lang.Object r4) {
/*
r3 = this;
int r0 = r3.f2190a
switch(r0) {
case 0: goto Lc;
default: goto L5;
}
L5:
Z2.C r3 = r3.f2191b
boolean r3 = r3.containsKey(r4)
return r3
Lc:
boolean r0 = r4 instanceof java.util.Map.Entry
r1 = 0
if (r0 == 0) goto L38
Z2.C r3 = r3.f2191b
java.util.Map$Entry r4 = (java.util.Map.Entry) r4
java.lang.Object r0 = r4.getKey()
r2 = 0
if (r0 == 0) goto L21
Z2.B r3 = r3.a(r0, r1) // Catch: java.lang.ClassCastException -> L21
goto L22
L21:
r3 = r2
L22:
if (r3 == 0) goto L35
java.lang.Object r0 = r3.h
java.lang.Object r4 = r4.getValue()
if (r0 == r4) goto L34
if (r0 == 0) goto L35
boolean r4 = r0.equals(r4)
if (r4 == 0) goto L35
L34:
r2 = r3
L35:
if (r2 == 0) goto L38
r1 = 1
L38:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: Z2.A.contains(java.lang.Object):boolean");
}
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
public final Iterator iterator() {
switch (this.f2190a) {
case 0:
return new z(this.f2191b, 0);
default:
return new z(this.f2191b, 1);
}
}
/* JADX WARN: Removed duplicated region for block: B:30:0x0046 */
/* JADX WARN: Removed duplicated region for block: B:32:? A[RETURN, SYNTHETIC] */
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean remove(java.lang.Object r5) {
/*
r4 = this;
int r0 = r4.f2190a
switch(r0) {
case 0: goto L19;
default: goto L5;
}
L5:
Z2.C r4 = r4.f2191b
r0 = 0
r1 = 0
if (r5 == 0) goto Lf
Z2.B r1 = r4.a(r5, r0) // Catch: java.lang.ClassCastException -> Lf
Lf:
r5 = 1
if (r1 == 0) goto L15
r4.c(r1, r5)
L15:
if (r1 == 0) goto L18
r0 = r5
L18:
return r0
L19:
boolean r0 = r5 instanceof java.util.Map.Entry
r1 = 0
if (r0 != 0) goto L1f
goto L4a
L1f:
java.util.Map$Entry r5 = (java.util.Map.Entry) r5
Z2.C r4 = r4.f2191b
java.lang.Object r0 = r5.getKey()
r2 = 0
if (r0 == 0) goto L2f
Z2.B r0 = r4.a(r0, r1) // Catch: java.lang.ClassCastException -> L2f
goto L30
L2f:
r0 = r2
L30:
if (r0 == 0) goto L43
java.lang.Object r3 = r0.h
java.lang.Object r5 = r5.getValue()
if (r3 == r5) goto L42
if (r3 == 0) goto L43
boolean r5 = r3.equals(r5)
if (r5 == 0) goto L43
L42:
r2 = r0
L43:
if (r2 != 0) goto L46
goto L4a
L46:
r1 = 1
r4.c(r2, r1)
L4a:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: Z2.A.remove(java.lang.Object):boolean");
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final int size() {
switch (this.f2190a) {
case 0:
return this.f2191b.f2202d;
default:
return this.f2191b.f2202d;
}
}
}

View File

@@ -0,0 +1,112 @@
package Z2;
import java.io.IOException;
import r3.InterfaceC0577i;
import r3.InterfaceC0578j;
/* renamed from: Z2.l, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public abstract class AbstractC0104l {
public final AbstractC0104l failOnUnknown() {
return new C0102j(this, 2);
}
public abstract Object fromJson(r rVar);
/* JADX WARN: Type inference failed for: r0v0, types: [r3.j, java.lang.Object, r3.h] */
public final Object fromJson(String str) throws IOException {
?? obj = new Object();
obj.o0(str);
s sVar = new s((InterfaceC0578j) obj);
Object fromJson = fromJson(sVar);
if (isLenient() || sVar.f0() == q.f2278j) {
return fromJson;
}
throw new RuntimeException("JSON document was not fully consumed.");
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v0, types: [Z2.r, Z2.v] */
public final Object fromJsonValue(Object obj) {
?? rVar = new r();
int[] iArr = rVar.f2281b;
int i = rVar.f2280a;
iArr[i] = 7;
Object[] objArr = new Object[32];
rVar.f2301g = objArr;
rVar.f2280a = i + 1;
objArr[i] = obj;
try {
return fromJson((r) rVar);
} catch (IOException e4) {
throw new AssertionError(e4);
}
}
public AbstractC0104l indent(String str) {
if (str != null) {
return new C0094b(this, str);
}
throw new NullPointerException("indent == null");
}
public boolean isLenient() {
return false;
}
public final AbstractC0104l lenient() {
return new C0102j(this, 1);
}
public final AbstractC0104l nonNull() {
return this instanceof b3.a ? this : new b3.a(this);
}
public final AbstractC0104l nullSafe() {
return this instanceof b3.b ? this : new b3.b(this);
}
public final AbstractC0104l serializeNulls() {
return new C0102j(this, 0);
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v0, types: [r3.i, java.lang.Object, r3.h] */
public final String toJson(Object obj) {
?? obj2 = new Object();
try {
toJson((InterfaceC0577i) obj2, obj);
return obj2.e0();
} catch (IOException e4) {
throw new AssertionError(e4);
}
}
public abstract void toJson(x xVar, Object obj);
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v0, types: [Z2.w, Z2.x] */
public final Object toJsonValue(Object obj) {
?? xVar = new x();
xVar.f2302j = new Object[32];
xVar.c0(6);
try {
toJson((x) xVar, obj);
int i = xVar.f2304a;
if (i > 1 || (i == 1 && xVar.f2305b[i - 1] != 7)) {
throw new IllegalStateException("Incomplete document");
}
return xVar.f2302j[0];
} catch (IOException e4) {
throw new AssertionError(e4);
}
}
public final void toJson(InterfaceC0577i interfaceC0577i, Object obj) throws IOException {
toJson(new t(interfaceC0577i), obj);
}
public final Object fromJson(InterfaceC0578j interfaceC0578j) throws IOException {
return fromJson(new s(interfaceC0578j));
}
}

View File

@@ -0,0 +1,96 @@
package Z2;
import java.util.Map;
/* loaded from: classes3.dex */
public final class B implements Map.Entry {
/* renamed from: a, reason: collision with root package name */
public B f2192a;
/* renamed from: b, reason: collision with root package name */
public B f2193b;
/* renamed from: c, reason: collision with root package name */
public B f2194c;
/* renamed from: d, reason: collision with root package name */
public B f2195d;
/* renamed from: e, reason: collision with root package name */
public B f2196e;
/* renamed from: f, reason: collision with root package name */
public final Object f2197f;
/* renamed from: g, reason: collision with root package name */
public final int f2198g;
public Object h;
public int i;
public B() {
this.f2197f = null;
this.f2198g = -1;
this.f2196e = this;
this.f2195d = this;
}
@Override // java.util.Map.Entry
public final boolean equals(Object obj) {
if (obj instanceof Map.Entry) {
Map.Entry entry = (Map.Entry) obj;
Object obj2 = this.f2197f;
if (obj2 != null ? obj2.equals(entry.getKey()) : entry.getKey() == null) {
Object obj3 = this.h;
if (obj3 == null) {
if (entry.getValue() == null) {
return true;
}
} else if (obj3.equals(entry.getValue())) {
return true;
}
}
}
return false;
}
@Override // java.util.Map.Entry
public final Object getKey() {
return this.f2197f;
}
@Override // java.util.Map.Entry
public final Object getValue() {
return this.h;
}
@Override // java.util.Map.Entry
public final int hashCode() {
Object obj = this.f2197f;
int hashCode = obj == null ? 0 : obj.hashCode();
Object obj2 = this.h;
return hashCode ^ (obj2 != null ? obj2.hashCode() : 0);
}
@Override // java.util.Map.Entry
public final Object setValue(Object obj) {
Object obj2 = this.h;
this.h = obj;
return obj2;
}
public final String toString() {
return this.f2197f + "=" + this.h;
}
public B(B b4, Object obj, int i, B b5, B b6) {
this.f2192a = b4;
this.f2197f = obj;
this.f2198g = i;
this.i = 1;
this.f2195d = b5;
this.f2196e = b6;
b6.f2195d = this;
b5.f2196e = this;
}
}

View File

@@ -0,0 +1,520 @@
package Z2;
import java.io.Serializable;
import java.util.AbstractMap;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Set;
/* loaded from: classes3.dex */
public final class C extends AbstractMap implements Serializable {
public static final A.i i = new A.i(4);
/* renamed from: g, reason: collision with root package name */
public A f2205g;
public A h;
/* renamed from: d, reason: collision with root package name */
public int f2202d = 0;
/* renamed from: e, reason: collision with root package name */
public int f2203e = 0;
/* renamed from: a, reason: collision with root package name */
public final Comparator f2199a = i;
/* renamed from: c, reason: collision with root package name */
public final B f2201c = new B();
/* renamed from: b, reason: collision with root package name */
public B[] f2200b = new B[16];
/* renamed from: f, reason: collision with root package name */
public int f2204f = 12;
/* JADX WARN: Type inference failed for: r6v2, types: [java.lang.Object, Z2.y] */
/* JADX WARN: Type inference failed for: r7v1, types: [java.lang.Object, Z2.y] */
public final B a(Object obj, boolean z3) {
int i4;
B b4;
boolean z4;
B b5;
B b6;
B b7;
B b8;
B b9;
B[] bArr = this.f2200b;
int hashCode = obj.hashCode();
int i5 = hashCode ^ ((hashCode >>> 20) ^ (hashCode >>> 12));
int i6 = ((i5 >>> 7) ^ i5) ^ (i5 >>> 4);
boolean z5 = true;
int length = i6 & (bArr.length - 1);
B b10 = bArr[length];
A.i iVar = i;
B b11 = null;
Comparator comparator = this.f2199a;
if (b10 != null) {
Comparable comparable = comparator == iVar ? (Comparable) obj : null;
while (true) {
Object obj2 = b10.f2197f;
i4 = comparable != null ? comparable.compareTo(obj2) : comparator.compare(obj, obj2);
if (i4 == 0) {
return b10;
}
B b12 = i4 < 0 ? b10.f2193b : b10.f2194c;
if (b12 == null) {
break;
}
b10 = b12;
}
} else {
i4 = 0;
}
if (!z3) {
return null;
}
B b13 = this.f2201c;
if (b10 != null) {
B b14 = b10;
b4 = new B(b14, obj, i6, b13, b13.f2196e);
if (i4 < 0) {
b14.f2193b = b4;
} else {
b14.f2194c = b4;
}
b(b14, true);
} else {
if (comparator == iVar && !(obj instanceof Comparable)) {
throw new ClassCastException(obj.getClass().getName().concat(" is not Comparable"));
}
b4 = new B(b10, obj, i6, b13, b13.f2196e);
bArr[length] = b4;
}
int i7 = this.f2202d;
this.f2202d = i7 + 1;
if (i7 > this.f2204f) {
B[] bArr2 = this.f2200b;
int length2 = bArr2.length;
int i8 = length2 * 2;
B[] bArr3 = new B[i8];
?? obj3 = new Object();
?? obj4 = new Object();
int i9 = 0;
while (i9 < length2) {
B b15 = bArr2[i9];
if (b15 == null) {
z4 = z5;
b6 = b11;
} else {
B b16 = b11;
for (B b17 = b15; b17 != null; b17 = b17.f2193b) {
b17.f2192a = b16;
b16 = b17;
}
int i10 = 0;
int i11 = 0;
while (true) {
if (b16 != null) {
z4 = z5;
B b18 = b16.f2192a;
b16.f2192a = b11;
B b19 = b16.f2194c;
while (true) {
B b20 = b19;
b5 = b18;
b18 = b20;
if (b18 == null) {
break;
}
b18.f2192a = b5;
b19 = b18.f2193b;
}
} else {
B b21 = b16;
b16 = b11;
b5 = b21;
z4 = z5;
}
if (b16 == null) {
break;
}
if ((b16.f2198g & length2) == 0) {
i10++;
} else {
i11++;
}
b16 = b5;
z5 = z4;
b11 = null;
}
obj3.f2311a = ((Integer.highestOneBit(i10) * 2) - 1) - i10;
obj3.f2313c = 0;
obj3.f2312b = 0;
b6 = null;
obj3.f2314d = null;
obj4.f2311a = ((Integer.highestOneBit(i11) * 2) - 1) - i11;
obj4.f2313c = 0;
obj4.f2312b = 0;
obj4.f2314d = null;
B b22 = null;
while (b15 != null) {
b15.f2192a = b22;
B b23 = b15;
b15 = b15.f2193b;
b22 = b23;
}
while (true) {
if (b22 != null) {
B b24 = b22.f2192a;
b22.f2192a = null;
B b25 = b22.f2194c;
while (true) {
B b26 = b25;
b7 = b24;
b24 = b26;
if (b24 == null) {
break;
}
b24.f2192a = b7;
b25 = b24.f2193b;
}
} else {
b7 = b22;
b22 = null;
}
if (b22 == null) {
break;
}
if ((b22.f2198g & length2) == 0) {
obj3.a(b22);
} else {
obj4.a(b22);
}
b22 = b7;
}
if (i10 > 0) {
b8 = (B) obj3.f2314d;
if (b8.f2192a != null) {
throw new IllegalStateException();
}
} else {
b8 = null;
}
bArr3[i9] = b8;
int i12 = i9 + length2;
if (i11 > 0) {
b9 = (B) obj4.f2314d;
if (b9.f2192a != null) {
throw new IllegalStateException();
}
} else {
b9 = null;
}
bArr3[i12] = b9;
}
i9++;
b11 = b6;
z5 = z4;
}
this.f2200b = bArr3;
this.f2204f = (i8 / 4) + (i8 / 2);
}
this.f2203e++;
return b4;
}
public final void b(B b4, boolean z3) {
while (b4 != null) {
B b5 = b4.f2193b;
B b6 = b4.f2194c;
int i4 = b5 != null ? b5.i : 0;
int i5 = b6 != null ? b6.i : 0;
int i6 = i4 - i5;
if (i6 == -2) {
B b7 = b6.f2193b;
B b8 = b6.f2194c;
int i7 = (b7 != null ? b7.i : 0) - (b8 != null ? b8.i : 0);
if (i7 != -1 && (i7 != 0 || z3)) {
f(b6);
}
e(b4);
if (z3) {
return;
}
} else if (i6 == 2) {
B b9 = b5.f2193b;
B b10 = b5.f2194c;
int i8 = (b9 != null ? b9.i : 0) - (b10 != null ? b10.i : 0);
if (i8 != 1 && (i8 != 0 || z3)) {
e(b5);
}
f(b4);
if (z3) {
return;
}
} else if (i6 == 0) {
b4.i = i4 + 1;
if (z3) {
return;
}
} else {
b4.i = Math.max(i4, i5) + 1;
if (!z3) {
return;
}
}
b4 = b4.f2192a;
}
}
public final void c(B b4, boolean z3) {
B b5;
B b6;
int i4;
if (z3) {
B b7 = b4.f2196e;
b7.f2195d = b4.f2195d;
b4.f2195d.f2196e = b7;
b4.f2196e = null;
b4.f2195d = null;
}
B b8 = b4.f2193b;
B b9 = b4.f2194c;
B b10 = b4.f2192a;
int i5 = 0;
if (b8 == null || b9 == null) {
if (b8 != null) {
d(b4, b8);
b4.f2193b = null;
} else if (b9 != null) {
d(b4, b9);
b4.f2194c = null;
} else {
d(b4, null);
}
b(b10, false);
this.f2202d--;
this.f2203e++;
return;
}
if (b8.i > b9.i) {
B b11 = b8.f2194c;
while (true) {
B b12 = b11;
b6 = b8;
b8 = b12;
if (b8 == null) {
break;
} else {
b11 = b8.f2194c;
}
}
} else {
B b13 = b9.f2193b;
while (true) {
b5 = b9;
b9 = b13;
if (b9 == null) {
break;
} else {
b13 = b9.f2193b;
}
}
b6 = b5;
}
c(b6, false);
B b14 = b4.f2193b;
if (b14 != null) {
i4 = b14.i;
b6.f2193b = b14;
b14.f2192a = b6;
b4.f2193b = null;
} else {
i4 = 0;
}
B b15 = b4.f2194c;
if (b15 != null) {
i5 = b15.i;
b6.f2194c = b15;
b15.f2192a = b6;
b4.f2194c = null;
}
b6.i = Math.max(i4, i5) + 1;
d(b4, b6);
}
@Override // java.util.AbstractMap, java.util.Map
public final void clear() {
Arrays.fill(this.f2200b, (Object) null);
this.f2202d = 0;
this.f2203e++;
B b4 = this.f2201c;
B b5 = b4.f2195d;
while (b5 != b4) {
B b6 = b5.f2195d;
b5.f2196e = null;
b5.f2195d = null;
b5 = b6;
}
b4.f2196e = b4;
b4.f2195d = b4;
}
@Override // java.util.AbstractMap, java.util.Map
public final boolean containsKey(Object obj) {
B b4 = null;
if (obj != null) {
try {
b4 = a(obj, false);
} catch (ClassCastException unused) {
}
}
return b4 != null;
}
public final void d(B b4, B b5) {
B b6 = b4.f2192a;
b4.f2192a = null;
if (b5 != null) {
b5.f2192a = b6;
}
if (b6 == null) {
this.f2200b[b4.f2198g & (r2.length - 1)] = b5;
} else if (b6.f2193b == b4) {
b6.f2193b = b5;
} else {
b6.f2194c = b5;
}
}
public final void e(B b4) {
B b5 = b4.f2193b;
B b6 = b4.f2194c;
B b7 = b6.f2193b;
B b8 = b6.f2194c;
b4.f2194c = b7;
if (b7 != null) {
b7.f2192a = b4;
}
d(b4, b6);
b6.f2193b = b4;
b4.f2192a = b6;
int max = Math.max(b5 != null ? b5.i : 0, b7 != null ? b7.i : 0) + 1;
b4.i = max;
b6.i = Math.max(max, b8 != null ? b8.i : 0) + 1;
}
@Override // java.util.AbstractMap, java.util.Map
public final Set entrySet() {
A a2 = this.f2205g;
if (a2 != null) {
return a2;
}
A a4 = new A(this, 0);
this.f2205g = a4;
return a4;
}
public final void f(B b4) {
B b5 = b4.f2193b;
B b6 = b4.f2194c;
B b7 = b5.f2193b;
B b8 = b5.f2194c;
b4.f2193b = b8;
if (b8 != null) {
b8.f2192a = b4;
}
d(b4, b5);
b5.f2194c = b4;
b4.f2192a = b5;
int max = Math.max(b6 != null ? b6.i : 0, b8 != null ? b8.i : 0) + 1;
b4.i = max;
b5.i = Math.max(max, b7 != null ? b7.i : 0) + 1;
}
/* JADX WARN: Removed duplicated region for block: B:10:0x000f A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:7:0x000c */
@Override // java.util.AbstractMap, java.util.Map
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object get(java.lang.Object r3) {
/*
r2 = this;
r0 = 0
if (r3 == 0) goto L9
r1 = 0
Z2.B r2 = r2.a(r3, r1) // Catch: java.lang.ClassCastException -> L9
goto La
L9:
r2 = r0
La:
if (r2 == 0) goto Lf
java.lang.Object r2 = r2.h
return r2
Lf:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: Z2.C.get(java.lang.Object):java.lang.Object");
}
@Override // java.util.AbstractMap, java.util.Map
public final Set keySet() {
A a2 = this.h;
if (a2 != null) {
return a2;
}
A a4 = new A(this, 1);
this.h = a4;
return a4;
}
@Override // java.util.AbstractMap, java.util.Map
public final Object put(Object obj, Object obj2) {
if (obj == null) {
throw new NullPointerException("key == null");
}
B a2 = a(obj, true);
Object obj3 = a2.h;
a2.h = obj2;
return obj3;
}
/* JADX WARN: Removed duplicated region for block: B:12:0x0015 A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:7:0x000c */
/* JADX WARN: Removed duplicated region for block: B:9:0x0012 */
@Override // java.util.AbstractMap, java.util.Map
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object remove(java.lang.Object r3) {
/*
r2 = this;
r0 = 0
if (r3 == 0) goto L9
r1 = 0
Z2.B r3 = r2.a(r3, r1) // Catch: java.lang.ClassCastException -> L9
goto La
L9:
r3 = r0
La:
if (r3 == 0) goto L10
r1 = 1
r2.c(r3, r1)
L10:
if (r3 == 0) goto L15
java.lang.Object r2 = r3.h
return r2
L15:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: Z2.C.remove(java.lang.Object):java.lang.Object");
}
@Override // java.util.AbstractMap, java.util.Map
public final int size() {
return this.f2202d;
}
}

View File

@@ -0,0 +1,44 @@
package Z2;
import java.lang.reflect.Type;
/* renamed from: Z2.a, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0093a implements InterfaceC0103k {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f2242a;
public /* synthetic */ C0093a(int i) {
this.f2242a = i;
}
public static void b(Type type, Class cls) {
Class<?> d4 = L.d(type);
if (cls.isAssignableFrom(d4)) {
throw new IllegalArgumentException("No JsonAdapter for " + type + ", you should probably use " + cls.getSimpleName() + " instead of " + d4.getSimpleName() + " (Moshi only supports the collection interfaces by default) or else register a custom JsonAdapter.");
}
}
/* JADX WARN: Code restructure failed: missing block: B:85:0x0221, code lost:
if (r12 == null) goto L104;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r13v62 */
/* JADX WARN: Type inference failed for: r13v63 */
/* JADX WARN: Type inference failed for: r13v64, types: [java.lang.Object] */
/* JADX WARN: Type inference failed for: r17v5, types: [java.lang.reflect.Type] */
@Override // Z2.InterfaceC0103k
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final Z2.AbstractC0104l a(java.lang.reflect.Type r25, java.util.Set r26, Z2.G r27) {
/*
Method dump skipped, instructions count: 2184
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: Z2.C0093a.a(java.lang.reflect.Type, java.util.Set, Z2.G):Z2.l");
}
}

View File

@@ -0,0 +1,141 @@
package Z2;
import java.lang.reflect.Array;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Map;
/* renamed from: Z2.b, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0094b extends AbstractC0104l {
/* renamed from: d, reason: collision with root package name */
public static final C0093a f2243d = new C0093a(0);
/* renamed from: e, reason: collision with root package name */
public static final C0093a f2244e = new C0093a(3);
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f2245a = 1;
/* renamed from: b, reason: collision with root package name */
public final AbstractC0104l f2246b;
/* renamed from: c, reason: collision with root package name */
public final Object f2247c;
public C0094b(AbstractC0104l abstractC0104l, String str) {
this.f2246b = abstractC0104l;
this.f2247c = str;
}
@Override // Z2.AbstractC0104l
public final Object fromJson(r rVar) {
switch (this.f2245a) {
case 0:
ArrayList arrayList = new ArrayList();
rVar.d();
while (rVar.Y()) {
arrayList.add(this.f2246b.fromJson(rVar));
}
rVar.s();
Object newInstance = Array.newInstance((Class<?>) this.f2247c, arrayList.size());
for (int i = 0; i < arrayList.size(); i++) {
Array.set(newInstance, i, arrayList.get(i));
}
return newInstance;
case 1:
C c4 = new C();
rVar.e();
while (rVar.Y()) {
rVar.h0();
Object fromJson = this.f2246b.fromJson(rVar);
Object fromJson2 = ((AbstractC0104l) this.f2247c).fromJson(rVar);
Object put = c4.put(fromJson, fromJson2);
if (put != null) {
throw new RuntimeException("Map key '" + fromJson + "' has multiple values at path " + rVar.O() + ": " + put + " and " + fromJson2);
}
}
rVar.x();
return c4;
default:
return this.f2246b.fromJson(rVar);
}
}
@Override // Z2.AbstractC0104l
public boolean isLenient() {
switch (this.f2245a) {
case 2:
return this.f2246b.isLenient();
default:
return super.isLenient();
}
}
@Override // Z2.AbstractC0104l
public final void toJson(x xVar, Object obj) {
switch (this.f2245a) {
case 0:
xVar.d();
int length = Array.getLength(obj);
for (int i = 0; i < length; i++) {
this.f2246b.toJson(xVar, Array.get(obj, i));
}
xVar.x();
return;
case 1:
xVar.e();
for (Map.Entry entry : ((Map) obj).entrySet()) {
if (entry.getKey() == null) {
throw new RuntimeException("Map key is null at " + xVar.Y());
}
int b02 = xVar.b0();
if (b02 != 5 && b02 != 3) {
throw new IllegalStateException("Nesting problem.");
}
xVar.h = true;
this.f2246b.toJson(xVar, entry.getKey());
((AbstractC0104l) this.f2247c).toJson(xVar, entry.getValue());
}
xVar.O();
return;
default:
String str = xVar.f2308e;
if (str == null) {
str = "";
}
xVar.d0((String) this.f2247c);
try {
this.f2246b.toJson(xVar, obj);
return;
} finally {
xVar.d0(str);
}
}
}
public final String toString() {
switch (this.f2245a) {
case 0:
return this.f2246b + ".array()";
case 1:
return "JsonAdapter(" + this.f2246b + "=" + ((AbstractC0104l) this.f2247c) + ")";
default:
StringBuilder sb = new StringBuilder();
sb.append(this.f2246b);
sb.append(".indent(\"");
return C.w.r(sb, (String) this.f2247c, "\")");
}
}
public C0094b(G g4, Type type, Type type2) {
this.f2246b = g4.b(type);
this.f2247c = g4.b(type2);
}
public C0094b(Class cls, AbstractC0104l abstractC0104l) {
this.f2247c = cls;
this.f2246b = abstractC0104l;
}
}

View File

@@ -0,0 +1,44 @@
package Z2;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
import java.lang.reflect.Method;
/* renamed from: Z2.c, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0095c extends L {
/* renamed from: k, reason: collision with root package name */
public final /* synthetic */ int f2248k;
/* renamed from: l, reason: collision with root package name */
public final /* synthetic */ Class f2249l;
/* renamed from: m, reason: collision with root package name */
public final /* synthetic */ Executable f2250m;
public /* synthetic */ C0095c(Executable executable, Class cls, int i) {
this.f2248k = i;
this.f2250m = executable;
this.f2249l = cls;
}
@Override // Z2.L
public final Object e() {
switch (this.f2248k) {
case 0:
return ((Constructor) this.f2250m).newInstance(null);
default:
return ((Method) this.f2250m).invoke(null, this.f2249l, Object.class);
}
}
public final String toString() {
switch (this.f2248k) {
case 0:
return this.f2249l.getName();
default:
return this.f2249l.getName();
}
}
}

View File

@@ -0,0 +1,32 @@
package Z2;
import java.lang.reflect.Method;
/* renamed from: Z2.d, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0096d extends L {
/* renamed from: k, reason: collision with root package name */
public final /* synthetic */ Method f2251k;
/* renamed from: l, reason: collision with root package name */
public final /* synthetic */ Object f2252l;
/* renamed from: m, reason: collision with root package name */
public final /* synthetic */ Class f2253m;
public C0096d(Method method, Object obj, Class cls) {
this.f2251k = method;
this.f2252l = obj;
this.f2253m = cls;
}
@Override // Z2.L
public final Object e() {
return this.f2251k.invoke(this.f2252l, this.f2253m);
}
public final String toString() {
return this.f2253m.getName();
}
}

View File

@@ -0,0 +1,32 @@
package Z2;
import java.lang.reflect.Method;
/* renamed from: Z2.e, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0097e extends L {
/* renamed from: k, reason: collision with root package name */
public final /* synthetic */ Method f2254k;
/* renamed from: l, reason: collision with root package name */
public final /* synthetic */ Class f2255l;
/* renamed from: m, reason: collision with root package name */
public final /* synthetic */ int f2256m;
public C0097e(Method method, Class cls, int i) {
this.f2254k = method;
this.f2255l = cls;
this.f2256m = i;
}
@Override // Z2.L
public final Object e() {
return this.f2254k.invoke(null, this.f2255l, Integer.valueOf(this.f2256m));
}
public final String toString() {
return this.f2255l.getName();
}
}

View File

@@ -0,0 +1,23 @@
package Z2;
import java.lang.reflect.Field;
/* renamed from: Z2.f, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0098f {
/* renamed from: a, reason: collision with root package name */
public final String f2257a;
/* renamed from: b, reason: collision with root package name */
public final Field f2258b;
/* renamed from: c, reason: collision with root package name */
public final AbstractC0104l f2259c;
public C0098f(String str, Field field, AbstractC0104l abstractC0104l) {
this.f2257a = str;
this.f2258b = field;
this.f2259c = abstractC0104l;
}
}

View File

@@ -0,0 +1,76 @@
package Z2;
import java.lang.reflect.InvocationTargetException;
import java.util.TreeMap;
/* renamed from: Z2.g, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0099g extends AbstractC0104l {
/* renamed from: d, reason: collision with root package name */
public static final C0093a f2260d = new C0093a(1);
/* renamed from: a, reason: collision with root package name */
public final L f2261a;
/* renamed from: b, reason: collision with root package name */
public final C0098f[] f2262b;
/* renamed from: c, reason: collision with root package name */
public final p f2263c;
public C0099g(L l4, TreeMap treeMap) {
this.f2261a = l4;
this.f2262b = (C0098f[]) treeMap.values().toArray(new C0098f[treeMap.size()]);
this.f2263c = p.a((String[]) treeMap.keySet().toArray(new String[treeMap.size()]));
}
@Override // Z2.AbstractC0104l
public final Object fromJson(r rVar) {
try {
Object e4 = this.f2261a.e();
try {
rVar.e();
while (rVar.Y()) {
int j02 = rVar.j0(this.f2263c);
if (j02 == -1) {
rVar.l0();
rVar.m0();
} else {
C0098f c0098f = this.f2262b[j02];
c0098f.f2258b.set(e4, c0098f.f2259c.fromJson(rVar));
}
}
rVar.x();
return e4;
} catch (IllegalAccessException unused) {
throw new AssertionError();
}
} catch (IllegalAccessException unused2) {
throw new AssertionError();
} catch (InstantiationException e5) {
throw new RuntimeException(e5);
} catch (InvocationTargetException e6) {
b3.f.i(e6);
throw null;
}
}
@Override // Z2.AbstractC0104l
public final void toJson(x xVar, Object obj) {
try {
xVar.e();
for (C0098f c0098f : this.f2262b) {
xVar.Z(c0098f.f2257a);
c0098f.f2259c.toJson(xVar, c0098f.f2258b.get(obj));
}
xVar.O();
} catch (IllegalAccessException unused) {
throw new AssertionError();
}
}
public final String toString() {
return "JsonAdapter(" + this.f2261a + ")";
}
}

View File

@@ -0,0 +1,58 @@
package Z2;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashSet;
/* renamed from: Z2.h, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0100h extends AbstractC0104l {
/* renamed from: c, reason: collision with root package name */
public static final C0093a f2264c = new C0093a(2);
/* renamed from: a, reason: collision with root package name */
public final AbstractC0104l f2265a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ int f2266b;
public C0100h(AbstractC0104l abstractC0104l, int i) {
this.f2266b = i;
this.f2265a = abstractC0104l;
}
@Override // Z2.AbstractC0104l
public Object fromJson(r rVar) {
Collection arrayList;
switch (this.f2266b) {
case 0:
arrayList = new ArrayList();
break;
default:
arrayList = new LinkedHashSet();
break;
}
rVar.d();
while (rVar.Y()) {
arrayList.add(this.f2265a.fromJson(rVar));
}
rVar.s();
return arrayList;
}
@Override // Z2.AbstractC0104l
public void toJson(x xVar, Object obj) {
xVar.d();
Iterator it = ((Collection) obj).iterator();
while (it.hasNext()) {
this.f2265a.toJson(xVar, it.next());
}
xVar.x();
}
public final String toString() {
return this.f2265a + ".collection()";
}
}

View File

@@ -0,0 +1,91 @@
package Z2;
/* renamed from: Z2.j, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0102j extends AbstractC0104l {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f2267a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ AbstractC0104l f2268b;
public /* synthetic */ C0102j(AbstractC0104l abstractC0104l, int i) {
this.f2267a = i;
this.f2268b = abstractC0104l;
}
@Override // Z2.AbstractC0104l
public final Object fromJson(r rVar) {
switch (this.f2267a) {
case 0:
return this.f2268b.fromJson(rVar);
case 1:
boolean z3 = rVar.f2284e;
rVar.f2284e = true;
try {
return this.f2268b.fromJson(rVar);
} finally {
rVar.f2284e = z3;
}
default:
boolean z4 = rVar.f2285f;
rVar.f2285f = true;
try {
return this.f2268b.fromJson(rVar);
} finally {
rVar.f2285f = z4;
}
}
}
@Override // Z2.AbstractC0104l
public final boolean isLenient() {
switch (this.f2267a) {
case 0:
return this.f2268b.isLenient();
case 1:
return true;
default:
return this.f2268b.isLenient();
}
}
@Override // Z2.AbstractC0104l
public final void toJson(x xVar, Object obj) {
switch (this.f2267a) {
case 0:
boolean z3 = xVar.f2310g;
xVar.f2310g = true;
try {
this.f2268b.toJson(xVar, obj);
return;
} finally {
xVar.f2310g = z3;
}
case 1:
boolean z4 = xVar.f2309f;
xVar.f2309f = true;
try {
this.f2268b.toJson(xVar, obj);
return;
} finally {
xVar.f2309f = z4;
}
default:
this.f2268b.toJson(xVar, obj);
return;
}
}
public final String toString() {
switch (this.f2267a) {
case 0:
return this.f2268b + ".serializeNulls()";
case 1:
return this.f2268b + ".lenient()";
default:
return this.f2268b + ".failOnUnknown()";
}
}
}

View File

@@ -0,0 +1,38 @@
package Z2;
import java.util.ArrayList;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes3.dex */
public final class D {
/* renamed from: a, reason: collision with root package name */
public final ArrayList f2206a;
/* renamed from: b, reason: collision with root package name */
public int f2207b;
public D(ArrayList routes) {
Intrinsics.checkNotNullParameter(routes, "routes");
this.f2206a = routes;
}
public void a(InterfaceC0103k interfaceC0103k) {
if (interfaceC0103k == null) {
throw new IllegalArgumentException("factory == null");
}
ArrayList arrayList = this.f2206a;
int i = this.f2207b;
this.f2207b = i + 1;
arrayList.add(i, interfaceC0103k);
}
public boolean b() {
return this.f2207b < this.f2206a.size();
}
public D() {
this.f2206a = new ArrayList();
this.f2207b = 0;
}
}

View File

@@ -0,0 +1,48 @@
package Z2;
import java.lang.reflect.Type;
/* loaded from: classes3.dex */
public final class E extends AbstractC0104l {
/* renamed from: a, reason: collision with root package name */
public final Type f2208a;
/* renamed from: b, reason: collision with root package name */
public final String f2209b;
/* renamed from: c, reason: collision with root package name */
public final Object f2210c;
/* renamed from: d, reason: collision with root package name */
public AbstractC0104l f2211d;
public E(Type type, String str, Object obj) {
this.f2208a = type;
this.f2209b = str;
this.f2210c = obj;
}
@Override // Z2.AbstractC0104l
public final Object fromJson(r rVar) {
AbstractC0104l abstractC0104l = this.f2211d;
if (abstractC0104l != null) {
return abstractC0104l.fromJson(rVar);
}
throw new IllegalStateException("JsonAdapter isn't ready");
}
@Override // Z2.AbstractC0104l
public final void toJson(x xVar, Object obj) {
AbstractC0104l abstractC0104l = this.f2211d;
if (abstractC0104l == null) {
throw new IllegalStateException("JsonAdapter isn't ready");
}
abstractC0104l.toJson(xVar, obj);
}
public final String toString() {
AbstractC0104l abstractC0104l = this.f2211d;
return abstractC0104l != null ? abstractC0104l.toString() : super.toString();
}
}

View File

@@ -0,0 +1,72 @@
package Z2;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Iterator;
/* loaded from: classes3.dex */
public final class F {
/* renamed from: a, reason: collision with root package name */
public final ArrayList f2212a = new ArrayList();
/* renamed from: b, reason: collision with root package name */
public final ArrayDeque f2213b = new ArrayDeque();
/* renamed from: c, reason: collision with root package name */
public boolean f2214c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ G f2215d;
public F(G g4) {
this.f2215d = g4;
}
public final IllegalArgumentException a(IllegalArgumentException illegalArgumentException) {
if (!this.f2214c) {
this.f2214c = true;
ArrayDeque arrayDeque = this.f2213b;
if (arrayDeque.size() != 1 || ((E) arrayDeque.getFirst()).f2209b != null) {
StringBuilder sb = new StringBuilder(illegalArgumentException.getMessage());
Iterator descendingIterator = arrayDeque.descendingIterator();
while (descendingIterator.hasNext()) {
E e4 = (E) descendingIterator.next();
sb.append("\nfor ");
sb.append(e4.f2208a);
String str = e4.f2209b;
if (str != null) {
sb.append(' ');
sb.append(str);
}
}
return new IllegalArgumentException(sb.toString(), illegalArgumentException);
}
}
return illegalArgumentException;
}
public final void b(boolean z3) {
this.f2213b.removeLast();
if (this.f2213b.isEmpty()) {
this.f2215d.f2218b.remove();
if (z3) {
synchronized (this.f2215d.f2219c) {
try {
int size = this.f2212a.size();
for (int i = 0; i < size; i++) {
E e4 = (E) this.f2212a.get(i);
AbstractC0104l abstractC0104l = (AbstractC0104l) this.f2215d.f2219c.put(e4.f2210c, e4.f2211d);
if (abstractC0104l != null) {
e4.f2211d = abstractC0104l;
this.f2215d.f2219c.put(e4.f2210c, abstractC0104l);
}
}
} catch (Throwable th) {
throw th;
}
}
}
}
}
}

View File

@@ -0,0 +1,138 @@
package Z2;
import java.lang.reflect.Type;
import java.lang.reflect.WildcardType;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Set;
/* loaded from: classes3.dex */
public final class G {
/* renamed from: d, reason: collision with root package name */
public static final ArrayList f2216d;
/* renamed from: a, reason: collision with root package name */
public final List f2217a;
/* renamed from: b, reason: collision with root package name */
public final ThreadLocal f2218b = new ThreadLocal();
/* renamed from: c, reason: collision with root package name */
public final LinkedHashMap f2219c = new LinkedHashMap();
static {
ArrayList arrayList = new ArrayList(5);
f2216d = arrayList;
arrayList.add(L.f2234a);
arrayList.add(C0100h.f2264c);
arrayList.add(C0094b.f2244e);
arrayList.add(C0094b.f2243d);
arrayList.add(H.f2220a);
arrayList.add(C0099g.f2260d);
}
public G(D d4) {
ArrayList arrayList = d4.f2206a;
int size = arrayList.size();
ArrayList arrayList2 = f2216d;
ArrayList arrayList3 = new ArrayList(arrayList2.size() + size);
arrayList3.addAll(arrayList);
arrayList3.addAll(arrayList2);
this.f2217a = Collections.unmodifiableList(arrayList3);
}
public final AbstractC0104l a(Class cls) {
return c(cls, b3.f.f4193a, null);
}
public final AbstractC0104l b(Type type) {
return c(type, b3.f.f4193a, null);
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r13v4, types: [Z2.l] */
public final AbstractC0104l c(Type type, Set set, String str) {
E e4;
if (type == null) {
throw new NullPointerException("type == null");
}
if (set == null) {
throw new NullPointerException("annotations == null");
}
Type a2 = b3.f.a(type);
if (a2 instanceof WildcardType) {
WildcardType wildcardType = (WildcardType) a2;
if (wildcardType.getLowerBounds().length == 0) {
Type[] upperBounds = wildcardType.getUpperBounds();
if (upperBounds.length != 1) {
throw new IllegalArgumentException();
}
a2 = upperBounds[0];
}
}
Object asList = set.isEmpty() ? a2 : Arrays.asList(a2, set);
synchronized (this.f2219c) {
try {
AbstractC0104l abstractC0104l = (AbstractC0104l) this.f2219c.get(asList);
if (abstractC0104l != null) {
return abstractC0104l;
}
F f2 = (F) this.f2218b.get();
if (f2 == null) {
f2 = new F(this);
this.f2218b.set(f2);
}
ArrayList arrayList = f2.f2212a;
int size = arrayList.size();
int i = 0;
while (true) {
ArrayDeque arrayDeque = f2.f2213b;
if (i >= size) {
E e5 = new E(a2, str, asList);
arrayList.add(e5);
arrayDeque.add(e5);
e4 = null;
break;
}
e4 = (E) arrayList.get(i);
if (e4.f2210c.equals(asList)) {
arrayDeque.add(e4);
?? r13 = e4.f2211d;
if (r13 != 0) {
e4 = r13;
}
} else {
i++;
}
}
try {
if (e4 != null) {
return e4;
}
try {
int size2 = this.f2217a.size();
for (int i4 = 0; i4 < size2; i4++) {
AbstractC0104l a4 = ((InterfaceC0103k) this.f2217a.get(i4)).a(a2, set, this);
if (a4 != null) {
((E) f2.f2213b.getLast()).f2211d = a4;
f2.b(true);
return a4;
}
}
throw new IllegalArgumentException("No JsonAdapter for " + b3.f.j(a2, set));
} catch (IllegalArgumentException e6) {
throw f2.a(e6);
}
} finally {
f2.b(false);
}
} finally {
}
}
}
}

View File

@@ -0,0 +1,8 @@
package Z2;
/* loaded from: classes3.dex */
public abstract class H extends AbstractC0104l {
/* renamed from: a, reason: collision with root package name */
public static final C0093a f2220a = new C0093a(4);
}

View File

@@ -0,0 +1,105 @@
package Z2;
import kotlin.KotlinVersion;
import kotlin.text.Typography;
/* loaded from: classes3.dex */
public final class I extends AbstractC0104l {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f2221a;
public /* synthetic */ I(int i) {
this.f2221a = i;
}
@Override // Z2.AbstractC0104l
public final Object fromJson(r rVar) {
switch (this.f2221a) {
case 0:
return rVar.e0();
case 1:
return Boolean.valueOf(rVar.Z());
case 2:
return Byte.valueOf((byte) L.g(rVar, "a byte", -128, KotlinVersion.MAX_COMPONENT_VALUE));
case 3:
String e02 = rVar.e0();
if (e02.length() <= 1) {
return Character.valueOf(e02.charAt(0));
}
throw new RuntimeException("Expected a char but was " + ("\"" + e02 + Typography.quote) + " at path " + rVar.O());
case 4:
return Double.valueOf(rVar.a0());
case 5:
float a02 = (float) rVar.a0();
if (rVar.f2284e || !Float.isInfinite(a02)) {
return Float.valueOf(a02);
}
throw new RuntimeException("JSON forbids NaN and infinities: " + a02 + " at path " + rVar.O());
case 6:
return Integer.valueOf(rVar.b0());
case 7:
return Long.valueOf(rVar.c0());
default:
return Short.valueOf((short) L.g(rVar, "a short", -32768, 32767));
}
}
@Override // Z2.AbstractC0104l
public final void toJson(x xVar, Object obj) {
switch (this.f2221a) {
case 0:
xVar.h0((String) obj);
return;
case 1:
xVar.i0(((Boolean) obj).booleanValue());
return;
case 2:
xVar.f0(((Byte) obj).intValue() & KotlinVersion.MAX_COMPONENT_VALUE);
return;
case 3:
xVar.h0(((Character) obj).toString());
return;
case 4:
xVar.e0(((Double) obj).doubleValue());
return;
case 5:
Float f2 = (Float) obj;
f2.getClass();
xVar.g0(f2);
return;
case 6:
xVar.f0(((Integer) obj).intValue());
return;
case 7:
xVar.f0(((Long) obj).longValue());
return;
default:
xVar.f0(((Short) obj).intValue());
return;
}
}
public final String toString() {
switch (this.f2221a) {
case 0:
return "JsonAdapter(String)";
case 1:
return "JsonAdapter(Boolean)";
case 2:
return "JsonAdapter(Byte)";
case 3:
return "JsonAdapter(Character)";
case 4:
return "JsonAdapter(Double)";
case 5:
return "JsonAdapter(Float)";
case 6:
return "JsonAdapter(Integer)";
case 7:
return "JsonAdapter(Long)";
default:
return "JsonAdapter(Short)";
}
}
}

View File

@@ -0,0 +1,13 @@
package Z2;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
/* renamed from: Z2.i, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public @interface InterfaceC0101i {
boolean ignore() default false;
String name() default "\u0000";
}

View File

@@ -0,0 +1,10 @@
package Z2;
import java.lang.reflect.Type;
import java.util.Set;
/* renamed from: Z2.k, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public interface InterfaceC0103k {
AbstractC0104l a(Type type, Set set, G g4);
}

View File

@@ -0,0 +1,196 @@
package Z2;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KFunction;
import kotlin.reflect.KMutableProperty1;
import kotlin.reflect.KProperty1;
/* loaded from: classes3.dex */
public final class J extends AbstractC0104l {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f2222a = 0;
/* renamed from: b, reason: collision with root package name */
public final p f2223b;
/* renamed from: c, reason: collision with root package name */
public final Object f2224c;
/* renamed from: d, reason: collision with root package name */
public final Object f2225d;
/* renamed from: e, reason: collision with root package name */
public final Object f2226e;
public J(Class cls) {
int i = 0;
this.f2224c = cls;
try {
Enum[] enumArr = (Enum[]) cls.getEnumConstants();
this.f2226e = enumArr;
this.f2225d = new String[enumArr.length];
while (true) {
Enum[] enumArr2 = (Enum[]) this.f2226e;
if (i < enumArr2.length) {
String name = enumArr2[i].name();
String[] strArr = (String[]) this.f2225d;
Field field = cls.getField(name);
Set set = b3.f.f4193a;
InterfaceC0101i interfaceC0101i = (InterfaceC0101i) field.getAnnotation(InterfaceC0101i.class);
if (interfaceC0101i != null) {
String name2 = interfaceC0101i.name();
if (!"\u0000".equals(name2)) {
name = name2;
}
}
strArr[i] = name;
i++;
} else {
this.f2223b = p.a((String[]) this.f2225d);
return;
}
}
} catch (NoSuchFieldException e4) {
throw new AssertionError("Missing field in ".concat(cls.getName()), e4);
}
}
@Override // Z2.AbstractC0104l
public final Object fromJson(r reader) {
switch (this.f2222a) {
case 0:
int k02 = reader.k0(this.f2223b);
if (k02 != -1) {
return ((Enum[]) this.f2226e)[k02];
}
String O2 = reader.O();
throw new RuntimeException("Expected one of " + Arrays.asList((String[]) this.f2225d) + " but was " + reader.e0() + " at path " + O2);
default:
Intrinsics.checkNotNullParameter(reader, "reader");
KFunction kFunction = (KFunction) this.f2224c;
int size = kFunction.getParameters().size();
ArrayList arrayList = (ArrayList) this.f2225d;
int size2 = arrayList.size();
Object[] objArr = new Object[size2];
int i = 0;
while (true) {
Object obj = c3.c.f4296a;
if (i >= size2) {
reader.e();
while (reader.Y()) {
int j02 = reader.j0(this.f2223b);
if (j02 == -1) {
reader.l0();
reader.m0();
} else {
c3.a aVar = (c3.a) ((List) this.f2226e).get(j02);
int i4 = aVar.f4293e;
Object obj2 = objArr[i4];
KProperty1 kProperty1 = aVar.f4291c;
if (obj2 != obj) {
throw new RuntimeException("Multiple values for '" + kProperty1.getName() + "' at " + reader.O());
}
Object fromJson = aVar.f4290b.fromJson(reader);
objArr[i4] = fromJson;
if (fromJson == null && !kProperty1.getReturnType().isMarkedNullable()) {
Q2.j l4 = b3.f.l(kProperty1.getName(), aVar.f4289a, reader);
Intrinsics.checkNotNullExpressionValue(l4, "unexpectedNull(\n … reader\n )");
throw l4;
}
}
}
reader.x();
boolean z3 = arrayList.size() == size;
for (int i5 = 0; i5 < size; i5++) {
if (objArr[i5] == obj) {
if (kFunction.getParameters().get(i5).isOptional()) {
z3 = false;
} else {
if (!kFunction.getParameters().get(i5).getType().isMarkedNullable()) {
String name = kFunction.getParameters().get(i5).getName();
c3.a aVar2 = (c3.a) arrayList.get(i5);
Q2.j g4 = b3.f.g(name, aVar2 != null ? aVar2.f4289a : null, reader);
Intrinsics.checkNotNullExpressionValue(g4, "missingProperty(\n … reader\n )");
throw g4;
}
objArr[i5] = null;
}
}
}
Object call = z3 ? kFunction.call(Arrays.copyOf(objArr, size2)) : kFunction.callBy(new c3.b(kFunction.getParameters(), objArr));
int size3 = arrayList.size();
while (size < size3) {
Object obj3 = arrayList.get(size);
Intrinsics.checkNotNull(obj3);
c3.a aVar3 = (c3.a) obj3;
Object obj4 = objArr[size];
if (obj4 != obj) {
KProperty1 kProperty12 = aVar3.f4291c;
Intrinsics.checkNotNull(kProperty12, "null cannot be cast to non-null type kotlin.reflect.KMutableProperty1<K of com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.Binding, P of com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.Binding>");
((KMutableProperty1) kProperty12).set(call, obj4);
} else {
aVar3.getClass();
}
size++;
}
return call;
}
objArr[i] = obj;
i++;
}
break;
}
}
@Override // Z2.AbstractC0104l
public final void toJson(x writer, Object obj) {
switch (this.f2222a) {
case 0:
writer.h0(((String[]) this.f2225d)[((Enum) obj).ordinal()]);
return;
default:
Intrinsics.checkNotNullParameter(writer, "writer");
if (obj == null) {
throw new NullPointerException("value == null");
}
writer.e();
Iterator it = ((ArrayList) this.f2225d).iterator();
while (it.hasNext()) {
c3.a aVar = (c3.a) it.next();
if (aVar != null) {
writer.Z(aVar.f4289a);
aVar.f4290b.toJson(writer, aVar.f4291c.get(obj));
}
}
writer.O();
return;
}
}
public final String toString() {
switch (this.f2222a) {
case 0:
return "JsonAdapter(" + ((Class) this.f2224c).getName() + ")";
default:
return "KotlinJsonAdapter(" + ((KFunction) this.f2224c).getReturnType() + ')';
}
}
public J(KFunction constructor, ArrayList allBindings, List nonIgnoredBindings, p options) {
Intrinsics.checkNotNullParameter(constructor, "constructor");
Intrinsics.checkNotNullParameter(allBindings, "allBindings");
Intrinsics.checkNotNullParameter(nonIgnoredBindings, "nonIgnoredBindings");
Intrinsics.checkNotNullParameter(options, "options");
this.f2224c = constructor;
this.f2225d = allBindings;
this.f2226e = nonIgnoredBindings;
this.f2223b = options;
}
}

View File

@@ -0,0 +1,231 @@
package Z2;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/* loaded from: classes3.dex */
public final class K extends AbstractC0104l {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f2227a = 0;
/* renamed from: b, reason: collision with root package name */
public final Object f2228b;
/* renamed from: c, reason: collision with root package name */
public final Object f2229c;
/* renamed from: d, reason: collision with root package name */
public final Object f2230d;
/* renamed from: e, reason: collision with root package name */
public final Object f2231e;
/* renamed from: f, reason: collision with root package name */
public final Object f2232f;
/* renamed from: g, reason: collision with root package name */
public final Object f2233g;
public K(G g4) {
this.f2228b = g4;
this.f2229c = g4.a(List.class);
this.f2230d = g4.a(Map.class);
this.f2231e = g4.a(String.class);
this.f2232f = g4.a(Double.class);
this.f2233g = g4.a(Boolean.class);
}
public int a(r rVar) {
rVar.e();
while (true) {
boolean Y3 = rVar.Y();
String str = (String) this.f2228b;
if (!Y3) {
throw new RuntimeException("Missing label for ".concat(str));
}
if (rVar.j0((p) this.f2232f) != -1) {
int k02 = rVar.k0((p) this.f2233g);
if (k02 != -1) {
return k02;
}
throw new RuntimeException("Expected one of " + ((List) this.f2229c) + " for key '" + str + "' but found '" + rVar.e0() + "'. Register a subtype for this label.");
}
rVar.l0();
rVar.m0();
}
}
@Override // Z2.AbstractC0104l
public final Object fromJson(r rVar) {
switch (this.f2227a) {
case 0:
int ordinal = rVar.f0().ordinal();
if (ordinal == 0) {
return ((AbstractC0104l) this.f2229c).fromJson(rVar);
}
if (ordinal == 2) {
return ((AbstractC0104l) this.f2230d).fromJson(rVar);
}
if (ordinal == 5) {
return ((AbstractC0104l) this.f2231e).fromJson(rVar);
}
if (ordinal == 6) {
return ((AbstractC0104l) this.f2232f).fromJson(rVar);
}
if (ordinal == 7) {
return ((AbstractC0104l) this.f2233g).fromJson(rVar);
}
if (ordinal == 8) {
rVar.d0();
return null;
}
throw new IllegalStateException("Expected a value but was " + rVar.f0() + " at path " + rVar.O());
default:
r g02 = rVar.g0();
g02.f2285f = false;
try {
int a2 = a(g02);
g02.close();
if (a2 != -1) {
return ((AbstractC0104l) ((ArrayList) this.f2231e).get(a2)).fromJson(rVar);
}
throw null;
} catch (Throwable th) {
g02.close();
throw th;
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:33:0x00ac, code lost:
if (r1.isAssignableFrom(r0) != false) goto L29;
*/
@Override // Z2.AbstractC0104l
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void toJson(Z2.x r4, java.lang.Object r5) {
/*
r3 = this;
int r0 = r3.f2227a
switch(r0) {
case 0: goto L8d;
default: goto L5;
}
L5:
java.lang.Class r0 = r5.getClass()
java.lang.Object r1 = r3.f2230d
java.util.List r1 = (java.util.List) r1
int r0 = r1.indexOf(r0)
r2 = -1
if (r0 == r2) goto L60
java.lang.Object r1 = r3.f2231e
java.util.ArrayList r1 = (java.util.ArrayList) r1
java.lang.Object r1 = r1.get(r0)
Z2.l r1 = (Z2.AbstractC0104l) r1
r4.e()
if (r1 == 0) goto L38
java.lang.Object r2 = r3.f2228b
java.lang.String r2 = (java.lang.String) r2
Z2.x r2 = r4.Z(r2)
java.lang.Object r3 = r3.f2229c
java.util.List r3 = (java.util.List) r3
java.lang.Object r3 = r3.get(r0)
java.lang.String r3 = (java.lang.String) r3
r2.h0(r3)
L38:
int r3 = r4.b0()
r0 = 5
if (r3 == r0) goto L51
r0 = 3
if (r3 == r0) goto L51
r0 = 2
if (r3 == r0) goto L51
r0 = 1
if (r3 != r0) goto L49
goto L51
L49:
java.lang.IllegalStateException r3 = new java.lang.IllegalStateException
java.lang.String r4 = "Nesting problem."
r3.<init>(r4)
throw r3
L51:
int r3 = r4.i
int r0 = r4.f2304a
r4.i = r0
r1.toJson(r4, r5)
r4.i = r3
r4.O()
return
L60:
java.lang.IllegalArgumentException r3 = new java.lang.IllegalArgumentException
java.lang.StringBuilder r4 = new java.lang.StringBuilder
java.lang.String r0 = "Expected one of "
r4.<init>(r0)
r4.append(r1)
java.lang.String r0 = " but found "
r4.append(r0)
r4.append(r5)
java.lang.String r0 = ", a "
r4.append(r0)
java.lang.Class r5 = r5.getClass()
r4.append(r5)
java.lang.String r5 = ". Register this subtype."
r4.append(r5)
java.lang.String r4 = r4.toString()
r3.<init>(r4)
throw r3
L8d:
java.lang.Class r0 = r5.getClass()
java.lang.Class<java.lang.Object> r1 = java.lang.Object.class
if (r0 != r1) goto L9c
r4.e()
r4.O()
goto Lbd
L9c:
java.lang.Class<java.util.Map> r1 = java.util.Map.class
boolean r2 = r1.isAssignableFrom(r0)
if (r2 == 0) goto La6
La4:
r0 = r1
goto Laf
La6:
java.lang.Class<java.util.Collection> r1 = java.util.Collection.class
boolean r2 = r1.isAssignableFrom(r0)
if (r2 == 0) goto Laf
goto La4
Laf:
java.util.Set r1 = b3.f.f4193a
java.lang.Object r3 = r3.f2228b
Z2.G r3 = (Z2.G) r3
r2 = 0
Z2.l r3 = r3.c(r0, r1, r2)
r3.toJson(r4, r5)
Lbd:
return
*/
throw new UnsupportedOperationException("Method not decompiled: Z2.K.toJson(Z2.x, java.lang.Object):void");
}
public final String toString() {
switch (this.f2227a) {
case 0:
return "JsonAdapter(Object)";
default:
return C.w.r(new StringBuilder("PolymorphicJsonAdapter("), (String) this.f2228b, ")");
}
}
public K(String str, List list, List list2, ArrayList arrayList) {
this.f2228b = str;
this.f2229c = list;
this.f2230d = list2;
this.f2231e = arrayList;
this.f2232f = p.a(str);
this.f2233g = p.a((String[]) list.toArray(new String[0]));
}
}

View File

@@ -0,0 +1,147 @@
package Z2;
import java.lang.reflect.Array;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.lang.reflect.WildcardType;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedHashSet;
/* loaded from: classes3.dex */
public abstract class L {
/* renamed from: a, reason: collision with root package name */
public static final C0093a f2234a = new C0093a(5);
/* renamed from: b, reason: collision with root package name */
public static final I f2235b = new I(1);
/* renamed from: c, reason: collision with root package name */
public static final I f2236c = new I(2);
/* renamed from: d, reason: collision with root package name */
public static final I f2237d = new I(3);
/* renamed from: e, reason: collision with root package name */
public static final I f2238e = new I(4);
/* renamed from: f, reason: collision with root package name */
public static final I f2239f = new I(5);
/* renamed from: g, reason: collision with root package name */
public static final I f2240g = new I(6);
public static final I h = new I(7);
public static final I i = new I(8);
/* renamed from: j, reason: collision with root package name */
public static final I f2241j = new I(0);
public static Type a(Type type) {
if (!Collection.class.isAssignableFrom(Collection.class)) {
throw new IllegalArgumentException();
}
Type h4 = b3.f.h(type, Collection.class, b3.f.d(type, Collection.class, Collection.class), new LinkedHashSet());
if (h4 instanceof WildcardType) {
h4 = ((WildcardType) h4).getUpperBounds()[0];
}
return h4 instanceof ParameterizedType ? ((ParameterizedType) h4).getActualTypeArguments()[0] : Object.class;
}
public static boolean b(Type type, Type type2) {
if (type == type2) {
return true;
}
if (type instanceof Class) {
return type2 instanceof GenericArrayType ? b(((Class) type).getComponentType(), ((GenericArrayType) type2).getGenericComponentType()) : type.equals(type2);
}
if (type instanceof ParameterizedType) {
if (!(type2 instanceof ParameterizedType)) {
return false;
}
ParameterizedType parameterizedType = (ParameterizedType) type;
ParameterizedType parameterizedType2 = (ParameterizedType) type2;
return b(parameterizedType.getOwnerType(), parameterizedType2.getOwnerType()) && parameterizedType.getRawType().equals(parameterizedType2.getRawType()) && Arrays.equals(parameterizedType instanceof b3.d ? ((b3.d) parameterizedType).f4190c : parameterizedType.getActualTypeArguments(), parameterizedType2 instanceof b3.d ? ((b3.d) parameterizedType2).f4190c : parameterizedType2.getActualTypeArguments());
}
if (type instanceof GenericArrayType) {
if (type2 instanceof Class) {
return b(((Class) type2).getComponentType(), ((GenericArrayType) type).getGenericComponentType());
}
if (type2 instanceof GenericArrayType) {
return b(((GenericArrayType) type).getGenericComponentType(), ((GenericArrayType) type2).getGenericComponentType());
}
return false;
}
if (type instanceof WildcardType) {
if (!(type2 instanceof WildcardType)) {
return false;
}
WildcardType wildcardType = (WildcardType) type;
WildcardType wildcardType2 = (WildcardType) type2;
return Arrays.equals(wildcardType.getUpperBounds(), wildcardType2.getUpperBounds()) && Arrays.equals(wildcardType.getLowerBounds(), wildcardType2.getLowerBounds());
}
if (!(type instanceof TypeVariable) || !(type2 instanceof TypeVariable)) {
return false;
}
TypeVariable typeVariable = (TypeVariable) type;
TypeVariable typeVariable2 = (TypeVariable) type2;
return typeVariable.getGenericDeclaration() == typeVariable2.getGenericDeclaration() && typeVariable.getName().equals(typeVariable2.getName());
}
public static String c(int i4, int[] iArr, String[] strArr, int[] iArr2) {
StringBuilder sb = new StringBuilder("$");
for (int i5 = 0; i5 < i4; i5++) {
int i6 = iArr[i5];
if (i6 == 1 || i6 == 2) {
sb.append('[');
sb.append(iArr2[i5]);
sb.append(']');
} else if (i6 == 3 || i6 == 4 || i6 == 5) {
sb.append('.');
String str = strArr[i5];
if (str != null) {
sb.append(str);
}
}
}
return sb.toString();
}
public static Class d(Type type) {
if (type instanceof Class) {
return (Class) type;
}
if (type instanceof ParameterizedType) {
return (Class) ((ParameterizedType) type).getRawType();
}
if (type instanceof GenericArrayType) {
return Array.newInstance((Class<?>) d(((GenericArrayType) type).getGenericComponentType()), 0).getClass();
}
if (type instanceof TypeVariable) {
return Object.class;
}
if (type instanceof WildcardType) {
return d(((WildcardType) type).getUpperBounds()[0]);
}
throw new IllegalArgumentException("Expected a Class, ParameterizedType, or GenericArrayType, but <" + type + "> is of type " + (type == null ? "null" : type.getClass().getName()));
}
public static b3.d f(Class cls, Type... typeArr) {
if (typeArr.length != 0) {
return new b3.d(null, cls, typeArr);
}
throw new IllegalArgumentException("Missing type arguments for " + cls);
}
public static int g(r rVar, String str, int i4, int i5) {
int b02 = rVar.b0();
if (b02 >= i4 && b02 <= i5) {
return b02;
}
throw new RuntimeException("Expected " + str + " but was " + b02 + " at path " + rVar.O());
}
public abstract Object e();
}

View File

@@ -0,0 +1,11 @@
package Z2;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/* JADX WARN: Method from annotation default annotation not found: generator */
@Retention(RetentionPolicy.RUNTIME)
/* loaded from: classes3.dex */
public @interface m {
boolean generateAdapter();
}

View File

@@ -0,0 +1,7 @@
package Z2;
import java.io.IOException;
/* loaded from: classes3.dex */
public final class n extends IOException {
}

View File

@@ -0,0 +1,9 @@
package Z2;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
/* loaded from: classes3.dex */
public @interface o {
}

View File

@@ -0,0 +1,38 @@
package Z2;
import a.AbstractC0106b;
import java.io.IOException;
import r3.C0579k;
/* loaded from: classes3.dex */
public final class p {
/* renamed from: a, reason: collision with root package name */
public final String[] f2269a;
/* renamed from: b, reason: collision with root package name */
public final r3.x f2270b;
public p(String[] strArr, r3.x xVar) {
this.f2269a = strArr;
this.f2270b = xVar;
}
/* JADX WARN: Type inference failed for: r1v0, types: [r3.i, java.lang.Object, r3.h] */
public static p a(String... strArr) {
try {
C0579k[] c0579kArr = new C0579k[strArr.length];
?? obj = new Object();
for (int i = 0; i < strArr.length; i++) {
t.n0(obj, strArr[i]);
obj.readByte();
c0579kArr[i] = obj.h(obj.f8284b);
}
String[] strArr2 = (String[]) strArr.clone();
int i4 = r3.x.f8316c;
return new p(strArr2, AbstractC0106b.w(c0579kArr));
} catch (IOException e4) {
throw new AssertionError(e4);
}
}
}

View File

@@ -0,0 +1,78 @@
package Z2;
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
/* loaded from: classes3.dex */
public final class q {
/* renamed from: a, reason: collision with root package name */
public static final q f2271a;
/* renamed from: b, reason: collision with root package name */
public static final q f2272b;
/* renamed from: c, reason: collision with root package name */
public static final q f2273c;
/* renamed from: d, reason: collision with root package name */
public static final q f2274d;
/* renamed from: e, reason: collision with root package name */
public static final q f2275e;
/* renamed from: f, reason: collision with root package name */
public static final q f2276f;
/* renamed from: g, reason: collision with root package name */
public static final q f2277g;
public static final q h;
public static final q i;
/* renamed from: j, reason: collision with root package name */
public static final q f2278j;
/* renamed from: k, reason: collision with root package name */
public static final /* synthetic */ q[] f2279k;
/* JADX WARN: Type inference failed for: r0v0, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r1v1, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r2v2, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r3v2, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r4v2, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r5v2, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r6v2, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r7v2, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r8v2, types: [Z2.q, java.lang.Enum] */
/* JADX WARN: Type inference failed for: r9v2, types: [Z2.q, java.lang.Enum] */
static {
?? r02 = new Enum("BEGIN_ARRAY", 0);
f2271a = r02;
?? r12 = new Enum("END_ARRAY", 1);
f2272b = r12;
?? r22 = new Enum("BEGIN_OBJECT", 2);
f2273c = r22;
?? r32 = new Enum("END_OBJECT", 3);
f2274d = r32;
?? r4 = new Enum("NAME", 4);
f2275e = r4;
?? r5 = new Enum("STRING", 5);
f2276f = r5;
?? r6 = new Enum("NUMBER", 6);
f2277g = r6;
?? r7 = new Enum("BOOLEAN", 7);
h = r7;
?? r8 = new Enum("NULL", 8);
i = r8;
?? r9 = new Enum("END_DOCUMENT", 9);
f2278j = r9;
f2279k = new q[]{r02, r12, r22, r32, r4, r5, r6, r7, r8, r9};
}
public static q valueOf(String str) {
return (q) Enum.valueOf(q.class, str);
}
public static q[] values() {
return (q[]) f2279k.clone();
}
}

View File

@@ -0,0 +1,114 @@
package Z2;
import java.io.Closeable;
import java.io.IOException;
import java.util.Arrays;
/* loaded from: classes3.dex */
public abstract class r implements Closeable {
/* renamed from: a, reason: collision with root package name */
public int f2280a;
/* renamed from: b, reason: collision with root package name */
public int[] f2281b;
/* renamed from: c, reason: collision with root package name */
public String[] f2282c;
/* renamed from: d, reason: collision with root package name */
public int[] f2283d;
/* renamed from: e, reason: collision with root package name */
public boolean f2284e;
/* renamed from: f, reason: collision with root package name */
public boolean f2285f;
public r() {
this.f2281b = new int[32];
this.f2282c = new String[32];
this.f2283d = new int[32];
}
public final String O() {
return L.c(this.f2280a, this.f2281b, this.f2282c, this.f2283d);
}
public abstract boolean Y();
public abstract boolean Z();
public abstract double a0();
public abstract int b0();
public abstract long c0();
public abstract void d();
public abstract void d0();
public abstract void e();
public abstract String e0();
public abstract q f0();
public abstract r g0();
public abstract void h0();
public final void i0(int i) {
int i4 = this.f2280a;
int[] iArr = this.f2281b;
if (i4 == iArr.length) {
if (i4 == 256) {
throw new RuntimeException("Nesting too deep at " + O());
}
this.f2281b = Arrays.copyOf(iArr, iArr.length * 2);
String[] strArr = this.f2282c;
this.f2282c = (String[]) Arrays.copyOf(strArr, strArr.length * 2);
int[] iArr2 = this.f2283d;
this.f2283d = Arrays.copyOf(iArr2, iArr2.length * 2);
}
int[] iArr3 = this.f2281b;
int i5 = this.f2280a;
this.f2280a = i5 + 1;
iArr3[i5] = i;
}
public abstract int j0(p pVar);
public abstract int k0(p pVar);
public abstract void l0();
public abstract void m0();
public final void n0(String str) {
throw new IOException(str + " at path " + O());
}
/* JADX WARN: Type inference failed for: r1v0, types: [Q2.j, java.lang.RuntimeException] */
/* JADX WARN: Type inference failed for: r4v4, types: [Q2.j, java.lang.RuntimeException] */
public final Q2.j o0(Object obj, Object obj2) {
if (obj == null) {
return new RuntimeException("Expected " + obj2 + " but was null at path " + O());
}
return new RuntimeException("Expected " + obj2 + " but was " + obj + ", a " + obj.getClass().getName() + ", at path " + O());
}
public abstract void s();
public abstract void x();
public r(r rVar) {
this.f2280a = rVar.f2280a;
this.f2281b = (int[]) rVar.f2281b.clone();
this.f2282c = (String[]) rVar.f2282c.clone();
this.f2283d = (int[]) rVar.f2283d.clone();
this.f2284e = rVar.f2284e;
this.f2285f = rVar.f2285f;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,378 @@
package Z2;
import java.io.IOException;
import r3.InterfaceC0577i;
/* loaded from: classes3.dex */
public final class t extends x {
/* renamed from: m, reason: collision with root package name */
public static final String[] f2294m = new String[128];
/* renamed from: j, reason: collision with root package name */
public final InterfaceC0577i f2295j;
/* renamed from: k, reason: collision with root package name */
public String f2296k = ":";
/* renamed from: l, reason: collision with root package name */
public String f2297l;
static {
for (int i = 0; i <= 31; i++) {
f2294m[i] = String.format("\\u%04x", Integer.valueOf(i));
}
String[] strArr = f2294m;
strArr[34] = "\\\"";
strArr[92] = "\\\\";
strArr[9] = "\\t";
strArr[8] = "\\b";
strArr[10] = "\\n";
strArr[13] = "\\r";
strArr[12] = "\\f";
}
public t(InterfaceC0577i interfaceC0577i) {
if (interfaceC0577i == null) {
throw new NullPointerException("sink == null");
}
this.f2295j = interfaceC0577i;
c0(6);
}
/* JADX WARN: Removed duplicated region for block: B:8:0x002b */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static void n0(r3.InterfaceC0577i r7, java.lang.String r8) {
/*
java.lang.String[] r0 = Z2.t.f2294m
r1 = 34
r7.y(r1)
int r2 = r8.length()
r3 = 0
r4 = r3
Ld:
if (r3 >= r2) goto L36
char r5 = r8.charAt(r3)
r6 = 128(0x80, float:1.8E-43)
if (r5 >= r6) goto L1c
r5 = r0[r5]
if (r5 != 0) goto L29
goto L33
L1c:
r6 = 8232(0x2028, float:1.1535E-41)
if (r5 != r6) goto L23
java.lang.String r5 = "\\u2028"
goto L29
L23:
r6 = 8233(0x2029, float:1.1537E-41)
if (r5 != r6) goto L33
java.lang.String r5 = "\\u2029"
L29:
if (r4 >= r3) goto L2e
r7.f(r8, r4, r3)
L2e:
r7.Q(r5)
int r4 = r3 + 1
L33:
int r3 = r3 + 1
goto Ld
L36:
if (r4 >= r2) goto L3b
r7.f(r8, r4, r2)
L3b:
r7.y(r1)
return
*/
throw new UnsupportedOperationException("Method not decompiled: Z2.t.n0(r3.i, java.lang.String):void");
}
@Override // Z2.x
public final x O() {
this.h = false;
k0(3, 5, '}');
return this;
}
@Override // Z2.x
public final x Z(String str) {
if (str == null) {
throw new NullPointerException("name == null");
}
if (this.f2304a == 0) {
throw new IllegalStateException("JsonWriter is closed.");
}
int b02 = b0();
if ((b02 != 3 && b02 != 5) || this.f2297l != null || this.h) {
throw new IllegalStateException("Nesting problem.");
}
this.f2297l = str;
this.f2306c[this.f2304a - 1] = str;
return this;
}
@Override // Z2.x
public final x a0() {
if (this.h) {
throw new IllegalStateException("null cannot be used as a map key in JSON at path " + Y());
}
if (this.f2297l != null) {
if (!this.f2310g) {
this.f2297l = null;
return this;
}
o0();
}
j0();
this.f2295j.Q("null");
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
this.f2295j.close();
int i = this.f2304a;
if (i > 1 || (i == 1 && this.f2305b[i - 1] != 7)) {
throw new IOException("Incomplete document");
}
this.f2304a = 0;
}
@Override // Z2.x
public final x d() {
if (this.h) {
throw new IllegalStateException("Array cannot be used as a map key in JSON at path " + Y());
}
o0();
m0(1, 2, '[');
return this;
}
@Override // Z2.x
public final void d0(String str) {
super.d0(str);
this.f2296k = !str.isEmpty() ? ": " : ":";
}
@Override // Z2.x
public final x e() {
if (this.h) {
throw new IllegalStateException("Object cannot be used as a map key in JSON at path " + Y());
}
o0();
m0(3, 5, '{');
return this;
}
@Override // Z2.x
public final x e0(double d4) {
if (!this.f2309f && (Double.isNaN(d4) || Double.isInfinite(d4))) {
throw new IllegalArgumentException("Numeric values must be finite, but was " + d4);
}
if (this.h) {
this.h = false;
Z(Double.toString(d4));
return this;
}
o0();
j0();
this.f2295j.Q(Double.toString(d4));
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // Z2.x
public final x f0(long j4) {
if (this.h) {
this.h = false;
Z(Long.toString(j4));
return this;
}
o0();
j0();
this.f2295j.Q(Long.toString(j4));
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // java.io.Flushable
public final void flush() {
if (this.f2304a == 0) {
throw new IllegalStateException("JsonWriter is closed.");
}
this.f2295j.flush();
}
@Override // Z2.x
public final x g0(Float f2) {
if (f2 == null) {
a0();
return this;
}
String obj = f2.toString();
if (!this.f2309f && (obj.equals("-Infinity") || obj.equals("Infinity") || obj.equals("NaN"))) {
throw new IllegalArgumentException("Numeric values must be finite, but was " + f2);
}
if (this.h) {
this.h = false;
Z(obj);
return this;
}
o0();
j0();
this.f2295j.Q(obj);
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // Z2.x
public final x h0(String str) {
if (str == null) {
a0();
return this;
}
if (this.h) {
this.h = false;
Z(str);
return this;
}
o0();
j0();
n0(this.f2295j, str);
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // Z2.x
public final x i0(boolean z3) {
if (this.h) {
throw new IllegalStateException("Boolean cannot be used as a map key in JSON at path " + Y());
}
o0();
j0();
this.f2295j.Q(z3 ? "true" : "false");
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
public final void j0() {
int b02 = b0();
int i = 2;
if (b02 != 1) {
InterfaceC0577i interfaceC0577i = this.f2295j;
if (b02 != 2) {
if (b02 == 4) {
interfaceC0577i.Q(this.f2296k);
i = 5;
} else {
if (b02 == 9) {
throw new IllegalStateException("Sink from valueSink() was not closed");
}
if (b02 != 6) {
if (b02 != 7) {
throw new IllegalStateException("Nesting problem.");
}
if (!this.f2309f) {
throw new IllegalStateException("JSON must have only one top-level value.");
}
}
i = 7;
}
this.f2305b[this.f2304a - 1] = i;
}
interfaceC0577i.y(44);
}
l0();
this.f2305b[this.f2304a - 1] = i;
}
public final void k0(int i, int i4, char c4) {
int b02 = b0();
if (b02 != i4 && b02 != i) {
throw new IllegalStateException("Nesting problem.");
}
if (this.f2297l != null) {
throw new IllegalStateException("Dangling name: " + this.f2297l);
}
int i5 = this.f2304a;
int i6 = ~this.i;
if (i5 == i6) {
this.i = i6;
return;
}
int i7 = i5 - 1;
this.f2304a = i7;
this.f2306c[i7] = null;
int[] iArr = this.f2307d;
int i8 = i5 - 2;
iArr[i8] = iArr[i8] + 1;
if (b02 == i4) {
l0();
}
this.f2295j.y(c4);
}
public final void l0() {
if (this.f2308e == null) {
return;
}
InterfaceC0577i interfaceC0577i = this.f2295j;
interfaceC0577i.y(10);
int i = this.f2304a;
for (int i4 = 1; i4 < i; i4++) {
interfaceC0577i.Q(this.f2308e);
}
}
public final void m0(int i, int i4, char c4) {
int i5;
int i6 = this.f2304a;
int i7 = this.i;
if (i6 == i7 && ((i5 = this.f2305b[i6 - 1]) == i || i5 == i4)) {
this.i = ~i7;
return;
}
j0();
s();
c0(i);
this.f2307d[this.f2304a - 1] = 0;
this.f2295j.y(c4);
}
public final void o0() {
if (this.f2297l != null) {
int b02 = b0();
InterfaceC0577i interfaceC0577i = this.f2295j;
if (b02 == 5) {
interfaceC0577i.y(44);
} else if (b02 != 3) {
throw new IllegalStateException("Nesting problem.");
}
l0();
this.f2305b[this.f2304a - 1] = 4;
n0(interfaceC0577i, this.f2297l);
this.f2297l = null;
}
}
@Override // Z2.x
public final x x() {
k0(1, 2, ']');
return this;
}
}

View File

@@ -0,0 +1,43 @@
package Z2;
import java.util.Iterator;
/* loaded from: classes3.dex */
public final class u implements Iterator, Cloneable {
/* renamed from: a, reason: collision with root package name */
public final q f2298a;
/* renamed from: b, reason: collision with root package name */
public final Object[] f2299b;
/* renamed from: c, reason: collision with root package name */
public int f2300c;
public u(q qVar, Object[] objArr, int i) {
this.f2298a = qVar;
this.f2299b = objArr;
this.f2300c = i;
}
public final Object clone() {
return new u(this.f2298a, this.f2299b, this.f2300c);
}
@Override // java.util.Iterator
public final boolean hasNext() {
return this.f2300c < this.f2299b.length;
}
@Override // java.util.Iterator
public final Object next() {
int i = this.f2300c;
this.f2300c = i + 1;
return this.f2299b[i];
}
@Override // java.util.Iterator
public final void remove() {
throw new UnsupportedOperationException();
}
}

View File

@@ -0,0 +1,396 @@
package Z2;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/* loaded from: classes3.dex */
public final class v extends r {
public static final Object h = new Object();
/* renamed from: g, reason: collision with root package name */
public Object[] f2301g;
@Override // Z2.r
public final boolean Y() {
int i = this.f2280a;
if (i == 0) {
return false;
}
Object obj = this.f2301g[i - 1];
return !(obj instanceof Iterator) || ((Iterator) obj).hasNext();
}
@Override // Z2.r
public final boolean Z() {
Boolean bool = (Boolean) s0(Boolean.class, q.h);
r0();
return bool.booleanValue();
}
@Override // Z2.r
public final double a0() {
double parseDouble;
q qVar = q.f2277g;
Object s02 = s0(Object.class, qVar);
if (s02 instanceof Number) {
parseDouble = ((Number) s02).doubleValue();
} else {
if (!(s02 instanceof String)) {
throw o0(s02, qVar);
}
try {
parseDouble = Double.parseDouble((String) s02);
} catch (NumberFormatException unused) {
throw o0(s02, qVar);
}
}
if (this.f2284e || !(Double.isNaN(parseDouble) || Double.isInfinite(parseDouble))) {
r0();
return parseDouble;
}
throw new IOException("JSON forbids NaN and infinities: " + parseDouble + " at path " + O());
}
@Override // Z2.r
public final int b0() {
int intValueExact;
q qVar = q.f2277g;
Object s02 = s0(Object.class, qVar);
if (s02 instanceof Number) {
intValueExact = ((Number) s02).intValue();
} else {
if (!(s02 instanceof String)) {
throw o0(s02, qVar);
}
try {
try {
intValueExact = Integer.parseInt((String) s02);
} catch (NumberFormatException unused) {
throw o0(s02, qVar);
}
} catch (NumberFormatException unused2) {
intValueExact = new BigDecimal((String) s02).intValueExact();
}
}
r0();
return intValueExact;
}
@Override // Z2.r
public final long c0() {
long longValueExact;
q qVar = q.f2277g;
Object s02 = s0(Object.class, qVar);
if (s02 instanceof Number) {
longValueExact = ((Number) s02).longValue();
} else {
if (!(s02 instanceof String)) {
throw o0(s02, qVar);
}
try {
try {
longValueExact = Long.parseLong((String) s02);
} catch (NumberFormatException unused) {
throw o0(s02, qVar);
}
} catch (NumberFormatException unused2) {
longValueExact = new BigDecimal((String) s02).longValueExact();
}
}
r0();
return longValueExact;
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
Arrays.fill(this.f2301g, 0, this.f2280a, (Object) null);
this.f2301g[0] = h;
this.f2281b[0] = 8;
this.f2280a = 1;
}
@Override // Z2.r
public final void d() {
List list = (List) s0(List.class, q.f2271a);
u uVar = new u(q.f2272b, list.toArray(new Object[list.size()]), 0);
Object[] objArr = this.f2301g;
int i = this.f2280a;
objArr[i - 1] = uVar;
this.f2281b[i - 1] = 1;
this.f2283d[i - 1] = 0;
if (uVar.hasNext()) {
q0(uVar.next());
}
}
@Override // Z2.r
public final void d0() {
s0(Void.class, q.i);
r0();
}
@Override // Z2.r
public final void e() {
Map map = (Map) s0(Map.class, q.f2273c);
u uVar = new u(q.f2274d, map.entrySet().toArray(new Object[map.size()]), 0);
Object[] objArr = this.f2301g;
int i = this.f2280a;
objArr[i - 1] = uVar;
this.f2281b[i - 1] = 3;
if (uVar.hasNext()) {
q0(uVar.next());
}
}
@Override // Z2.r
public final String e0() {
int i = this.f2280a;
Object obj = i != 0 ? this.f2301g[i - 1] : null;
if (obj instanceof String) {
r0();
return (String) obj;
}
if (obj instanceof Number) {
r0();
return obj.toString();
}
if (obj == h) {
throw new IllegalStateException("JsonReader is closed");
}
throw o0(obj, q.f2276f);
}
@Override // Z2.r
public final q f0() {
int i = this.f2280a;
if (i == 0) {
return q.f2278j;
}
Object obj = this.f2301g[i - 1];
if (obj instanceof u) {
return ((u) obj).f2298a;
}
if (obj instanceof List) {
return q.f2271a;
}
if (obj instanceof Map) {
return q.f2273c;
}
if (obj instanceof Map.Entry) {
return q.f2275e;
}
if (obj instanceof String) {
return q.f2276f;
}
if (obj instanceof Boolean) {
return q.h;
}
if (obj instanceof Number) {
return q.f2277g;
}
if (obj == null) {
return q.i;
}
if (obj == h) {
throw new IllegalStateException("JsonReader is closed");
}
throw o0(obj, "a JSON value");
}
/* JADX WARN: Type inference failed for: r0v0, types: [Z2.r, Z2.v] */
@Override // Z2.r
public final r g0() {
?? rVar = new r(this);
rVar.f2301g = (Object[]) this.f2301g.clone();
for (int i = 0; i < rVar.f2280a; i++) {
Object[] objArr = rVar.f2301g;
Object obj = objArr[i];
if (obj instanceof u) {
u uVar = (u) obj;
objArr[i] = new u(uVar.f2298a, uVar.f2299b, uVar.f2300c);
}
}
return rVar;
}
@Override // Z2.r
public final void h0() {
if (Y()) {
q0(p0());
}
}
@Override // Z2.r
public final int j0(p pVar) {
q qVar = q.f2275e;
Map.Entry entry = (Map.Entry) s0(Map.Entry.class, qVar);
Object key = entry.getKey();
if (!(key instanceof String)) {
throw o0(key, qVar);
}
String str = (String) key;
int length = pVar.f2269a.length;
for (int i = 0; i < length; i++) {
if (pVar.f2269a[i].equals(str)) {
this.f2301g[this.f2280a - 1] = entry.getValue();
this.f2282c[this.f2280a - 2] = str;
return i;
}
}
return -1;
}
@Override // Z2.r
public final int k0(p pVar) {
int i = this.f2280a;
Object obj = i != 0 ? this.f2301g[i - 1] : null;
if (!(obj instanceof String)) {
if (obj != h) {
return -1;
}
throw new IllegalStateException("JsonReader is closed");
}
String str = (String) obj;
int length = pVar.f2269a.length;
for (int i4 = 0; i4 < length; i4++) {
if (pVar.f2269a[i4].equals(str)) {
r0();
return i4;
}
}
return -1;
}
@Override // Z2.r
public final void l0() {
if (!this.f2285f) {
this.f2301g[this.f2280a - 1] = ((Map.Entry) s0(Map.Entry.class, q.f2275e)).getValue();
this.f2282c[this.f2280a - 2] = "null";
} else {
q f02 = f0();
p0();
throw new RuntimeException("Cannot skip unexpected " + f02 + " at " + O());
}
}
@Override // Z2.r
public final void m0() {
if (this.f2285f) {
throw new RuntimeException("Cannot skip unexpected " + f0() + " at " + O());
}
int i = this.f2280a;
if (i > 1) {
this.f2282c[i - 2] = "null";
}
Object obj = i != 0 ? this.f2301g[i - 1] : null;
if (obj instanceof u) {
throw new RuntimeException("Expected a value but was " + f0() + " at path " + O());
}
if (obj instanceof Map.Entry) {
Object[] objArr = this.f2301g;
int i4 = i - 1;
objArr[i4] = ((Map.Entry) objArr[i4]).getValue();
} else {
if (i > 0) {
r0();
return;
}
throw new RuntimeException("Expected a value but was " + f0() + " at path " + O());
}
}
public final String p0() {
q qVar = q.f2275e;
Map.Entry entry = (Map.Entry) s0(Map.Entry.class, qVar);
Object key = entry.getKey();
if (!(key instanceof String)) {
throw o0(key, qVar);
}
String str = (String) key;
this.f2301g[this.f2280a - 1] = entry.getValue();
this.f2282c[this.f2280a - 2] = str;
return str;
}
public final void q0(Object obj) {
int i = this.f2280a;
if (i == this.f2301g.length) {
if (i == 256) {
throw new RuntimeException("Nesting too deep at " + O());
}
int[] iArr = this.f2281b;
this.f2281b = Arrays.copyOf(iArr, iArr.length * 2);
String[] strArr = this.f2282c;
this.f2282c = (String[]) Arrays.copyOf(strArr, strArr.length * 2);
int[] iArr2 = this.f2283d;
this.f2283d = Arrays.copyOf(iArr2, iArr2.length * 2);
Object[] objArr = this.f2301g;
this.f2301g = Arrays.copyOf(objArr, objArr.length * 2);
}
Object[] objArr2 = this.f2301g;
int i4 = this.f2280a;
this.f2280a = i4 + 1;
objArr2[i4] = obj;
}
public final void r0() {
int i = this.f2280a;
int i4 = i - 1;
this.f2280a = i4;
Object[] objArr = this.f2301g;
objArr[i4] = null;
this.f2281b[i4] = 0;
if (i4 > 0) {
int[] iArr = this.f2283d;
int i5 = i - 2;
iArr[i5] = iArr[i5] + 1;
Object obj = objArr[i - 2];
if (obj instanceof Iterator) {
Iterator it = (Iterator) obj;
if (it.hasNext()) {
q0(it.next());
}
}
}
}
@Override // Z2.r
public final void s() {
q qVar = q.f2272b;
u uVar = (u) s0(u.class, qVar);
if (uVar.f2298a != qVar || uVar.hasNext()) {
throw o0(uVar, qVar);
}
r0();
}
public final Object s0(Class cls, q qVar) {
int i = this.f2280a;
Object obj = i != 0 ? this.f2301g[i - 1] : null;
if (cls.isInstance(obj)) {
return cls.cast(obj);
}
if (obj == null && qVar == q.i) {
return null;
}
if (obj == h) {
throw new IllegalStateException("JsonReader is closed");
}
throw o0(obj, qVar);
}
@Override // Z2.r
public final void x() {
q qVar = q.f2274d;
u uVar = (u) s0(u.class, qVar);
if (uVar.f2298a != qVar || uVar.hasNext()) {
throw o0(uVar, qVar);
}
this.f2282c[this.f2280a - 1] = null;
r0();
}
}

View File

@@ -0,0 +1,260 @@
package Z2;
import java.io.IOException;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/* loaded from: classes3.dex */
public final class w extends x {
/* renamed from: j, reason: collision with root package name */
public Object[] f2302j;
/* renamed from: k, reason: collision with root package name */
public String f2303k;
@Override // Z2.x
public final x O() {
if (b0() != 3) {
throw new IllegalStateException("Nesting problem.");
}
if (this.f2303k != null) {
throw new IllegalStateException("Dangling name: " + this.f2303k);
}
int i = this.f2304a;
int i4 = this.i;
if (i == (~i4)) {
this.i = ~i4;
return this;
}
this.h = false;
int i5 = i - 1;
this.f2304a = i5;
this.f2302j[i5] = null;
this.f2306c[i5] = null;
int[] iArr = this.f2307d;
int i6 = i - 2;
iArr[i6] = iArr[i6] + 1;
return this;
}
@Override // Z2.x
public final x Z(String str) {
if (str == null) {
throw new NullPointerException("name == null");
}
if (this.f2304a == 0) {
throw new IllegalStateException("JsonWriter is closed.");
}
if (b0() != 3 || this.f2303k != null || this.h) {
throw new IllegalStateException("Nesting problem.");
}
this.f2303k = str;
this.f2306c[this.f2304a - 1] = str;
return this;
}
@Override // Z2.x
public final x a0() {
if (this.h) {
throw new IllegalStateException("null cannot be used as a map key in JSON at path " + Y());
}
j0(null);
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
int i = this.f2304a;
if (i > 1 || (i == 1 && this.f2305b[i - 1] != 7)) {
throw new IOException("Incomplete document");
}
this.f2304a = 0;
}
@Override // Z2.x
public final x d() {
if (this.h) {
throw new IllegalStateException("Array cannot be used as a map key in JSON at path " + Y());
}
int i = this.f2304a;
int i4 = this.i;
if (i == i4 && this.f2305b[i - 1] == 1) {
this.i = ~i4;
return this;
}
s();
ArrayList arrayList = new ArrayList();
j0(arrayList);
Object[] objArr = this.f2302j;
int i5 = this.f2304a;
objArr[i5] = arrayList;
this.f2307d[i5] = 0;
c0(1);
return this;
}
@Override // Z2.x
public final x e() {
if (this.h) {
throw new IllegalStateException("Object cannot be used as a map key in JSON at path " + Y());
}
int i = this.f2304a;
int i4 = this.i;
if (i == i4 && this.f2305b[i - 1] == 3) {
this.i = ~i4;
return this;
}
s();
C c4 = new C();
j0(c4);
this.f2302j[this.f2304a] = c4;
c0(3);
return this;
}
@Override // Z2.x
public final x e0(double d4) {
if (!this.f2309f && (Double.isNaN(d4) || d4 == Double.NEGATIVE_INFINITY || d4 == Double.POSITIVE_INFINITY)) {
throw new IllegalArgumentException("Numeric values must be finite, but was " + d4);
}
if (this.h) {
this.h = false;
Z(Double.toString(d4));
return this;
}
j0(Double.valueOf(d4));
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // Z2.x
public final x f0(long j4) {
if (this.h) {
this.h = false;
Z(Long.toString(j4));
return this;
}
j0(Long.valueOf(j4));
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // java.io.Flushable
public final void flush() {
if (this.f2304a == 0) {
throw new IllegalStateException("JsonWriter is closed.");
}
}
@Override // Z2.x
public final x g0(Float f2) {
if (f2 != null) {
e0(f2.doubleValue());
return this;
}
if (f2 == null) {
a0();
return this;
}
BigDecimal bigDecimal = new BigDecimal(f2.toString());
if (this.h) {
this.h = false;
Z(bigDecimal.toString());
return this;
}
j0(bigDecimal);
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // Z2.x
public final x h0(String str) {
if (this.h) {
this.h = false;
Z(str);
return this;
}
j0(str);
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
@Override // Z2.x
public final x i0(boolean z3) {
if (this.h) {
throw new IllegalStateException("Boolean cannot be used as a map key in JSON at path " + Y());
}
j0(Boolean.valueOf(z3));
int[] iArr = this.f2307d;
int i = this.f2304a - 1;
iArr[i] = iArr[i] + 1;
return this;
}
public final void j0(Serializable serializable) {
String str;
Object put;
int b02 = b0();
int i = this.f2304a;
if (i == 1) {
if (b02 != 6) {
throw new IllegalStateException("JSON must have only one top-level value.");
}
int i4 = i - 1;
this.f2305b[i4] = 7;
this.f2302j[i4] = serializable;
return;
}
if (b02 != 3 || (str = this.f2303k) == null) {
if (b02 == 1) {
((List) this.f2302j[i - 1]).add(serializable);
return;
} else {
if (b02 != 9) {
throw new IllegalStateException("Nesting problem.");
}
throw new IllegalStateException("Sink from valueSink() was not closed");
}
}
if ((serializable == null && !this.f2310g) || (put = ((Map) this.f2302j[i - 1]).put(str, serializable)) == null) {
this.f2303k = null;
return;
}
throw new IllegalArgumentException("Map key '" + this.f2303k + "' has multiple values at path " + Y() + ": " + put + " and " + serializable);
}
@Override // Z2.x
public final x x() {
if (b0() != 1) {
throw new IllegalStateException("Nesting problem.");
}
int i = this.f2304a;
int i4 = this.i;
if (i == (~i4)) {
this.i = ~i4;
return this;
}
int i5 = i - 1;
this.f2304a = i5;
this.f2302j[i5] = null;
int[] iArr = this.f2307d;
int i6 = i - 2;
iArr[i6] = iArr[i6] + 1;
return this;
}
}

View File

@@ -0,0 +1,101 @@
package Z2;
import java.io.Closeable;
import java.io.Flushable;
import java.util.Arrays;
/* loaded from: classes3.dex */
public abstract class x implements Closeable, Flushable {
/* renamed from: e, reason: collision with root package name */
public String f2308e;
/* renamed from: f, reason: collision with root package name */
public boolean f2309f;
/* renamed from: g, reason: collision with root package name */
public boolean f2310g;
public boolean h;
/* renamed from: a, reason: collision with root package name */
public int f2304a = 0;
/* renamed from: b, reason: collision with root package name */
public int[] f2305b = new int[32];
/* renamed from: c, reason: collision with root package name */
public String[] f2306c = new String[32];
/* renamed from: d, reason: collision with root package name */
public int[] f2307d = new int[32];
public int i = -1;
public abstract x O();
public final String Y() {
return L.c(this.f2304a, this.f2305b, this.f2306c, this.f2307d);
}
public abstract x Z(String str);
public abstract x a0();
public final int b0() {
int i = this.f2304a;
if (i != 0) {
return this.f2305b[i - 1];
}
throw new IllegalStateException("JsonWriter is closed.");
}
public final void c0(int i) {
int[] iArr = this.f2305b;
int i4 = this.f2304a;
this.f2304a = i4 + 1;
iArr[i4] = i;
}
public abstract x d();
public void d0(String str) {
if (str.isEmpty()) {
str = null;
}
this.f2308e = str;
}
public abstract x e();
public abstract x e0(double d4);
public abstract x f0(long j4);
public abstract x g0(Float f2);
public abstract x h0(String str);
public abstract x i0(boolean z3);
public final void s() {
int i = this.f2304a;
int[] iArr = this.f2305b;
if (i != iArr.length) {
return;
}
if (i == 256) {
throw new RuntimeException("Nesting too deep at " + Y() + ": circular reference?");
}
this.f2305b = Arrays.copyOf(iArr, iArr.length * 2);
String[] strArr = this.f2306c;
this.f2306c = (String[]) Arrays.copyOf(strArr, strArr.length * 2);
int[] iArr2 = this.f2307d;
this.f2307d = Arrays.copyOf(iArr2, iArr2.length * 2);
if (this instanceof w) {
w wVar = (w) this;
Object[] objArr = wVar.f2302j;
wVar.f2302j = Arrays.copyOf(objArr, objArr.length * 2);
}
}
public abstract x x();
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,24 @@
package Z2;
/* loaded from: classes3.dex */
public final class z extends S2.m {
/* renamed from: f, reason: collision with root package name */
public final /* synthetic */ int f2315f;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public /* synthetic */ z(C c4, int i) {
super(c4);
this.f2315f = i;
}
@Override // S2.m, java.util.Iterator
public Object next() {
switch (this.f2315f) {
case 1:
return b().f2197f;
default:
return super.next();
}
}
}