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,93 @@
package kotlin.reflect.jvm.internal.impl.name;
import com.google.firebase.sessions.settings.RemoteSettings;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsJVMKt;
/* loaded from: classes3.dex */
public final class CallableId {
public static final Companion Companion = new Companion(null);
private static final Name LOCAL_NAME;
private static final FqName PACKAGE_FQ_NAME_FOR_LOCAL;
private final Name callableName;
private final FqName className;
private final FqName packageName;
private final FqName pathToLocal;
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
static {
Name name = SpecialNames.LOCAL;
LOCAL_NAME = name;
FqName fqName = FqName.topLevel(name);
Intrinsics.checkNotNullExpressionValue(fqName, "topLevel(...)");
PACKAGE_FQ_NAME_FOR_LOCAL = fqName;
}
public CallableId(FqName packageName, FqName fqName, Name callableName, FqName fqName2) {
Intrinsics.checkNotNullParameter(packageName, "packageName");
Intrinsics.checkNotNullParameter(callableName, "callableName");
this.packageName = packageName;
this.className = fqName;
this.callableName = callableName;
this.pathToLocal = fqName2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof CallableId)) {
return false;
}
CallableId callableId = (CallableId) obj;
return Intrinsics.areEqual(this.packageName, callableId.packageName) && Intrinsics.areEqual(this.className, callableId.className) && Intrinsics.areEqual(this.callableName, callableId.callableName) && Intrinsics.areEqual(this.pathToLocal, callableId.pathToLocal);
}
public int hashCode() {
int hashCode = this.packageName.hashCode() * 31;
FqName fqName = this.className;
int hashCode2 = (this.callableName.hashCode() + ((hashCode + (fqName == null ? 0 : fqName.hashCode())) * 31)) * 31;
FqName fqName2 = this.pathToLocal;
return hashCode2 + (fqName2 != null ? fqName2.hashCode() : 0);
}
public String toString() {
String replace$default;
StringBuilder sb = new StringBuilder();
String asString = this.packageName.asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
replace$default = StringsKt__StringsJVMKt.replace$default(asString, '.', '/', false, 4, (Object) null);
sb.append(replace$default);
sb.append(RemoteSettings.FORWARD_SLASH_STRING);
FqName fqName = this.className;
if (fqName != null) {
sb.append(fqName);
sb.append(".");
}
sb.append(this.callableName);
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public /* synthetic */ CallableId(FqName fqName, FqName fqName2, Name name, FqName fqName3, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(fqName, fqName2, name, (i & 8) != 0 ? null : fqName3);
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public CallableId(FqName packageName, Name callableName) {
this(packageName, null, callableName, null, 8, null);
Intrinsics.checkNotNullParameter(packageName, "packageName");
Intrinsics.checkNotNullParameter(callableName, "callableName");
}
}

View File

@@ -0,0 +1,380 @@
package kotlin.reflect.jvm.internal.impl.name;
import com.google.firebase.sessions.settings.RemoteSettings;
/* loaded from: classes3.dex */
public final class ClassId {
static final /* synthetic */ boolean $assertionsDisabled = false;
private final boolean local;
private final FqName packageFqName;
private final FqName relativeClassName;
/* JADX WARN: Removed duplicated region for block: B:14:0x0021 */
/* JADX WARN: Removed duplicated region for block: B:17:0x002c */
/* JADX WARN: Removed duplicated region for block: B:20:0x0054 */
/* JADX WARN: Removed duplicated region for block: B:26:0x0080 */
/* JADX WARN: Removed duplicated region for block: B:27:0x0085 */
/* JADX WARN: Removed duplicated region for block: B:28:0x008a */
/* JADX WARN: Removed duplicated region for block: B:29:0x008f */
/* JADX WARN: Removed duplicated region for block: B:30:0x0094 */
/* JADX WARN: Removed duplicated region for block: B:33:0x009e A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:37:0x00a7 */
/* JADX WARN: Removed duplicated region for block: B:47:0x0079 */
/* JADX WARN: Removed duplicated region for block: B:48:0x0031 */
/* JADX WARN: Removed duplicated region for block: B:49:0x0036 */
/* JADX WARN: Removed duplicated region for block: B:50:0x003b */
/* JADX WARN: Removed duplicated region for block: B:51:0x0040 */
/* JADX WARN: Removed duplicated region for block: B:52:0x0043 */
/* JADX WARN: Removed duplicated region for block: B:53:0x0048 */
/* JADX WARN: Removed duplicated region for block: B:54:0x004d */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ void $$$reportNull$$$0(int r10) {
/*
r0 = 9
r1 = 7
r2 = 6
r3 = 5
if (r10 == r3) goto L13
if (r10 == r2) goto L13
if (r10 == r1) goto L13
if (r10 == r0) goto L13
switch(r10) {
case 13: goto L13;
case 14: goto L13;
case 15: goto L13;
case 16: goto L13;
default: goto L10;
}
L10:
java.lang.String r4 = "Argument for @NotNull parameter '%s' of %s.%s must not be null"
goto L15
L13:
java.lang.String r4 = "@NotNull method %s.%s must not return null"
L15:
r5 = 2
if (r10 == r3) goto L23
if (r10 == r2) goto L23
if (r10 == r1) goto L23
if (r10 == r0) goto L23
switch(r10) {
case 13: goto L23;
case 14: goto L23;
case 15: goto L23;
case 16: goto L23;
default: goto L21;
}
L21:
r6 = 3
goto L24
L23:
r6 = r5
L24:
java.lang.Object[] r6 = new java.lang.Object[r6]
java.lang.String r7 = "kotlin/reflect/jvm/internal/impl/name/ClassId"
r8 = 0
switch(r10) {
case 1: goto L4d;
case 2: goto L48;
case 3: goto L4d;
case 4: goto L43;
case 5: goto L40;
case 6: goto L40;
case 7: goto L40;
case 8: goto L3b;
case 9: goto L40;
case 10: goto L36;
case 11: goto L31;
case 12: goto L31;
case 13: goto L40;
case 14: goto L40;
case 15: goto L40;
case 16: goto L40;
default: goto L2c;
}
L2c:
java.lang.String r9 = "topLevelFqName"
r6[r8] = r9
goto L51
L31:
java.lang.String r9 = "string"
r6[r8] = r9
goto L51
L36:
java.lang.String r9 = "segment"
r6[r8] = r9
goto L51
L3b:
java.lang.String r9 = "name"
r6[r8] = r9
goto L51
L40:
r6[r8] = r7
goto L51
L43:
java.lang.String r9 = "topLevelName"
r6[r8] = r9
goto L51
L48:
java.lang.String r9 = "relativeClassName"
r6[r8] = r9
goto L51
L4d:
java.lang.String r9 = "packageFqName"
r6[r8] = r9
L51:
r8 = 1
if (r10 == r3) goto L79
if (r10 == r2) goto L74
if (r10 == r1) goto L6f
if (r10 == r0) goto L6a
switch(r10) {
case 13: goto L65;
case 14: goto L65;
case 15: goto L60;
case 16: goto L60;
default: goto L5d;
}
L5d:
r6[r8] = r7
goto L7d
L60:
java.lang.String r7 = "asFqNameString"
r6[r8] = r7
goto L7d
L65:
java.lang.String r7 = "asString"
r6[r8] = r7
goto L7d
L6a:
java.lang.String r7 = "asSingleFqName"
r6[r8] = r7
goto L7d
L6f:
java.lang.String r7 = "getShortClassName"
r6[r8] = r7
goto L7d
L74:
java.lang.String r7 = "getRelativeClassName"
r6[r8] = r7
goto L7d
L79:
java.lang.String r7 = "getPackageFqName"
r6[r8] = r7
L7d:
switch(r10) {
case 1: goto L94;
case 2: goto L94;
case 3: goto L94;
case 4: goto L94;
case 5: goto L98;
case 6: goto L98;
case 7: goto L98;
case 8: goto L8f;
case 9: goto L98;
case 10: goto L8a;
case 11: goto L85;
case 12: goto L85;
case 13: goto L98;
case 14: goto L98;
case 15: goto L98;
case 16: goto L98;
default: goto L80;
}
L80:
java.lang.String r7 = "topLevel"
r6[r5] = r7
goto L98
L85:
java.lang.String r7 = "fromString"
r6[r5] = r7
goto L98
L8a:
java.lang.String r7 = "startsWith"
r6[r5] = r7
goto L98
L8f:
java.lang.String r7 = "createNestedClassId"
r6[r5] = r7
goto L98
L94:
java.lang.String r7 = "<init>"
r6[r5] = r7
L98:
java.lang.String r4 = java.lang.String.format(r4, r6)
if (r10 == r3) goto Lad
if (r10 == r2) goto Lad
if (r10 == r1) goto Lad
if (r10 == r0) goto Lad
switch(r10) {
case 13: goto Lad;
case 14: goto Lad;
case 15: goto Lad;
case 16: goto Lad;
default: goto La7;
}
La7:
java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException
r10.<init>(r4)
goto Lb2
Lad:
java.lang.IllegalStateException r10 = new java.lang.IllegalStateException
r10.<init>(r4)
Lb2:
throw r10
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.name.ClassId.$$$reportNull$$$0(int):void");
}
public ClassId(FqName fqName, FqName fqName2, boolean z3) {
if (fqName == null) {
$$$reportNull$$$0(1);
}
if (fqName2 == null) {
$$$reportNull$$$0(2);
}
this.packageFqName = fqName;
this.relativeClassName = fqName2;
this.local = z3;
}
public static ClassId fromString(String str) {
if (str == null) {
$$$reportNull$$$0(11);
}
return fromString(str, false);
}
public static ClassId topLevel(FqName fqName) {
if (fqName == null) {
$$$reportNull$$$0(0);
}
return new ClassId(fqName.parent(), fqName.shortName());
}
public FqName asSingleFqName() {
if (this.packageFqName.isRoot()) {
FqName fqName = this.relativeClassName;
if (fqName == null) {
$$$reportNull$$$0(9);
}
return fqName;
}
return new FqName(this.packageFqName.asString() + "." + this.relativeClassName.asString());
}
public String asString() {
if (this.packageFqName.isRoot()) {
String asString = this.relativeClassName.asString();
if (asString == null) {
$$$reportNull$$$0(13);
}
return asString;
}
String str = this.packageFqName.asString().replace('.', '/') + RemoteSettings.FORWARD_SLASH_STRING + this.relativeClassName.asString();
if (str == null) {
$$$reportNull$$$0(14);
}
return str;
}
public ClassId createNestedClassId(Name name) {
if (name == null) {
$$$reportNull$$$0(8);
}
return new ClassId(getPackageFqName(), this.relativeClassName.child(name), this.local);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj != null && ClassId.class == obj.getClass()) {
ClassId classId = (ClassId) obj;
if (this.packageFqName.equals(classId.packageFqName) && this.relativeClassName.equals(classId.relativeClassName) && this.local == classId.local) {
return true;
}
}
return false;
}
public ClassId getOuterClassId() {
FqName parent = this.relativeClassName.parent();
if (parent.isRoot()) {
return null;
}
return new ClassId(getPackageFqName(), parent, this.local);
}
public FqName getPackageFqName() {
FqName fqName = this.packageFqName;
if (fqName == null) {
$$$reportNull$$$0(5);
}
return fqName;
}
public FqName getRelativeClassName() {
FqName fqName = this.relativeClassName;
if (fqName == null) {
$$$reportNull$$$0(6);
}
return fqName;
}
public Name getShortClassName() {
Name shortName = this.relativeClassName.shortName();
if (shortName == null) {
$$$reportNull$$$0(7);
}
return shortName;
}
public int hashCode() {
return Boolean.valueOf(this.local).hashCode() + ((this.relativeClassName.hashCode() + (this.packageFqName.hashCode() * 31)) * 31);
}
public boolean isLocal() {
return this.local;
}
public boolean isNestedClass() {
return !this.relativeClassName.parent().isRoot();
}
public String toString() {
if (!this.packageFqName.isRoot()) {
return asString();
}
return RemoteSettings.FORWARD_SLASH_STRING + asString();
}
public static ClassId fromString(String str, boolean z3) {
String str2;
if (str == null) {
$$$reportNull$$$0(12);
}
int lastIndexOf = str.lastIndexOf(RemoteSettings.FORWARD_SLASH_STRING);
if (lastIndexOf == -1) {
str2 = "";
} else {
String replace = str.substring(0, lastIndexOf).replace('/', '.');
str = str.substring(lastIndexOf + 1);
str2 = replace;
}
return new ClassId(new FqName(str2), new FqName(str), z3);
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public ClassId(FqName fqName, Name name) {
this(fqName, FqName.topLevel(name), false);
if (fqName == null) {
$$$reportNull$$$0(3);
}
if (name == null) {
$$$reportNull$$$0(4);
}
}
}

View File

@@ -0,0 +1,263 @@
package kotlin.reflect.jvm.internal.impl.name;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.List;
/* loaded from: classes3.dex */
public final class FqName {
public static final FqName ROOT = new FqName("");
private final FqNameUnsafe fqName;
private transient FqName parent;
private static /* synthetic */ void $$$reportNull$$$0(int i) {
String str;
int i4;
switch (i) {
case 4:
case 5:
case 6:
case 7:
case 9:
case 10:
case 11:
str = "@NotNull method %s.%s must not return null";
break;
case 8:
default:
str = "Argument for @NotNull parameter '%s' of %s.%s must not be null";
break;
}
switch (i) {
case 4:
case 5:
case 6:
case 7:
case 9:
case 10:
case 11:
i4 = 2;
break;
case 8:
default:
i4 = 3;
break;
}
Object[] objArr = new Object[i4];
switch (i) {
case 1:
case 2:
case 3:
objArr[0] = "fqName";
break;
case 4:
case 5:
case 6:
case 7:
case 9:
case 10:
case 11:
objArr[0] = "kotlin/reflect/jvm/internal/impl/name/FqName";
break;
case 8:
objArr[0] = AppMeasurementSdk.ConditionalUserProperty.NAME;
break;
case 12:
objArr[0] = "segment";
break;
case 13:
objArr[0] = "other";
break;
case 14:
objArr[0] = "shortName";
break;
default:
objArr[0] = "names";
break;
}
switch (i) {
case 4:
objArr[1] = "asString";
break;
case 5:
objArr[1] = "toUnsafe";
break;
case 6:
case 7:
objArr[1] = "parent";
break;
case 8:
default:
objArr[1] = "kotlin/reflect/jvm/internal/impl/name/FqName";
break;
case 9:
objArr[1] = "shortName";
break;
case 10:
objArr[1] = "shortNameOrSpecial";
break;
case 11:
objArr[1] = "pathSegments";
break;
}
switch (i) {
case 1:
case 2:
case 3:
objArr[2] = "<init>";
break;
case 4:
case 5:
case 6:
case 7:
case 9:
case 10:
case 11:
break;
case 8:
objArr[2] = "child";
break;
case 12:
case 13:
objArr[2] = "startsWith";
break;
case 14:
objArr[2] = "topLevel";
break;
default:
objArr[2] = "fromSegments";
break;
}
String format = String.format(str, objArr);
switch (i) {
case 4:
case 5:
case 6:
case 7:
case 9:
case 10:
case 11:
throw new IllegalStateException(format);
case 8:
default:
throw new IllegalArgumentException(format);
}
}
public FqName(String str) {
if (str == null) {
$$$reportNull$$$0(1);
}
this.fqName = new FqNameUnsafe(str, this);
}
public static FqName topLevel(Name name) {
if (name == null) {
$$$reportNull$$$0(14);
}
return new FqName(FqNameUnsafe.topLevel(name));
}
public String asString() {
String asString = this.fqName.asString();
if (asString == null) {
$$$reportNull$$$0(4);
}
return asString;
}
public FqName child(Name name) {
if (name == null) {
$$$reportNull$$$0(8);
}
return new FqName(this.fqName.child(name), this);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof FqName) && this.fqName.equals(((FqName) obj).fqName);
}
public int hashCode() {
return this.fqName.hashCode();
}
public boolean isRoot() {
return this.fqName.isRoot();
}
public FqName parent() {
FqName fqName = this.parent;
if (fqName != null) {
if (fqName == null) {
$$$reportNull$$$0(6);
}
return fqName;
}
if (isRoot()) {
throw new IllegalStateException("root");
}
FqName fqName2 = new FqName(this.fqName.parent());
this.parent = fqName2;
return fqName2;
}
public List<Name> pathSegments() {
List<Name> pathSegments = this.fqName.pathSegments();
if (pathSegments == null) {
$$$reportNull$$$0(11);
}
return pathSegments;
}
public Name shortName() {
Name shortName = this.fqName.shortName();
if (shortName == null) {
$$$reportNull$$$0(9);
}
return shortName;
}
public Name shortNameOrSpecial() {
Name shortNameOrSpecial = this.fqName.shortNameOrSpecial();
if (shortNameOrSpecial == null) {
$$$reportNull$$$0(10);
}
return shortNameOrSpecial;
}
public boolean startsWith(Name name) {
if (name == null) {
$$$reportNull$$$0(12);
}
return this.fqName.startsWith(name);
}
public String toString() {
return this.fqName.toString();
}
public FqNameUnsafe toUnsafe() {
FqNameUnsafe fqNameUnsafe = this.fqName;
if (fqNameUnsafe == null) {
$$$reportNull$$$0(5);
}
return fqNameUnsafe;
}
public FqName(FqNameUnsafe fqNameUnsafe) {
if (fqNameUnsafe == null) {
$$$reportNull$$$0(2);
}
this.fqName = fqNameUnsafe;
}
private FqName(FqNameUnsafe fqNameUnsafe, FqName fqName) {
if (fqNameUnsafe == null) {
$$$reportNull$$$0(3);
}
this.fqName = fqNameUnsafe;
this.parent = fqName;
}
}

View File

@@ -0,0 +1,373 @@
package kotlin.reflect.jvm.internal.impl.name;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.Collections;
import java.util.List;
import java.util.regex.Pattern;
import kotlin.collections.ArraysKt;
import kotlin.jvm.functions.Function1;
/* loaded from: classes3.dex */
public final class FqNameUnsafe {
private static final Name ROOT_NAME = Name.special("<root>");
private static final Pattern SPLIT_BY_DOTS = Pattern.compile("\\.");
private static final Function1<String, Name> STRING_TO_NAME = new Function1<String, Name>() { // from class: kotlin.reflect.jvm.internal.impl.name.FqNameUnsafe.1
@Override // kotlin.jvm.functions.Function1
public Name invoke(String str) {
return Name.guessByFirstCharacter(str);
}
};
private final String fqName;
private transient FqNameUnsafe parent;
private transient FqName safe;
private transient Name shortName;
private static /* synthetic */ void $$$reportNull$$$0(int i) {
String str;
int i4;
switch (i) {
case 4:
case 5:
case 6:
case 7:
case 8:
case 10:
case 11:
case 12:
case 13:
case 14:
case 18:
str = "@NotNull method %s.%s must not return null";
break;
case 9:
case 15:
case 16:
case 17:
default:
str = "Argument for @NotNull parameter '%s' of %s.%s must not be null";
break;
}
switch (i) {
case 4:
case 5:
case 6:
case 7:
case 8:
case 10:
case 11:
case 12:
case 13:
case 14:
case 18:
i4 = 2;
break;
case 9:
case 15:
case 16:
case 17:
default:
i4 = 3;
break;
}
Object[] objArr = new Object[i4];
if (i != 1) {
switch (i) {
case 4:
case 5:
case 6:
case 7:
case 8:
case 10:
case 11:
case 12:
case 13:
case 14:
case 18:
objArr[0] = "kotlin/reflect/jvm/internal/impl/name/FqNameUnsafe";
break;
case 9:
objArr[0] = AppMeasurementSdk.ConditionalUserProperty.NAME;
break;
case 15:
objArr[0] = "segment";
break;
case 16:
objArr[0] = "other";
break;
case 17:
objArr[0] = "shortName";
break;
default:
objArr[0] = "fqName";
break;
}
} else {
objArr[0] = "safe";
}
switch (i) {
case 4:
objArr[1] = "asString";
break;
case 5:
case 6:
objArr[1] = "toSafe";
break;
case 7:
case 8:
objArr[1] = "parent";
break;
case 9:
case 15:
case 16:
case 17:
default:
objArr[1] = "kotlin/reflect/jvm/internal/impl/name/FqNameUnsafe";
break;
case 10:
case 11:
objArr[1] = "shortName";
break;
case 12:
case 13:
objArr[1] = "shortNameOrSpecial";
break;
case 14:
objArr[1] = "pathSegments";
break;
case 18:
objArr[1] = "toString";
break;
}
switch (i) {
case 4:
case 5:
case 6:
case 7:
case 8:
case 10:
case 11:
case 12:
case 13:
case 14:
case 18:
break;
case 9:
objArr[2] = "child";
break;
case 15:
case 16:
objArr[2] = "startsWith";
break;
case 17:
objArr[2] = "topLevel";
break;
default:
objArr[2] = "<init>";
break;
}
String format = String.format(str, objArr);
switch (i) {
case 4:
case 5:
case 6:
case 7:
case 8:
case 10:
case 11:
case 12:
case 13:
case 14:
case 18:
throw new IllegalStateException(format);
case 9:
case 15:
case 16:
case 17:
default:
throw new IllegalArgumentException(format);
}
}
public FqNameUnsafe(String str, FqName fqName) {
if (str == null) {
$$$reportNull$$$0(0);
}
if (fqName == null) {
$$$reportNull$$$0(1);
}
this.fqName = str;
this.safe = fqName;
}
private void compute() {
int lastIndexOf = this.fqName.lastIndexOf(46);
if (lastIndexOf >= 0) {
this.shortName = Name.guessByFirstCharacter(this.fqName.substring(lastIndexOf + 1));
this.parent = new FqNameUnsafe(this.fqName.substring(0, lastIndexOf));
} else {
this.shortName = Name.guessByFirstCharacter(this.fqName);
this.parent = FqName.ROOT.toUnsafe();
}
}
public static FqNameUnsafe topLevel(Name name) {
if (name == null) {
$$$reportNull$$$0(17);
}
return new FqNameUnsafe(name.asString(), FqName.ROOT.toUnsafe(), name);
}
public String asString() {
String str = this.fqName;
if (str == null) {
$$$reportNull$$$0(4);
}
return str;
}
public FqNameUnsafe child(Name name) {
String str;
if (name == null) {
$$$reportNull$$$0(9);
}
if (isRoot()) {
str = name.asString();
} else {
str = this.fqName + "." + name.asString();
}
return new FqNameUnsafe(str, this, name);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof FqNameUnsafe) && this.fqName.equals(((FqNameUnsafe) obj).fqName);
}
public int hashCode() {
return this.fqName.hashCode();
}
public boolean isRoot() {
return this.fqName.isEmpty();
}
public boolean isSafe() {
return this.safe != null || asString().indexOf(60) < 0;
}
public FqNameUnsafe parent() {
FqNameUnsafe fqNameUnsafe = this.parent;
if (fqNameUnsafe != null) {
if (fqNameUnsafe == null) {
$$$reportNull$$$0(7);
}
return fqNameUnsafe;
}
if (isRoot()) {
throw new IllegalStateException("root");
}
compute();
FqNameUnsafe fqNameUnsafe2 = this.parent;
if (fqNameUnsafe2 == null) {
$$$reportNull$$$0(8);
}
return fqNameUnsafe2;
}
public List<Name> pathSegments() {
List<Name> map = isRoot() ? Collections.EMPTY_LIST : ArraysKt.map(SPLIT_BY_DOTS.split(this.fqName), STRING_TO_NAME);
if (map == null) {
$$$reportNull$$$0(14);
}
return map;
}
public Name shortName() {
Name name = this.shortName;
if (name != null) {
if (name == null) {
$$$reportNull$$$0(10);
}
return name;
}
if (isRoot()) {
throw new IllegalStateException("root");
}
compute();
Name name2 = this.shortName;
if (name2 == null) {
$$$reportNull$$$0(11);
}
return name2;
}
public Name shortNameOrSpecial() {
if (isRoot()) {
Name name = ROOT_NAME;
if (name == null) {
$$$reportNull$$$0(12);
}
return name;
}
Name shortName = shortName();
if (shortName == null) {
$$$reportNull$$$0(13);
}
return shortName;
}
public boolean startsWith(Name name) {
if (name == null) {
$$$reportNull$$$0(15);
}
if (isRoot()) {
return false;
}
int indexOf = this.fqName.indexOf(46);
String asString = name.asString();
String str = this.fqName;
if (indexOf == -1) {
indexOf = Math.max(str.length(), asString.length());
}
return str.regionMatches(0, asString, 0, indexOf);
}
public FqName toSafe() {
FqName fqName = this.safe;
if (fqName != null) {
if (fqName == null) {
$$$reportNull$$$0(5);
}
return fqName;
}
FqName fqName2 = new FqName(this);
this.safe = fqName2;
return fqName2;
}
public String toString() {
String asString = isRoot() ? ROOT_NAME.asString() : this.fqName;
if (asString == null) {
$$$reportNull$$$0(18);
}
return asString;
}
public FqNameUnsafe(String str) {
if (str == null) {
$$$reportNull$$$0(2);
}
this.fqName = str;
}
private FqNameUnsafe(String str, FqNameUnsafe fqNameUnsafe, Name name) {
if (str == null) {
$$$reportNull$$$0(3);
}
this.fqName = str;
this.parent = fqNameUnsafe;
this.shortName = name;
}
}

View File

@@ -0,0 +1,151 @@
package kotlin.reflect.jvm.internal.impl.name;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.text.StringsKt__StringsJVMKt;
@SourceDebugExtension({"SMAP\nFqNamesUtil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FqNamesUtil.kt\norg/jetbrains/kotlin/name/FqNamesUtilKt\n+ 2 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,86:1\n526#2:87\n511#2,6:88\n1#3:94\n*S KotlinDebug\n*F\n+ 1 FqNamesUtil.kt\norg/jetbrains/kotlin/name/FqNamesUtilKt\n*L\n73#1:87\n73#1:88,6\n*E\n"})
/* loaded from: classes3.dex */
public final class FqNamesUtilKt {
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[State.values().length];
try {
iArr[State.BEGINNING.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[State.AFTER_DOT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[State.MIDDLE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
public static final <V> V findValueForMostSpecificFqname(FqName fqName, Map<FqName, ? extends V> values) {
Object next;
Intrinsics.checkNotNullParameter(fqName, "<this>");
Intrinsics.checkNotNullParameter(values, "values");
LinkedHashMap linkedHashMap = new LinkedHashMap();
for (Map.Entry<FqName, ? extends V> entry : values.entrySet()) {
FqName key = entry.getKey();
if (Intrinsics.areEqual(fqName, key) || isChildOf(fqName, key)) {
linkedHashMap.put(entry.getKey(), entry.getValue());
}
}
if (linkedHashMap.isEmpty()) {
linkedHashMap = null;
}
if (linkedHashMap == null) {
return null;
}
Iterator it = linkedHashMap.entrySet().iterator();
if (it.hasNext()) {
next = it.next();
if (it.hasNext()) {
int length = tail((FqName) ((Map.Entry) next).getKey(), fqName).asString().length();
do {
Object next2 = it.next();
int length2 = tail((FqName) ((Map.Entry) next2).getKey(), fqName).asString().length();
if (length > length2) {
next = next2;
length = length2;
}
} while (it.hasNext());
}
} else {
next = null;
}
Map.Entry entry2 = (Map.Entry) next;
if (entry2 != null) {
return (V) entry2.getValue();
}
return null;
}
public static final boolean isChildOf(FqName fqName, FqName packageName) {
Intrinsics.checkNotNullParameter(fqName, "<this>");
Intrinsics.checkNotNullParameter(packageName, "packageName");
return Intrinsics.areEqual(parentOrNull(fqName), packageName);
}
public static final boolean isSubpackageOf(FqName fqName, FqName packageName) {
Intrinsics.checkNotNullParameter(fqName, "<this>");
Intrinsics.checkNotNullParameter(packageName, "packageName");
if (Intrinsics.areEqual(fqName, packageName) || packageName.isRoot()) {
return true;
}
String asString = fqName.asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
String asString2 = packageName.asString();
Intrinsics.checkNotNullExpressionValue(asString2, "asString(...)");
return isSubpackageOf(asString, asString2);
}
public static final boolean isValidJavaFqName(String str) {
if (str == null) {
return false;
}
State state = State.BEGINNING;
for (int i = 0; i < str.length(); i++) {
char charAt = str.charAt(i);
int i4 = WhenMappings.$EnumSwitchMapping$0[state.ordinal()];
if (i4 == 1 || i4 == 2) {
if (!Character.isJavaIdentifierStart(charAt)) {
return false;
}
state = State.MIDDLE;
} else if (i4 != 3) {
continue;
} else if (charAt == '.') {
state = State.AFTER_DOT;
} else if (!Character.isJavaIdentifierPart(charAt)) {
return false;
}
}
return state != State.AFTER_DOT;
}
public static final FqName parentOrNull(FqName fqName) {
Intrinsics.checkNotNullParameter(fqName, "<this>");
if (fqName.isRoot()) {
return null;
}
return fqName.parent();
}
public static final FqName tail(FqName fqName, FqName prefix) {
Intrinsics.checkNotNullParameter(fqName, "<this>");
Intrinsics.checkNotNullParameter(prefix, "prefix");
if (!isSubpackageOf(fqName, prefix) || prefix.isRoot()) {
return fqName;
}
if (Intrinsics.areEqual(fqName, prefix)) {
FqName ROOT = FqName.ROOT;
Intrinsics.checkNotNullExpressionValue(ROOT, "ROOT");
return ROOT;
}
String asString = fqName.asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
String substring = asString.substring(prefix.asString().length() + 1);
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
return new FqName(substring);
}
private static final boolean isSubpackageOf(String str, String str2) {
boolean startsWith$default;
startsWith$default = StringsKt__StringsJVMKt.startsWith$default(str, str2, false, 2, null);
return startsWith$default && str.charAt(str2.length()) == '.';
}
}

View File

@@ -0,0 +1,153 @@
package kotlin.reflect.jvm.internal.impl.name;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
/* loaded from: classes3.dex */
public final class Name implements Comparable<Name> {
private final String name;
private final boolean special;
private static /* synthetic */ void $$$reportNull$$$0(int i) {
String str = (i == 1 || i == 2 || i == 3 || i == 4) ? "@NotNull method %s.%s must not return null" : "Argument for @NotNull parameter '%s' of %s.%s must not be null";
Object[] objArr = new Object[(i == 1 || i == 2 || i == 3 || i == 4) ? 2 : 3];
if (i == 1 || i == 2 || i == 3 || i == 4) {
objArr[0] = "kotlin/reflect/jvm/internal/impl/name/Name";
} else {
objArr[0] = AppMeasurementSdk.ConditionalUserProperty.NAME;
}
if (i == 1) {
objArr[1] = "asString";
} else if (i == 2) {
objArr[1] = "getIdentifier";
} else if (i == 3 || i == 4) {
objArr[1] = "asStringStripSpecialMarkers";
} else {
objArr[1] = "kotlin/reflect/jvm/internal/impl/name/Name";
}
switch (i) {
case 1:
case 2:
case 3:
case 4:
break;
case 5:
objArr[2] = "identifier";
break;
case 6:
objArr[2] = "isValidIdentifier";
break;
case 7:
objArr[2] = "identifierIfValid";
break;
case 8:
objArr[2] = "special";
break;
case 9:
objArr[2] = "guessByFirstCharacter";
break;
default:
objArr[2] = "<init>";
break;
}
String format = String.format(str, objArr);
if (i != 1 && i != 2 && i != 3 && i != 4) {
throw new IllegalArgumentException(format);
}
throw new IllegalStateException(format);
}
private Name(String str, boolean z3) {
if (str == null) {
$$$reportNull$$$0(0);
}
this.name = str;
this.special = z3;
}
public static Name guessByFirstCharacter(String str) {
if (str == null) {
$$$reportNull$$$0(9);
}
return str.startsWith("<") ? special(str) : identifier(str);
}
public static Name identifier(String str) {
if (str == null) {
$$$reportNull$$$0(5);
}
return new Name(str, false);
}
public static boolean isValidIdentifier(String str) {
if (str == null) {
$$$reportNull$$$0(6);
}
if (str.isEmpty() || str.startsWith("<")) {
return false;
}
for (int i = 0; i < str.length(); i++) {
char charAt = str.charAt(i);
if (charAt == '.' || charAt == '/' || charAt == '\\') {
return false;
}
}
return true;
}
public static Name special(String str) {
if (str == null) {
$$$reportNull$$$0(8);
}
if (str.startsWith("<")) {
return new Name(str, true);
}
throw new IllegalArgumentException("special name must start with '<': ".concat(str));
}
public String asString() {
String str = this.name;
if (str == null) {
$$$reportNull$$$0(1);
}
return str;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Name)) {
return false;
}
Name name = (Name) obj;
return this.special == name.special && this.name.equals(name.name);
}
public String getIdentifier() {
if (this.special) {
throw new IllegalStateException("not identifier: " + this);
}
String asString = asString();
if (asString == null) {
$$$reportNull$$$0(2);
}
return asString;
}
public int hashCode() {
return (this.name.hashCode() * 31) + (this.special ? 1 : 0);
}
public boolean isSpecial() {
return this.special;
}
public String toString() {
return this.name;
}
@Override // java.lang.Comparable
public int compareTo(Name name) {
return this.name.compareTo(name.name);
}
}

View File

@@ -0,0 +1,28 @@
package kotlin.reflect.jvm.internal.impl.name;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
/* loaded from: classes3.dex */
public final class NameUtils {
public static final NameUtils INSTANCE = new NameUtils();
private static final Regex SANITIZE_AS_JAVA_INVALID_CHARACTERS = new Regex("[^\\p{L}\\p{Digit}]");
private static final String CONTEXT_RECEIVER_PREFIX = "$context_receiver";
private NameUtils() {
}
@JvmStatic
public static final Name contextReceiverName(int i) {
Name identifier = Name.identifier(CONTEXT_RECEIVER_PREFIX + '_' + i);
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
return identifier;
}
@JvmStatic
public static final String sanitizeAsJavaIdentifier(String name) {
Intrinsics.checkNotNullParameter(name, "name");
return SANITIZE_AS_JAVA_INVALID_CHARACTERS.replace(name, "_");
}
}

View File

@@ -0,0 +1,126 @@
package kotlin.reflect.jvm.internal.impl.name;
import kotlin.jvm.JvmField;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nSpecialNames.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SpecialNames.kt\norg/jetbrains/kotlin/name/SpecialNames\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,102:1\n1#2:103\n*E\n"})
/* loaded from: classes3.dex */
public final class SpecialNames {
@JvmField
public static final Name ANONYMOUS;
@JvmField
public static final Name ARRAY;
@JvmField
public static final Name DEFAULT_NAME_FOR_COMPANION_OBJECT;
@JvmField
public static final Name DESTRUCT;
@JvmField
public static final Name ENUM_GET_ENTRIES;
@JvmField
public static final Name IMPLICIT_SET_PARAMETER;
@JvmField
public static final Name INIT;
public static final SpecialNames INSTANCE = new SpecialNames();
@JvmField
public static final Name ITERATOR;
@JvmField
public static final Name LOCAL;
@JvmField
public static final Name NO_NAME_PROVIDED;
@JvmField
public static final Name RECEIVER;
@JvmField
public static final Name ROOT_PACKAGE;
@JvmField
public static final Name SAFE_IDENTIFIER_FOR_NO_NAME;
@JvmField
public static final Name THIS;
@JvmField
public static final Name UNARY;
@JvmField
public static final Name UNDERSCORE_FOR_UNUSED_VAR;
static {
Name special = Name.special("<no name provided>");
Intrinsics.checkNotNullExpressionValue(special, "special(...)");
NO_NAME_PROVIDED = special;
Name special2 = Name.special("<root package>");
Intrinsics.checkNotNullExpressionValue(special2, "special(...)");
ROOT_PACKAGE = special2;
Name identifier = Name.identifier("Companion");
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
DEFAULT_NAME_FOR_COMPANION_OBJECT = identifier;
Name identifier2 = Name.identifier("no_name_in_PSI_3d19d79d_1ba9_4cd0_b7f5_b46aa3cd5d40");
Intrinsics.checkNotNullExpressionValue(identifier2, "identifier(...)");
SAFE_IDENTIFIER_FOR_NO_NAME = identifier2;
Name special3 = Name.special("<anonymous>");
Intrinsics.checkNotNullExpressionValue(special3, "special(...)");
ANONYMOUS = special3;
Name special4 = Name.special("<unary>");
Intrinsics.checkNotNullExpressionValue(special4, "special(...)");
UNARY = special4;
Name special5 = Name.special("<this>");
Intrinsics.checkNotNullExpressionValue(special5, "special(...)");
THIS = special5;
Name special6 = Name.special("<init>");
Intrinsics.checkNotNullExpressionValue(special6, "special(...)");
INIT = special6;
Name special7 = Name.special("<iterator>");
Intrinsics.checkNotNullExpressionValue(special7, "special(...)");
ITERATOR = special7;
Name special8 = Name.special("<destruct>");
Intrinsics.checkNotNullExpressionValue(special8, "special(...)");
DESTRUCT = special8;
Name special9 = Name.special("<local>");
Intrinsics.checkNotNullExpressionValue(special9, "special(...)");
LOCAL = special9;
Name special10 = Name.special("<unused var>");
Intrinsics.checkNotNullExpressionValue(special10, "special(...)");
UNDERSCORE_FOR_UNUSED_VAR = special10;
Name special11 = Name.special("<set-?>");
Intrinsics.checkNotNullExpressionValue(special11, "special(...)");
IMPLICIT_SET_PARAMETER = special11;
Name special12 = Name.special("<array>");
Intrinsics.checkNotNullExpressionValue(special12, "special(...)");
ARRAY = special12;
Name special13 = Name.special("<receiver>");
Intrinsics.checkNotNullExpressionValue(special13, "special(...)");
RECEIVER = special13;
Name special14 = Name.special("<get-entries>");
Intrinsics.checkNotNullExpressionValue(special14, "special(...)");
ENUM_GET_ENTRIES = special14;
}
private SpecialNames() {
}
@JvmStatic
public static final Name safeIdentifier(Name name) {
return (name == null || name.isSpecial()) ? SAFE_IDENTIFIER_FOR_NO_NAME : name;
}
public final boolean isSafeIdentifier(Name name) {
Intrinsics.checkNotNullParameter(name, "name");
String asString = name.asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
return asString.length() > 0 && !name.isSpecial();
}
}

View File

@@ -0,0 +1,290 @@
package kotlin.reflect.jvm.internal.impl.name;
import com.google.android.gms.measurement.internal.a;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.MapsKt;
import kotlin.collections.SetsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.ranges.RangesKt;
@SourceDebugExtension({"SMAP\nStandardClassIds.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StandardClassIds.kt\norg/jetbrains/kotlin/name/StandardClassIds\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,287:1\n1271#2,2:288\n1285#2,4:290\n1271#2,2:294\n1285#2,4:296\n*S KotlinDebug\n*F\n+ 1 StandardClassIds.kt\norg/jetbrains/kotlin/name/StandardClassIds\n*L\n86#1:288,2\n86#1:290,4\n90#1:294,2\n90#1:296,4\n*E\n"})
/* loaded from: classes3.dex */
public final class StandardClassIds {
private static final ClassId Annotation;
private static final ClassId AnnotationRetention;
private static final ClassId AnnotationTarget;
private static final ClassId Any;
private static final ClassId Array;
private static final FqName BASE_ANNOTATION_PACKAGE;
private static final FqName BASE_COLLECTIONS_PACKAGE;
private static final FqName BASE_CONCURRENT_PACKAGE;
private static final FqName BASE_CONTRACTS_PACKAGE;
private static final FqName BASE_COROUTINES_PACKAGE;
private static final FqName BASE_ENUMS_PACKAGE;
private static final FqName BASE_INTERNAL_IR_PACKAGE;
private static final FqName BASE_INTERNAL_PACKAGE;
private static final FqName BASE_JVM_INTERNAL_PACKAGE;
private static final FqName BASE_JVM_PACKAGE;
private static final FqName BASE_KOTLIN_PACKAGE;
private static final FqName BASE_RANGES_PACKAGE;
private static final FqName BASE_REFLECT_PACKAGE;
private static final FqName BASE_TEST_PACKAGE;
private static final ClassId Boolean;
private static final ClassId Byte;
private static final ClassId Char;
private static final ClassId CharIterator;
private static final ClassId CharRange;
private static final ClassId CharSequence;
private static final ClassId Cloneable;
private static final ClassId Collection;
private static final ClassId Comparable;
private static final ClassId Continuation;
private static final ClassId DeprecationLevel;
private static final ClassId Double;
private static final ClassId Enum;
private static final ClassId EnumEntries;
private static final ClassId Float;
private static final ClassId Function;
public static final StandardClassIds INSTANCE = new StandardClassIds();
private static final ClassId Int;
private static final ClassId IntRange;
private static final ClassId Iterable;
private static final ClassId Iterator;
private static final ClassId KCallable;
private static final ClassId KClass;
private static final ClassId KFunction;
private static final ClassId KMutableProperty;
private static final ClassId KMutableProperty0;
private static final ClassId KMutableProperty1;
private static final ClassId KMutableProperty2;
private static final ClassId KProperty;
private static final ClassId KProperty0;
private static final ClassId KProperty1;
private static final ClassId KProperty2;
private static final ClassId KType;
private static final ClassId List;
private static final ClassId ListIterator;
private static final ClassId Long;
private static final ClassId LongRange;
private static final ClassId Map;
private static final ClassId MapEntry;
private static final ClassId MutableCollection;
private static final ClassId MutableIterable;
private static final ClassId MutableIterator;
private static final ClassId MutableList;
private static final ClassId MutableListIterator;
private static final ClassId MutableMap;
private static final ClassId MutableMapEntry;
private static final ClassId MutableSet;
private static final ClassId Nothing;
private static final ClassId Number;
private static final ClassId Result;
private static final ClassId Set;
private static final ClassId Short;
private static final ClassId String;
private static final ClassId Throwable;
private static final ClassId UByte;
private static final ClassId UInt;
private static final ClassId ULong;
private static final ClassId UShort;
private static final ClassId Unit;
private static final Set<FqName> builtInsPackages;
private static final Set<ClassId> constantAllowedTypes;
private static final Map<ClassId, ClassId> elementTypeByPrimitiveArrayType;
private static final Map<ClassId, ClassId> elementTypeByUnsignedArrayType;
private static final Map<ClassId, ClassId> primitiveArrayTypeByElementType;
private static final Set<ClassId> primitiveTypes;
private static final Map<ClassId, ClassId> unsignedArrayTypeByElementType;
private static final Set<ClassId> unsignedTypes;
static {
int collectionSizeOrDefault;
int collectionSizeOrDefault2;
FqName fqName = new FqName("kotlin");
BASE_KOTLIN_PACKAGE = fqName;
FqName x3 = a.x("reflect", fqName, "child(...)");
BASE_REFLECT_PACKAGE = x3;
FqName x4 = a.x("collections", fqName, "child(...)");
BASE_COLLECTIONS_PACKAGE = x4;
FqName x5 = a.x("ranges", fqName, "child(...)");
BASE_RANGES_PACKAGE = x5;
FqName x6 = a.x("jvm", fqName, "child(...)");
BASE_JVM_PACKAGE = x6;
BASE_JVM_INTERNAL_PACKAGE = a.x("internal", x6, "child(...)");
FqName x7 = a.x("annotation", fqName, "child(...)");
BASE_ANNOTATION_PACKAGE = x7;
FqName x8 = a.x("internal", fqName, "child(...)");
BASE_INTERNAL_PACKAGE = x8;
BASE_INTERNAL_IR_PACKAGE = a.x("ir", x8, "child(...)");
FqName x9 = a.x("coroutines", fqName, "child(...)");
BASE_COROUTINES_PACKAGE = x9;
BASE_ENUMS_PACKAGE = a.x("enums", fqName, "child(...)");
BASE_CONTRACTS_PACKAGE = a.x("contracts", fqName, "child(...)");
BASE_CONCURRENT_PACKAGE = a.x("concurrent", fqName, "child(...)");
BASE_TEST_PACKAGE = a.x("test", fqName, "child(...)");
builtInsPackages = SetsKt.setOf((Object[]) new FqName[]{fqName, x4, x5, x7, x3, x8, x9});
Nothing = StandardClassIdsKt.access$baseId("Nothing");
Unit = StandardClassIdsKt.access$baseId("Unit");
Any = StandardClassIdsKt.access$baseId("Any");
Enum = StandardClassIdsKt.access$baseId("Enum");
Annotation = StandardClassIdsKt.access$baseId("Annotation");
Array = StandardClassIdsKt.access$baseId("Array");
ClassId access$baseId = StandardClassIdsKt.access$baseId("Boolean");
Boolean = access$baseId;
ClassId access$baseId2 = StandardClassIdsKt.access$baseId("Char");
Char = access$baseId2;
ClassId access$baseId3 = StandardClassIdsKt.access$baseId("Byte");
Byte = access$baseId3;
ClassId access$baseId4 = StandardClassIdsKt.access$baseId("Short");
Short = access$baseId4;
ClassId access$baseId5 = StandardClassIdsKt.access$baseId("Int");
Int = access$baseId5;
ClassId access$baseId6 = StandardClassIdsKt.access$baseId("Long");
Long = access$baseId6;
ClassId access$baseId7 = StandardClassIdsKt.access$baseId("Float");
Float = access$baseId7;
ClassId access$baseId8 = StandardClassIdsKt.access$baseId("Double");
Double = access$baseId8;
UByte = StandardClassIdsKt.access$unsignedId(access$baseId3);
UShort = StandardClassIdsKt.access$unsignedId(access$baseId4);
UInt = StandardClassIdsKt.access$unsignedId(access$baseId5);
ULong = StandardClassIdsKt.access$unsignedId(access$baseId6);
CharSequence = StandardClassIdsKt.access$baseId("CharSequence");
String = StandardClassIdsKt.access$baseId("String");
Throwable = StandardClassIdsKt.access$baseId("Throwable");
Cloneable = StandardClassIdsKt.access$baseId("Cloneable");
KProperty = StandardClassIdsKt.access$reflectId("KProperty");
KMutableProperty = StandardClassIdsKt.access$reflectId("KMutableProperty");
KProperty0 = StandardClassIdsKt.access$reflectId("KProperty0");
KMutableProperty0 = StandardClassIdsKt.access$reflectId("KMutableProperty0");
KProperty1 = StandardClassIdsKt.access$reflectId("KProperty1");
KMutableProperty1 = StandardClassIdsKt.access$reflectId("KMutableProperty1");
KProperty2 = StandardClassIdsKt.access$reflectId("KProperty2");
KMutableProperty2 = StandardClassIdsKt.access$reflectId("KMutableProperty2");
KFunction = StandardClassIdsKt.access$reflectId("KFunction");
KClass = StandardClassIdsKt.access$reflectId("KClass");
KCallable = StandardClassIdsKt.access$reflectId("KCallable");
KType = StandardClassIdsKt.access$reflectId("KType");
Comparable = StandardClassIdsKt.access$baseId("Comparable");
Number = StandardClassIdsKt.access$baseId("Number");
Function = StandardClassIdsKt.access$baseId("Function");
Set<ClassId> of = SetsKt.setOf((Object[]) new ClassId[]{access$baseId, access$baseId2, access$baseId3, access$baseId4, access$baseId5, access$baseId6, access$baseId7, access$baseId8});
primitiveTypes = of;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(of, 10);
LinkedHashMap linkedHashMap = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(collectionSizeOrDefault), 16));
for (Object obj : of) {
Name shortClassName = ((ClassId) obj).getShortClassName();
Intrinsics.checkNotNullExpressionValue(shortClassName, "getShortClassName(...)");
linkedHashMap.put(obj, StandardClassIdsKt.access$primitiveArrayId(shortClassName));
}
primitiveArrayTypeByElementType = linkedHashMap;
elementTypeByPrimitiveArrayType = StandardClassIdsKt.access$inverseMap(linkedHashMap);
Set<ClassId> of2 = SetsKt.setOf((Object[]) new ClassId[]{UByte, UShort, UInt, ULong});
unsignedTypes = of2;
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(of2, 10);
LinkedHashMap linkedHashMap2 = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(collectionSizeOrDefault2), 16));
for (Object obj2 : of2) {
Name shortClassName2 = ((ClassId) obj2).getShortClassName();
Intrinsics.checkNotNullExpressionValue(shortClassName2, "getShortClassName(...)");
linkedHashMap2.put(obj2, StandardClassIdsKt.access$primitiveArrayId(shortClassName2));
}
unsignedArrayTypeByElementType = linkedHashMap2;
elementTypeByUnsignedArrayType = StandardClassIdsKt.access$inverseMap(linkedHashMap2);
constantAllowedTypes = SetsKt.plus((Set<? extends ClassId>) SetsKt.plus((Set) primitiveTypes, (Iterable) unsignedTypes), String);
Continuation = StandardClassIdsKt.access$coroutinesId("Continuation");
Iterator = StandardClassIdsKt.access$collectionsId("Iterator");
Iterable = StandardClassIdsKt.access$collectionsId("Iterable");
Collection = StandardClassIdsKt.access$collectionsId("Collection");
List = StandardClassIdsKt.access$collectionsId("List");
ListIterator = StandardClassIdsKt.access$collectionsId("ListIterator");
Set = StandardClassIdsKt.access$collectionsId("Set");
ClassId access$collectionsId = StandardClassIdsKt.access$collectionsId("Map");
Map = access$collectionsId;
MutableIterator = StandardClassIdsKt.access$collectionsId("MutableIterator");
CharIterator = StandardClassIdsKt.access$collectionsId("CharIterator");
MutableIterable = StandardClassIdsKt.access$collectionsId("MutableIterable");
MutableCollection = StandardClassIdsKt.access$collectionsId("MutableCollection");
MutableList = StandardClassIdsKt.access$collectionsId("MutableList");
MutableListIterator = StandardClassIdsKt.access$collectionsId("MutableListIterator");
MutableSet = StandardClassIdsKt.access$collectionsId("MutableSet");
ClassId access$collectionsId2 = StandardClassIdsKt.access$collectionsId("MutableMap");
MutableMap = access$collectionsId2;
ClassId createNestedClassId = access$collectionsId.createNestedClassId(Name.identifier("Entry"));
Intrinsics.checkNotNullExpressionValue(createNestedClassId, "createNestedClassId(...)");
MapEntry = createNestedClassId;
ClassId createNestedClassId2 = access$collectionsId2.createNestedClassId(Name.identifier("MutableEntry"));
Intrinsics.checkNotNullExpressionValue(createNestedClassId2, "createNestedClassId(...)");
MutableMapEntry = createNestedClassId2;
Result = StandardClassIdsKt.access$baseId("Result");
IntRange = StandardClassIdsKt.access$rangesId("IntRange");
LongRange = StandardClassIdsKt.access$rangesId("LongRange");
CharRange = StandardClassIdsKt.access$rangesId("CharRange");
AnnotationRetention = StandardClassIdsKt.access$annotationId("AnnotationRetention");
AnnotationTarget = StandardClassIdsKt.access$annotationId("AnnotationTarget");
DeprecationLevel = StandardClassIdsKt.access$baseId("DeprecationLevel");
EnumEntries = StandardClassIdsKt.access$enumsId("EnumEntries");
}
private StandardClassIds() {
}
public final ClassId getArray() {
return Array;
}
public final FqName getBASE_ANNOTATION_PACKAGE() {
return BASE_ANNOTATION_PACKAGE;
}
public final FqName getBASE_COLLECTIONS_PACKAGE() {
return BASE_COLLECTIONS_PACKAGE;
}
public final FqName getBASE_COROUTINES_PACKAGE() {
return BASE_COROUTINES_PACKAGE;
}
public final FqName getBASE_ENUMS_PACKAGE() {
return BASE_ENUMS_PACKAGE;
}
public final FqName getBASE_KOTLIN_PACKAGE() {
return BASE_KOTLIN_PACKAGE;
}
public final FqName getBASE_RANGES_PACKAGE() {
return BASE_RANGES_PACKAGE;
}
public final FqName getBASE_REFLECT_PACKAGE() {
return BASE_REFLECT_PACKAGE;
}
public final ClassId getEnumEntries() {
return EnumEntries;
}
public final ClassId getKClass() {
return KClass;
}
public final ClassId getKFunction() {
return KFunction;
}
public final ClassId getMutableList() {
return MutableList;
}
public final ClassId getMutableMap() {
return MutableMap;
}
public final ClassId getMutableSet() {
return MutableSet;
}
}

View File

@@ -0,0 +1,78 @@
package kotlin.reflect.jvm.internal.impl.name;
import com.google.android.gms.measurement.internal.a;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.MapsKt;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.ranges.RangesKt;
@SourceDebugExtension({"SMAP\nStandardClassIds.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StandardClassIds.kt\norg/jetbrains/kotlin/name/StandardClassIdsKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,287:1\n1179#2,2:288\n1253#2,4:290\n*S KotlinDebug\n*F\n+ 1 StandardClassIds.kt\norg/jetbrains/kotlin/name/StandardClassIdsKt\n*L\n286#1:288,2\n286#1:290,4\n*E\n"})
/* loaded from: classes3.dex */
public final class StandardClassIdsKt {
private static final FqName JAVA_LANG_ANNOTATION_PACKAGE;
private static final FqName JAVA_LANG_PACKAGE;
static {
FqName fqName = new FqName("java.lang");
JAVA_LANG_PACKAGE = fqName;
JAVA_LANG_ANNOTATION_PACKAGE = a.x("annotation", fqName, "child(...)");
}
public static final ClassId annotationId(String str) {
return new ClassId(StandardClassIds.INSTANCE.getBASE_ANNOTATION_PACKAGE(), Name.identifier(str));
}
public static final ClassId baseId(String str) {
return new ClassId(StandardClassIds.INSTANCE.getBASE_KOTLIN_PACKAGE(), Name.identifier(str));
}
public static final ClassId collectionsId(String str) {
return new ClassId(StandardClassIds.INSTANCE.getBASE_COLLECTIONS_PACKAGE(), Name.identifier(str));
}
public static final ClassId coroutinesId(String str) {
return new ClassId(StandardClassIds.INSTANCE.getBASE_COROUTINES_PACKAGE(), Name.identifier(str));
}
public static final ClassId enumsId(String str) {
return new ClassId(StandardClassIds.INSTANCE.getBASE_ENUMS_PACKAGE(), Name.identifier(str));
}
/* JADX WARN: Multi-variable type inference failed */
public static final <K, V> Map<V, K> inverseMap(Map<K, ? extends V> map) {
int collectionSizeOrDefault;
Set<Map.Entry<K, ? extends V>> entrySet = map.entrySet();
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(entrySet, 10);
LinkedHashMap linkedHashMap = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(collectionSizeOrDefault), 16));
Iterator<T> it = entrySet.iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
Pair pair = TuplesKt.to(entry.getValue(), entry.getKey());
linkedHashMap.put(pair.getFirst(), pair.getSecond());
}
return linkedHashMap;
}
public static final ClassId primitiveArrayId(Name name) {
StandardClassIds standardClassIds = StandardClassIds.INSTANCE;
return new ClassId(standardClassIds.getArray().getPackageFqName(), Name.identifier(name.getIdentifier() + standardClassIds.getArray().getShortClassName().getIdentifier()));
}
public static final ClassId rangesId(String str) {
return new ClassId(StandardClassIds.INSTANCE.getBASE_RANGES_PACKAGE(), Name.identifier(str));
}
public static final ClassId reflectId(String str) {
return new ClassId(StandardClassIds.INSTANCE.getBASE_REFLECT_PACKAGE(), Name.identifier(str));
}
public static final ClassId unsignedId(ClassId classId) {
return new ClassId(StandardClassIds.INSTANCE.getBASE_KOTLIN_PACKAGE(), Name.identifier("U" + classId.getShortClassName().getIdentifier()));
}
}

View File

@@ -0,0 +1,36 @@
package kotlin.reflect.jvm.internal.impl.name;
import kotlin.enums.EnumEntries;
import kotlin.enums.EnumEntriesKt;
/* 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 */
final class State {
private static final /* synthetic */ EnumEntries $ENTRIES;
private static final /* synthetic */ State[] $VALUES;
public static final State BEGINNING = new State("BEGINNING", 0);
public static final State MIDDLE = new State("MIDDLE", 1);
public static final State AFTER_DOT = new State("AFTER_DOT", 2);
private static final /* synthetic */ State[] $values() {
return new State[]{BEGINNING, MIDDLE, AFTER_DOT};
}
static {
State[] $values = $values();
$VALUES = $values;
$ENTRIES = EnumEntriesKt.enumEntries($values);
}
private State(String str, int i) {
}
public static State valueOf(String str) {
return (State) Enum.valueOf(State.class, str);
}
public static State[] values() {
return (State[]) $VALUES.clone();
}
}