soul-browser/sources/java/kotlin/ranges/URangesKt___URangesKt.java
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* Decompile and recreate Soul Browser v1.4.85 with APK CI builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix CI build: include bundled google.jks and remove PR trigger

The apktool build failed in CI because app/unknown/.../google.jks was
excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files
and commit the missing resource.

Also remove the redundant pull_request workflow trigger.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Change package ID to com.github.kaki87.soulbrowser

Rename the application ID so the rebuilt APK can be installed
alongside the original Soul Browser from Google Play.

- Update AndroidManifest package, permissions, providers, and actions
- Update R class references in smali (com/github/kaki87/soulbrowser/R)
- Update shortcuts.xml targetPackage
- Rename app label to "Soul Rebuild" for easy identification

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install compatibility: remove split APK metadata and bundle native libs

The rebuilt APK still declared requiredSplitTypes and Play Store split
metadata, causing Android to reject standalone installs as incompatible.

- Remove requiredSplitTypes and split-related manifest meta-data
- Merge native libs from all ABI splits with uncompressed storage
- Page-align before signing for extractNativeLibs=false
- Add .so to apktool doNotCompress list

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install failure: use apksigner v2/v3 and bundle arm64 native libs

Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only
produces v1 signatures, causing Android to reject the install.

- Sign with apksigner (v1+v2+v3) instead of jarsigner
- Add arm64-v8a native libraries from universal Soul Browser 1.4.79
- Set extractNativeLibs=true for reliable sideload installs
- Commit stable debug keystore for consistent signatures across builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Add committed debug keystore for consistent APK signatures

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix startup crash: use original classes2.dex desugar libraries

Apktool recompiles smali_classes2 into a broken classes2.dex, causing
ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init.

Inject the original classes2.dex (Java 8+ desugar libs) after apktool
build instead of using the recompiled version.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix missing drawable resources from density split APKs

The base APK is an app bundle module; density-specific drawables like
seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild,
causing Resources$NotFoundException at runtime.

- Merge non-9-patch resources from split APKs before apktool build
- Sync public.xml IDs from R smali only when backing files exist
- Add 713 density-specific resource IDs to public.xml

Co-authored-by: KaKi87 <KaKi87@pm.me>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 16:07:14 +02:00

534 lines
30 KiB
Java

package kotlin.ranges;
import com.google.android.gms.ads.RequestConfiguration;
import java.util.NoSuchElementException;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.UByte;
import kotlin.UInt;
import kotlin.ULong;
import kotlin.UShort;
import kotlin.internal.InlineOnly;
import kotlin.jvm.internal.IntCompanionObject;
import kotlin.jvm.internal.Intrinsics;
import kotlin.random.Random;
import kotlin.random.URandomKt;
import kotlin.ranges.UIntProgression;
import kotlin.ranges.ULongProgression;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/* JADX INFO: Access modifiers changed from: package-private */
@Metadata(d1 = {"\u0000X\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0010\n\u0002\u0010\b\n\u0002\u0010\t\n\u0002\b#\n\u0002\u0018\u0002\n\u0002\b\u0005\u001a\u0011\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0007¢\u0006\u0002\u0010\u0003\u001a\u0011\u0010\u0000\u001a\u00020\u0004*\u00020\u0005H\u0007¢\u0006\u0002\u0010\u0006\u001a\u000e\u0010\u0007\u001a\u0004\u0018\u00010\u0001*\u00020\u0002H\u0007\u001a\u000e\u0010\u0007\u001a\u0004\u0018\u00010\u0004*\u00020\u0005H\u0007\u001a\u0011\u0010\b\u001a\u00020\u0001*\u00020\u0002H\u0007¢\u0006\u0002\u0010\u0003\u001a\u0011\u0010\b\u001a\u00020\u0004*\u00020\u0005H\u0007¢\u0006\u0002\u0010\u0006\u001a\u000e\u0010\t\u001a\u0004\u0018\u00010\u0001*\u00020\u0002H\u0007\u001a\u000e\u0010\t\u001a\u0004\u0018\u00010\u0004*\u00020\u0005H\u0007\u001a\u0012\u0010\n\u001a\u00020\u0001*\u00020\u000bH\u0087\\u0006\u0002\u0010\f\u001a\u0012\u0010\n\u001a\u00020\u0004*\u00020\rH\u0087\\u0006\u0002\u0010\u000e\u001a\u0019\u0010\n\u001a\u00020\u0001*\u00020\u000b2\u0006\u0010\n\u001a\u00020\u000fH\u0007¢\u0006\u0002\u0010\u0010\u001a\u0019\u0010\n\u001a\u00020\u0004*\u00020\r2\u0006\u0010\n\u001a\u00020\u000fH\u0007¢\u0006\u0002\u0010\u0011\u001a\u000f\u0010\u0012\u001a\u0004\u0018\u00010\u0001*\u00020\u000bH\u0087\b\u001a\u000f\u0010\u0012\u001a\u0004\u0018\u00010\u0004*\u00020\rH\u0087\b\u001a\u0016\u0010\u0012\u001a\u0004\u0018\u00010\u0001*\u00020\u000b2\u0006\u0010\n\u001a\u00020\u000fH\u0007\u001a\u0016\u0010\u0012\u001a\u0004\u0018\u00010\u0004*\u00020\r2\u0006\u0010\n\u001a\u00020\u000fH\u0007\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\u000b2\b\u0010\u0015\u001a\u0004\u0018\u00010\u0001H\u0087\\u0006\u0002\b\u0016\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\r2\b\u0010\u0015\u001a\u0004\u0018\u00010\u0004H\u0087\\u0006\u0002\b\u0017\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\u000b2\u0006\u0010\u0018\u001a\u00020\u0019H\u0087\u0002¢\u0006\u0004\b\u001a\u0010\u001b\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\r2\u0006\u0010\u0018\u001a\u00020\u0019H\u0087\u0002¢\u0006\u0004\b\u001c\u0010\u001d\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\r2\u0006\u0010\u0018\u001a\u00020\u0001H\u0087\u0002¢\u0006\u0004\b\u001e\u0010\u001f\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\u000b2\u0006\u0010\u0018\u001a\u00020\u0004H\u0087\u0002¢\u0006\u0004\b \u0010!\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\u000b2\u0006\u0010\u0018\u001a\u00020\"H\u0087\u0002¢\u0006\u0004\b#\u0010$\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\r2\u0006\u0010\u0018\u001a\u00020\"H\u0087\u0002¢\u0006\u0004\b%\u0010&\u001a\u001c\u0010'\u001a\u00020\u0002*\u00020\u00192\u0006\u0010(\u001a\u00020\u0019H\u0087\u0004¢\u0006\u0004\b)\u0010*\u001a\u001c\u0010'\u001a\u00020\u0002*\u00020\u00012\u0006\u0010(\u001a\u00020\u0001H\u0087\u0004¢\u0006\u0004\b+\u0010,\u001a\u001c\u0010'\u001a\u00020\u0005*\u00020\u00042\u0006\u0010(\u001a\u00020\u0004H\u0087\u0004¢\u0006\u0004\b-\u0010.\u001a\u001c\u0010'\u001a\u00020\u0002*\u00020\"2\u0006\u0010(\u001a\u00020\"H\u0087\u0004¢\u0006\u0004\b/\u00100\u001a\f\u00101\u001a\u00020\u0002*\u00020\u0002H\u0007\u001a\f\u00101\u001a\u00020\u0005*\u00020\u0005H\u0007\u001a\u0015\u00102\u001a\u00020\u0002*\u00020\u00022\u0006\u00102\u001a\u000203H\u0087\u0004\u001a\u0015\u00102\u001a\u00020\u0005*\u00020\u00052\u0006\u00102\u001a\u000204H\u0087\u0004\u001a\u001c\u00105\u001a\u00020\u000b*\u00020\u00192\u0006\u0010(\u001a\u00020\u0019H\u0087\u0004¢\u0006\u0004\b6\u00107\u001a\u001c\u00105\u001a\u00020\u000b*\u00020\u00012\u0006\u0010(\u001a\u00020\u0001H\u0087\u0004¢\u0006\u0004\b8\u00109\u001a\u001c\u00105\u001a\u00020\r*\u00020\u00042\u0006\u0010(\u001a\u00020\u0004H\u0087\u0004¢\u0006\u0004\b:\u0010;\u001a\u001c\u00105\u001a\u00020\u000b*\u00020\"2\u0006\u0010(\u001a\u00020\"H\u0087\u0004¢\u0006\u0004\b<\u0010=\u001a\u001b\u0010>\u001a\u00020\u0001*\u00020\u00012\u0006\u0010?\u001a\u00020\u0001H\u0007¢\u0006\u0004\b@\u0010A\u001a\u001b\u0010>\u001a\u00020\u0004*\u00020\u00042\u0006\u0010?\u001a\u00020\u0004H\u0007¢\u0006\u0004\bB\u0010C\u001a\u001b\u0010>\u001a\u00020\u0019*\u00020\u00192\u0006\u0010?\u001a\u00020\u0019H\u0007¢\u0006\u0004\bD\u0010E\u001a\u001b\u0010>\u001a\u00020\"*\u00020\"2\u0006\u0010?\u001a\u00020\"H\u0007¢\u0006\u0004\bF\u0010G\u001a\u001b\u0010H\u001a\u00020\u0001*\u00020\u00012\u0006\u0010I\u001a\u00020\u0001H\u0007¢\u0006\u0004\bJ\u0010A\u001a\u001b\u0010H\u001a\u00020\u0004*\u00020\u00042\u0006\u0010I\u001a\u00020\u0004H\u0007¢\u0006\u0004\bK\u0010C\u001a\u001b\u0010H\u001a\u00020\u0019*\u00020\u00192\u0006\u0010I\u001a\u00020\u0019H\u0007¢\u0006\u0004\bL\u0010E\u001a\u001b\u0010H\u001a\u00020\"*\u00020\"2\u0006\u0010I\u001a\u00020\"H\u0007¢\u0006\u0004\bM\u0010G\u001a#\u0010N\u001a\u00020\u0001*\u00020\u00012\u0006\u0010?\u001a\u00020\u00012\u0006\u0010I\u001a\u00020\u0001H\u0007¢\u0006\u0004\bO\u0010P\u001a#\u0010N\u001a\u00020\u0004*\u00020\u00042\u0006\u0010?\u001a\u00020\u00042\u0006\u0010I\u001a\u00020\u0004H\u0007¢\u0006\u0004\bQ\u0010R\u001a#\u0010N\u001a\u00020\u0019*\u00020\u00192\u0006\u0010?\u001a\u00020\u00192\u0006\u0010I\u001a\u00020\u0019H\u0007¢\u0006\u0004\bS\u0010T\u001a#\u0010N\u001a\u00020\"*\u00020\"2\u0006\u0010?\u001a\u00020\"2\u0006\u0010I\u001a\u00020\"H\u0007¢\u0006\u0004\bU\u0010V\u001a!\u0010N\u001a\u00020\u0001*\u00020\u00012\f\u0010W\u001a\b\u0012\u0004\u0012\u00020\u00010XH\u0007¢\u0006\u0004\bY\u0010Z\u001a!\u0010N\u001a\u00020\u0004*\u00020\u00042\f\u0010W\u001a\b\u0012\u0004\u0012\u00020\u00040XH\u0007¢\u0006\u0004\b[\u0010\\¨\u0006]"}, d2 = {"first", "Lkotlin/UInt;", "Lkotlin/ranges/UIntProgression;", "(Lkotlin/ranges/UIntProgression;)I", "Lkotlin/ULong;", "Lkotlin/ranges/ULongProgression;", "(Lkotlin/ranges/ULongProgression;)J", "firstOrNull", "last", "lastOrNull", "random", "Lkotlin/ranges/UIntRange;", "(Lkotlin/ranges/UIntRange;)I", "Lkotlin/ranges/ULongRange;", "(Lkotlin/ranges/ULongRange;)J", "Lkotlin/random/Random;", "(Lkotlin/ranges/UIntRange;Lkotlin/random/Random;)I", "(Lkotlin/ranges/ULongRange;Lkotlin/random/Random;)J", "randomOrNull", "contains", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "element", "contains-biwQdVI", "contains-GYNo2lE", "value", "Lkotlin/UByte;", "contains-68kG9v0", "(Lkotlin/ranges/UIntRange;B)Z", "contains-ULb-yJY", "(Lkotlin/ranges/ULongRange;B)Z", "contains-Gab390E", "(Lkotlin/ranges/ULongRange;I)Z", "contains-fz5IDCE", "(Lkotlin/ranges/UIntRange;J)Z", "Lkotlin/UShort;", "contains-ZsK3CEQ", "(Lkotlin/ranges/UIntRange;S)Z", "contains-uhHAxoY", "(Lkotlin/ranges/ULongRange;S)Z", "downTo", "to", "downTo-Kr8caGY", "(BB)Lkotlin/ranges/UIntProgression;", "downTo-J1ME1BU", "(II)Lkotlin/ranges/UIntProgression;", "downTo-eb3DHEI", "(JJ)Lkotlin/ranges/ULongProgression;", "downTo-5PvTz6A", "(SS)Lkotlin/ranges/UIntProgression;", "reversed", "step", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "until", "until-Kr8caGY", "(BB)Lkotlin/ranges/UIntRange;", "until-J1ME1BU", "(II)Lkotlin/ranges/UIntRange;", "until-eb3DHEI", "(JJ)Lkotlin/ranges/ULongRange;", "until-5PvTz6A", "(SS)Lkotlin/ranges/UIntRange;", "coerceAtLeast", "minimumValue", "coerceAtLeast-J1ME1BU", "(II)I", "coerceAtLeast-eb3DHEI", "(JJ)J", "coerceAtLeast-Kr8caGY", "(BB)B", "coerceAtLeast-5PvTz6A", "(SS)S", "coerceAtMost", "maximumValue", "coerceAtMost-J1ME1BU", "coerceAtMost-eb3DHEI", "coerceAtMost-Kr8caGY", "coerceAtMost-5PvTz6A", "coerceIn", "coerceIn-WZ9TVnA", "(III)I", "coerceIn-sambcqE", "(JJJ)J", "coerceIn-b33U2AM", "(BBB)B", "coerceIn-VKSA0NQ", "(SSS)S", "range", "Lkotlin/ranges/ClosedRange;", "coerceIn-wuiCnnA", "(ILkotlin/ranges/ClosedRange;)I", "coerceIn-JPwROB0", "(JLkotlin/ranges/ClosedRange;)J", "kotlin-stdlib"}, k = 5, mv = {2, 2, 0}, xi = 49, xs = "kotlin/ranges/URangesKt")
/* loaded from: classes4.dex */
public class URangesKt___URangesKt {
@SinceKotlin(version = "1.5")
/* renamed from: coerceAtLeast-5PvTz6A, reason: not valid java name */
public static final short m1274coerceAtLeast5PvTz6A(short s, short s2) {
if (Intrinsics.compare(s & UShort.MAX_VALUE, 65535 & s2) < 0) {
return s2;
}
return s;
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceAtLeast-J1ME1BU, reason: not valid java name */
public static final int m1275coerceAtLeastJ1ME1BU(int i, int i2) {
if (Integer.compare(i ^ IntCompanionObject.MIN_VALUE, Integer.MIN_VALUE ^ i2) < 0) {
return i2;
}
return i;
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceAtLeast-Kr8caGY, reason: not valid java name */
public static final byte m1276coerceAtLeastKr8caGY(byte b, byte b2) {
if (Intrinsics.compare(b & UByte.MAX_VALUE, b2 & UByte.MAX_VALUE) < 0) {
return b2;
}
return b;
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceAtLeast-eb3DHEI, reason: not valid java name */
public static final long m1277coerceAtLeasteb3DHEI(long j, long j2) {
if (Long.compare(j ^ Long.MIN_VALUE, Long.MIN_VALUE ^ j2) < 0) {
return j2;
}
return j;
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceAtMost-5PvTz6A, reason: not valid java name */
public static final short m1278coerceAtMost5PvTz6A(short s, short s2) {
if (Intrinsics.compare(s & UShort.MAX_VALUE, 65535 & s2) > 0) {
return s2;
}
return s;
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceAtMost-J1ME1BU, reason: not valid java name */
public static final int m1279coerceAtMostJ1ME1BU(int i, int i2) {
if (Integer.compare(i ^ IntCompanionObject.MIN_VALUE, Integer.MIN_VALUE ^ i2) > 0) {
return i2;
}
return i;
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceAtMost-Kr8caGY, reason: not valid java name */
public static final byte m1280coerceAtMostKr8caGY(byte b, byte b2) {
if (Intrinsics.compare(b & UByte.MAX_VALUE, b2 & UByte.MAX_VALUE) > 0) {
return b2;
}
return b;
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceAtMost-eb3DHEI, reason: not valid java name */
public static final long m1281coerceAtMosteb3DHEI(long j, long j2) {
if (Long.compare(j ^ Long.MIN_VALUE, Long.MIN_VALUE ^ j2) > 0) {
return j2;
}
return j;
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceIn-JPwROB0, reason: not valid java name */
public static final long m1282coerceInJPwROB0(long j, @NotNull ClosedRange<ULong> range) {
Intrinsics.checkNotNullParameter(range, "range");
if (range instanceof ClosedFloatingPointRange) {
return ((ULong) RangesKt___RangesKt.coerceIn(ULong.m198boximpl(j), (ClosedFloatingPointRange<ULong>) range)).getData();
}
if (!range.isEmpty()) {
long j2 = j ^ Long.MIN_VALUE;
if (Long.compare(j2, range.getStart().getData() ^ Long.MIN_VALUE) < 0) {
return range.getStart().getData();
}
if (Long.compare(j2, range.getEndInclusive().getData() ^ Long.MIN_VALUE) > 0) {
return range.getEndInclusive().getData();
}
return j;
}
throw new IllegalArgumentException("Cannot coerce value to an empty range: " + range + '.');
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceIn-VKSA0NQ, reason: not valid java name */
public static final short m1283coerceInVKSA0NQ(short s, short s2, short s3) {
int i = s2 & UShort.MAX_VALUE;
int i2 = s3 & UShort.MAX_VALUE;
if (Intrinsics.compare(i, i2) <= 0) {
int i3 = 65535 & s;
if (Intrinsics.compare(i3, i) < 0) {
return s2;
}
if (Intrinsics.compare(i3, i2) > 0) {
return s3;
}
return s;
}
throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + ((Object) UShort.m355toStringimpl(s3)) + " is less than minimum " + ((Object) UShort.m355toStringimpl(s2)) + '.');
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceIn-WZ9TVnA, reason: not valid java name */
public static final int m1284coerceInWZ9TVnA(int i, int i2, int i3) {
int i4 = i2 ^ IntCompanionObject.MIN_VALUE;
int i5 = i3 ^ IntCompanionObject.MIN_VALUE;
if (Integer.compare(i4, i5) <= 0) {
int i6 = Integer.MIN_VALUE ^ i;
if (Integer.compare(i6, i4) < 0) {
return i2;
}
if (Integer.compare(i6, i5) > 0) {
return i3;
}
return i;
}
throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + ((Object) UInt.m171toStringimpl(i3)) + " is less than minimum " + ((Object) UInt.m171toStringimpl(i2)) + '.');
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceIn-b33U2AM, reason: not valid java name */
public static final byte m1285coerceInb33U2AM(byte b, byte b2, byte b3) {
int i = b2 & UByte.MAX_VALUE;
int i2 = b3 & UByte.MAX_VALUE;
if (Intrinsics.compare(i, i2) <= 0) {
int i3 = b & UByte.MAX_VALUE;
if (Intrinsics.compare(i3, i) < 0) {
return b2;
}
if (Intrinsics.compare(i3, i2) > 0) {
return b3;
}
return b;
}
throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + ((Object) UByte.m92toStringimpl(b3)) + " is less than minimum " + ((Object) UByte.m92toStringimpl(b2)) + '.');
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceIn-sambcqE, reason: not valid java name */
public static final long m1286coerceInsambcqE(long j, long j2, long j3) {
long j4 = j2 ^ Long.MIN_VALUE;
long j5 = j3 ^ Long.MIN_VALUE;
if (Long.compare(j4, j5) <= 0) {
long j6 = Long.MIN_VALUE ^ j;
if (Long.compare(j6, j4) < 0) {
return j2;
}
if (Long.compare(j6, j5) > 0) {
return j3;
}
return j;
}
throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + ((Object) ULong.m250toStringimpl(j3)) + " is less than minimum " + ((Object) ULong.m250toStringimpl(j2)) + '.');
}
@SinceKotlin(version = "1.5")
/* renamed from: coerceIn-wuiCnnA, reason: not valid java name */
public static final int m1287coerceInwuiCnnA(int i, @NotNull ClosedRange<UInt> range) {
Intrinsics.checkNotNullParameter(range, "range");
if (range instanceof ClosedFloatingPointRange) {
return ((UInt) RangesKt___RangesKt.coerceIn(UInt.m119boximpl(i), (ClosedFloatingPointRange<UInt>) range)).getData();
}
if (!range.isEmpty()) {
int data = range.getStart().getData();
int i2 = i ^ IntCompanionObject.MIN_VALUE;
if (Integer.compare(i2, data ^ IntCompanionObject.MIN_VALUE) < 0) {
return range.getStart().getData();
}
if (Integer.compare(i2, range.getEndInclusive().getData() ^ IntCompanionObject.MIN_VALUE) > 0) {
return range.getEndInclusive().getData();
}
return i;
}
throw new IllegalArgumentException("Cannot coerce value to an empty range: " + range + '.');
}
@SinceKotlin(version = "1.5")
/* renamed from: contains-68kG9v0, reason: not valid java name */
public static final boolean m1288contains68kG9v0(@NotNull UIntRange contains, byte b) {
Intrinsics.checkNotNullParameter(contains, "$this$contains");
return contains.m1261containsWZ4Q5Ns(UInt.m125constructorimpl(b & UByte.MAX_VALUE));
}
@SinceKotlin(version = "1.5")
@InlineOnly
/* renamed from: contains-GYNo2lE, reason: not valid java name */
private static final boolean m1289containsGYNo2lE(ULongRange contains, ULong uLong) {
Intrinsics.checkNotNullParameter(contains, "$this$contains");
if (uLong != null && contains.m1270containsVKZWuLQ(uLong.getData())) {
return true;
}
return false;
}
@SinceKotlin(version = "1.5")
/* renamed from: contains-Gab390E, reason: not valid java name */
public static final boolean m1290containsGab390E(@NotNull ULongRange contains, int i) {
Intrinsics.checkNotNullParameter(contains, "$this$contains");
return contains.m1270containsVKZWuLQ(ULong.m204constructorimpl(i & 4294967295L));
}
@SinceKotlin(version = "1.5")
/* renamed from: contains-ULb-yJY, reason: not valid java name */
public static final boolean m1291containsULbyJY(@NotNull ULongRange contains, byte b) {
Intrinsics.checkNotNullParameter(contains, "$this$contains");
return contains.m1270containsVKZWuLQ(ULong.m204constructorimpl(b & 255));
}
@SinceKotlin(version = "1.5")
/* renamed from: contains-ZsK3CEQ, reason: not valid java name */
public static final boolean m1292containsZsK3CEQ(@NotNull UIntRange contains, short s) {
Intrinsics.checkNotNullParameter(contains, "$this$contains");
return contains.m1261containsWZ4Q5Ns(UInt.m125constructorimpl(s & UShort.MAX_VALUE));
}
@SinceKotlin(version = "1.5")
@InlineOnly
/* renamed from: contains-biwQdVI, reason: not valid java name */
private static final boolean m1293containsbiwQdVI(UIntRange contains, UInt uInt) {
Intrinsics.checkNotNullParameter(contains, "$this$contains");
if (uInt != null && contains.m1261containsWZ4Q5Ns(uInt.getData())) {
return true;
}
return false;
}
@SinceKotlin(version = "1.5")
/* renamed from: contains-fz5IDCE, reason: not valid java name */
public static final boolean m1294containsfz5IDCE(@NotNull UIntRange contains, long j) {
Intrinsics.checkNotNullParameter(contains, "$this$contains");
if (ULong.m204constructorimpl(j >>> 32) == 0 && contains.m1261containsWZ4Q5Ns(UInt.m125constructorimpl((int) j))) {
return true;
}
return false;
}
@SinceKotlin(version = "1.5")
/* renamed from: contains-uhHAxoY, reason: not valid java name */
public static final boolean m1295containsuhHAxoY(@NotNull ULongRange contains, short s) {
Intrinsics.checkNotNullParameter(contains, "$this$contains");
return contains.m1270containsVKZWuLQ(ULong.m204constructorimpl(s & 65535));
}
@SinceKotlin(version = "1.5")
@NotNull
/* renamed from: downTo-5PvTz6A, reason: not valid java name */
public static final UIntProgression m1296downTo5PvTz6A(short s, short s2) {
return UIntProgression.INSTANCE.m1258fromClosedRangeNkh28Cs(UInt.m125constructorimpl(s & UShort.MAX_VALUE), UInt.m125constructorimpl(s2 & UShort.MAX_VALUE), -1);
}
@SinceKotlin(version = "1.5")
@NotNull
/* renamed from: downTo-J1ME1BU, reason: not valid java name */
public static final UIntProgression m1297downToJ1ME1BU(int i, int i2) {
return UIntProgression.INSTANCE.m1258fromClosedRangeNkh28Cs(i, i2, -1);
}
@SinceKotlin(version = "1.5")
@NotNull
/* renamed from: downTo-Kr8caGY, reason: not valid java name */
public static final UIntProgression m1298downToKr8caGY(byte b, byte b2) {
return UIntProgression.INSTANCE.m1258fromClosedRangeNkh28Cs(UInt.m125constructorimpl(b & UByte.MAX_VALUE), UInt.m125constructorimpl(b2 & UByte.MAX_VALUE), -1);
}
@SinceKotlin(version = "1.5")
@NotNull
/* renamed from: downTo-eb3DHEI, reason: not valid java name */
public static final ULongProgression m1299downToeb3DHEI(long j, long j2) {
return ULongProgression.INSTANCE.m1267fromClosedRange7ftBX0g(j, j2, -1L);
}
@SinceKotlin(version = "1.7")
public static final int first(@NotNull UIntProgression uIntProgression) {
Intrinsics.checkNotNullParameter(uIntProgression, "<this>");
if (!uIntProgression.isEmpty()) {
return uIntProgression.getFirst();
}
throw new NoSuchElementException("Progression " + uIntProgression + " is empty.");
}
@SinceKotlin(version = "1.7")
@Nullable
public static final UInt firstOrNull(@NotNull UIntProgression uIntProgression) {
Intrinsics.checkNotNullParameter(uIntProgression, "<this>");
if (uIntProgression.isEmpty()) {
return null;
}
return UInt.m119boximpl(uIntProgression.getFirst());
}
@SinceKotlin(version = "1.7")
public static final int last(@NotNull UIntProgression uIntProgression) {
Intrinsics.checkNotNullParameter(uIntProgression, "<this>");
if (!uIntProgression.isEmpty()) {
return uIntProgression.getLast();
}
throw new NoSuchElementException("Progression " + uIntProgression + " is empty.");
}
@SinceKotlin(version = "1.7")
@Nullable
public static final UInt lastOrNull(@NotNull UIntProgression uIntProgression) {
Intrinsics.checkNotNullParameter(uIntProgression, "<this>");
if (uIntProgression.isEmpty()) {
return null;
}
return UInt.m119boximpl(uIntProgression.getLast());
}
@SinceKotlin(version = "1.5")
@InlineOnly
private static final int random(UIntRange uIntRange) {
Intrinsics.checkNotNullParameter(uIntRange, "<this>");
return random(uIntRange, Random.INSTANCE);
}
@SinceKotlin(version = "1.5")
@InlineOnly
private static final UInt randomOrNull(UIntRange uIntRange) {
Intrinsics.checkNotNullParameter(uIntRange, "<this>");
return randomOrNull(uIntRange, Random.INSTANCE);
}
@SinceKotlin(version = "1.5")
@NotNull
public static final UIntProgression reversed(@NotNull UIntProgression uIntProgression) {
Intrinsics.checkNotNullParameter(uIntProgression, "<this>");
return UIntProgression.INSTANCE.m1258fromClosedRangeNkh28Cs(uIntProgression.getLast(), uIntProgression.getFirst(), -uIntProgression.getStep());
}
@SinceKotlin(version = "1.5")
@NotNull
public static final UIntProgression step(@NotNull UIntProgression uIntProgression, int i) {
Intrinsics.checkNotNullParameter(uIntProgression, "<this>");
RangesKt__RangesKt.checkStepIsPositive(i > 0, Integer.valueOf(i));
UIntProgression.Companion companion = UIntProgression.INSTANCE;
int first = uIntProgression.getFirst();
int last = uIntProgression.getLast();
if (uIntProgression.getStep() <= 0) {
i = -i;
}
return companion.m1258fromClosedRangeNkh28Cs(first, last, i);
}
@SinceKotlin(version = "1.5")
@NotNull
/* renamed from: until-5PvTz6A, reason: not valid java name */
public static final UIntRange m1300until5PvTz6A(short s, short s2) {
if (Intrinsics.compare(s2 & UShort.MAX_VALUE, 0) <= 0) {
return UIntRange.INSTANCE.getEMPTY();
}
return new UIntRange(UInt.m125constructorimpl(s & UShort.MAX_VALUE), UInt.m125constructorimpl(UInt.m125constructorimpl(r3) - 1), null);
}
@SinceKotlin(version = "1.5")
@NotNull
/* renamed from: until-J1ME1BU, reason: not valid java name */
public static UIntRange m1301untilJ1ME1BU(int i, int i2) {
if (Integer.compare(i2 ^ IntCompanionObject.MIN_VALUE, IntCompanionObject.MIN_VALUE) <= 0) {
return UIntRange.INSTANCE.getEMPTY();
}
return new UIntRange(i, UInt.m125constructorimpl(i2 - 1), null);
}
@SinceKotlin(version = "1.5")
@NotNull
/* renamed from: until-Kr8caGY, reason: not valid java name */
public static final UIntRange m1302untilKr8caGY(byte b, byte b2) {
if (Intrinsics.compare(b2 & UByte.MAX_VALUE, 0) <= 0) {
return UIntRange.INSTANCE.getEMPTY();
}
return new UIntRange(UInt.m125constructorimpl(b & UByte.MAX_VALUE), UInt.m125constructorimpl(UInt.m125constructorimpl(r3) - 1), null);
}
@SinceKotlin(version = "1.5")
@NotNull
/* renamed from: until-eb3DHEI, reason: not valid java name */
public static ULongRange m1303untileb3DHEI(long j, long j2) {
if (Long.compare(j2 ^ Long.MIN_VALUE, Long.MIN_VALUE) <= 0) {
return ULongRange.INSTANCE.getEMPTY();
}
return new ULongRange(j, ULong.m204constructorimpl(j2 - ULong.m204constructorimpl(1 & 4294967295L)), null);
}
@SinceKotlin(version = "1.7")
@Nullable
public static final ULong firstOrNull(@NotNull ULongProgression uLongProgression) {
Intrinsics.checkNotNullParameter(uLongProgression, "<this>");
if (uLongProgression.isEmpty()) {
return null;
}
return ULong.m198boximpl(uLongProgression.getFirst());
}
@SinceKotlin(version = "1.7")
@Nullable
public static final ULong lastOrNull(@NotNull ULongProgression uLongProgression) {
Intrinsics.checkNotNullParameter(uLongProgression, "<this>");
if (uLongProgression.isEmpty()) {
return null;
}
return ULong.m198boximpl(uLongProgression.getLast());
}
@SinceKotlin(version = "1.5")
@InlineOnly
private static final long random(ULongRange uLongRange) {
Intrinsics.checkNotNullParameter(uLongRange, "<this>");
return random(uLongRange, Random.INSTANCE);
}
@SinceKotlin(version = "1.5")
@InlineOnly
private static final ULong randomOrNull(ULongRange uLongRange) {
Intrinsics.checkNotNullParameter(uLongRange, "<this>");
return randomOrNull(uLongRange, Random.INSTANCE);
}
@SinceKotlin(version = "1.5")
@NotNull
public static final ULongProgression reversed(@NotNull ULongProgression uLongProgression) {
Intrinsics.checkNotNullParameter(uLongProgression, "<this>");
return ULongProgression.INSTANCE.m1267fromClosedRange7ftBX0g(uLongProgression.getLast(), uLongProgression.getFirst(), -uLongProgression.getStep());
}
@SinceKotlin(version = "1.5")
public static final int random(@NotNull UIntRange uIntRange, @NotNull Random random) {
Intrinsics.checkNotNullParameter(uIntRange, "<this>");
Intrinsics.checkNotNullParameter(random, "random");
try {
return URandomKt.nextUInt(random, uIntRange);
} catch (IllegalArgumentException e) {
throw new NoSuchElementException(e.getMessage());
}
}
@SinceKotlin(version = "1.5")
@Nullable
public static final UInt randomOrNull(@NotNull UIntRange uIntRange, @NotNull Random random) {
Intrinsics.checkNotNullParameter(uIntRange, "<this>");
Intrinsics.checkNotNullParameter(random, "random");
if (uIntRange.isEmpty()) {
return null;
}
return UInt.m119boximpl(URandomKt.nextUInt(random, uIntRange));
}
@SinceKotlin(version = "1.5")
@NotNull
public static final ULongProgression step(@NotNull ULongProgression uLongProgression, long j) {
Intrinsics.checkNotNullParameter(uLongProgression, "<this>");
RangesKt__RangesKt.checkStepIsPositive(j > 0, Long.valueOf(j));
ULongProgression.Companion companion = ULongProgression.INSTANCE;
long first = uLongProgression.getFirst();
long last = uLongProgression.getLast();
if (uLongProgression.getStep() <= 0) {
j = -j;
}
return companion.m1267fromClosedRange7ftBX0g(first, last, j);
}
@SinceKotlin(version = "1.7")
public static final long first(@NotNull ULongProgression uLongProgression) {
Intrinsics.checkNotNullParameter(uLongProgression, "<this>");
if (!uLongProgression.isEmpty()) {
return uLongProgression.getFirst();
}
throw new NoSuchElementException("Progression " + uLongProgression + " is empty.");
}
@SinceKotlin(version = "1.7")
public static final long last(@NotNull ULongProgression uLongProgression) {
Intrinsics.checkNotNullParameter(uLongProgression, "<this>");
if (!uLongProgression.isEmpty()) {
return uLongProgression.getLast();
}
throw new NoSuchElementException("Progression " + uLongProgression + " is empty.");
}
@SinceKotlin(version = "1.5")
public static final long random(@NotNull ULongRange uLongRange, @NotNull Random random) {
Intrinsics.checkNotNullParameter(uLongRange, "<this>");
Intrinsics.checkNotNullParameter(random, "random");
try {
return URandomKt.nextULong(random, uLongRange);
} catch (IllegalArgumentException e) {
throw new NoSuchElementException(e.getMessage());
}
}
@SinceKotlin(version = "1.5")
@Nullable
public static final ULong randomOrNull(@NotNull ULongRange uLongRange, @NotNull Random random) {
Intrinsics.checkNotNullParameter(uLongRange, "<this>");
Intrinsics.checkNotNullParameter(random, "random");
if (uLongRange.isEmpty()) {
return null;
}
return ULong.m198boximpl(URandomKt.nextULong(random, uLongRange));
}
}