package kotlin.ranges; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.exifinterface.media.ExifInterface; import java.util.NoSuchElementException; import kotlin.Deprecated; import kotlin.DeprecatedSinceKotlin; import kotlin.Metadata; import kotlin.jvm.internal.Intrinsics; import kotlin.random.Random; import kotlin.random.RandomKt; import kotlin.ranges.CharProgression; import kotlin.ranges.IntProgression; import kotlin.ranges.LongProgression; /* JADX INFO: Access modifiers changed from: package-private */ /* compiled from: _Ranges.kt */ @Metadata(d1 = {"\u0000t\n\u0002\b\u0002\n\u0002\u0010\u000f\n\u0002\b\u0002\n\u0002\u0010\u0005\n\u0002\u0010\u0006\n\u0002\u0010\u0007\n\u0002\u0010\b\n\u0002\u0010\t\n\u0002\u0010\n\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\f\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u001d\u001a'\u0010\u0000\u001a\u0002H\u0001\"\u000e\b\u0000\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010\u0002*\u0002H\u00012\u0006\u0010\u0003\u001a\u0002H\u0001¢\u0006\u0002\u0010\u0004\u001a\u0012\u0010\u0000\u001a\u00020\u0005*\u00020\u00052\u0006\u0010\u0003\u001a\u00020\u0005\u001a\u0012\u0010\u0000\u001a\u00020\u0006*\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0006\u001a\u0012\u0010\u0000\u001a\u00020\u0007*\u00020\u00072\u0006\u0010\u0003\u001a\u00020\u0007\u001a\u0012\u0010\u0000\u001a\u00020\b*\u00020\b2\u0006\u0010\u0003\u001a\u00020\b\u001a\u0012\u0010\u0000\u001a\u00020\t*\u00020\t2\u0006\u0010\u0003\u001a\u00020\t\u001a\u0012\u0010\u0000\u001a\u00020\n*\u00020\n2\u0006\u0010\u0003\u001a\u00020\n\u001a'\u0010\u000b\u001a\u0002H\u0001\"\u000e\b\u0000\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010\u0002*\u0002H\u00012\u0006\u0010\f\u001a\u0002H\u0001¢\u0006\u0002\u0010\u0004\u001a\u0012\u0010\u000b\u001a\u00020\u0005*\u00020\u00052\u0006\u0010\f\u001a\u00020\u0005\u001a\u0012\u0010\u000b\u001a\u00020\u0006*\u00020\u00062\u0006\u0010\f\u001a\u00020\u0006\u001a\u0012\u0010\u000b\u001a\u00020\u0007*\u00020\u00072\u0006\u0010\f\u001a\u00020\u0007\u001a\u0012\u0010\u000b\u001a\u00020\b*\u00020\b2\u0006\u0010\f\u001a\u00020\b\u001a\u0012\u0010\u000b\u001a\u00020\t*\u00020\t2\u0006\u0010\f\u001a\u00020\t\u001a\u0012\u0010\u000b\u001a\u00020\n*\u00020\n2\u0006\u0010\f\u001a\u00020\n\u001a3\u0010\r\u001a\u0002H\u0001\"\u000e\b\u0000\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010\u0002*\u0002H\u00012\b\u0010\u0003\u001a\u0004\u0018\u0001H\u00012\b\u0010\f\u001a\u0004\u0018\u0001H\u0001¢\u0006\u0002\u0010\u000e\u001a/\u0010\r\u001a\u0002H\u0001\"\u000e\b\u0000\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010\u0002*\u0002H\u00012\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0010H\u0007¢\u0006\u0002\u0010\u0011\u001a-\u0010\r\u001a\u0002H\u0001\"\u000e\b\u0000\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010\u0002*\u0002H\u00012\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0012¢\u0006\u0002\u0010\u0013\u001a\u001a\u0010\r\u001a\u00020\u0005*\u00020\u00052\u0006\u0010\u0003\u001a\u00020\u00052\u0006\u0010\f\u001a\u00020\u0005\u001a\u001a\u0010\r\u001a\u00020\u0006*\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00062\u0006\u0010\f\u001a\u00020\u0006\u001a\u001a\u0010\r\u001a\u00020\u0007*\u00020\u00072\u0006\u0010\u0003\u001a\u00020\u00072\u0006\u0010\f\u001a\u00020\u0007\u001a\u001a\u0010\r\u001a\u00020\b*\u00020\b2\u0006\u0010\u0003\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\b\u001a\u0018\u0010\r\u001a\u00020\b*\u00020\b2\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\b0\u0012\u001a\u001a\u0010\r\u001a\u00020\t*\u00020\t2\u0006\u0010\u0003\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\t\u001a\u0018\u0010\r\u001a\u00020\t*\u00020\t2\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\t0\u0012\u001a\u001a\u0010\r\u001a\u00020\n*\u00020\n2\u0006\u0010\u0003\u001a\u00020\n2\u0006\u0010\f\u001a\u00020\n\u001a\u001c\u0010\u0014\u001a\u00020\u0015*\u00020\u00162\b\u0010\u0017\u001a\u0004\u0018\u00010\u0018H\u0087\n¢\u0006\u0002\u0010\u0019\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00050\u00122\u0006\u0010\u001a\u001a\u00020\u0006H\u0087\u0002¢\u0006\u0002\b\u001b\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00050\u00122\u0006\u0010\u001a\u001a\u00020\u0007H\u0087\u0002¢\u0006\u0002\b\u001b\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00050\u00122\u0006\u0010\u001a\u001a\u00020\bH\u0087\u0002¢\u0006\u0002\b\u001b\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00050\u00122\u0006\u0010\u001a\u001a\u00020\tH\u0087\u0002¢\u0006\u0002\b\u001b\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00050\u00122\u0006\u0010\u001a\u001a\u00020\nH\u0087\u0002¢\u0006\u0002\b\u001b\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00060\u00122\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\u0002¢\u0006\u0002\b\u001c\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00060\u00122\u0006\u0010\u001a\u001a\u00020\u0007H\u0087\u0002¢\u0006\u0002\b\u001c\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00060\u00122\u0006\u0010\u001a\u001a\u00020\bH\u0087\u0002¢\u0006\u0002\b\u001c\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00060\u00122\u0006\u0010\u001a\u001a\u00020\tH\u0087\u0002¢\u0006\u0002\b\u001c\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00060\u00122\u0006\u0010\u001a\u001a\u00020\nH\u0087\u0002¢\u0006\u0002\b\u001c\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00070\u00122\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\u0002¢\u0006\u0002\b\u001d\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00070\u00122\u0006\u0010\u001a\u001a\u00020\u0006H\u0087\u0002¢\u0006\u0002\b\u001d\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00070\u00122\u0006\u0010\u001a\u001a\u00020\bH\u0087\u0002¢\u0006\u0002\b\u001d\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00070\u00122\u0006\u0010\u001a\u001a\u00020\tH\u0087\u0002¢\u0006\u0002\b\u001d\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00070\u00122\u0006\u0010\u001a\u001a\u00020\nH\u0087\u0002¢\u0006\u0002\b\u001d\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\b0\u00122\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\u0002¢\u0006\u0002\b\u001e\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\b0\u00122\u0006\u0010\u001a\u001a\u00020\u0006H\u0087\u0002¢\u0006\u0002\b\u001e\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\b0\u00122\u0006\u0010\u001a\u001a\u00020\u0007H\u0087\u0002¢\u0006\u0002\b\u001e\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\b0\u00122\u0006\u0010\u001a\u001a\u00020\tH\u0087\u0002¢\u0006\u0002\b\u001e\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\b0\u00122\u0006\u0010\u001a\u001a\u00020\nH\u0087\u0002¢\u0006\u0002\b\u001e\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\t0\u00122\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\u0002¢\u0006\u0002\b\u001f\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\t0\u00122\u0006\u0010\u001a\u001a\u00020\u0006H\u0087\u0002¢\u0006\u0002\b\u001f\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\t0\u00122\u0006\u0010\u001a\u001a\u00020\u0007H\u0087\u0002¢\u0006\u0002\b\u001f\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\t0\u00122\u0006\u0010\u001a\u001a\u00020\bH\u0087\u0002¢\u0006\u0002\b\u001f\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\t0\u00122\u0006\u0010\u001a\u001a\u00020\nH\u0087\u0002¢\u0006\u0002\b\u001f\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\n0\u00122\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\u0002¢\u0006\u0002\b \u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\n0\u00122\u0006\u0010\u001a\u001a\u00020\u0006H\u0087\u0002¢\u0006\u0002\b \u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\n0\u00122\u0006\u0010\u001a\u001a\u00020\u0007H\u0087\u0002¢\u0006\u0002\b \u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\n0\u00122\u0006\u0010\u001a\u001a\u00020\bH\u0087\u0002¢\u0006\u0002\b \u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\n0\u00122\u0006\u0010\u001a\u001a\u00020\tH\u0087\u0002¢\u0006\u0002\b \u001a\u0015\u0010\u0014\u001a\u00020\u0015*\u00020!2\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\n\u001a\u001c\u0010\u0014\u001a\u00020\u0015*\u00020!2\b\u0010\u0017\u001a\u0004\u0018\u00010\bH\u0087\n¢\u0006\u0002\u0010\"\u001a\u0015\u0010\u0014\u001a\u00020\u0015*\u00020!2\u0006\u0010\u001a\u001a\u00020\tH\u0087\n\u001a\u0015\u0010\u0014\u001a\u00020\u0015*\u00020!2\u0006\u0010\u001a\u001a\u00020\nH\u0087\n\u001a\u0015\u0010\u0014\u001a\u00020\u0015*\u00020#2\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\n\u001a\u0015\u0010\u0014\u001a\u00020\u0015*\u00020#2\u0006\u0010\u001a\u001a\u00020\bH\u0087\n\u001a\u001c\u0010\u0014\u001a\u00020\u0015*\u00020#2\b\u0010\u0017\u001a\u0004\u0018\u00010\tH\u0087\n¢\u0006\u0002\u0010$\u001a\u0015\u0010\u0014\u001a\u00020\u0015*\u00020#2\u0006\u0010\u001a\u001a\u00020\nH\u0087\n\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00050%2\u0006\u0010\u001a\u001a\u00020\bH\u0087\u0002¢\u0006\u0002\b\u001b\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00050%2\u0006\u0010\u001a\u001a\u00020\tH\u0087\u0002¢\u0006\u0002\b\u001b\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00050%2\u0006\u0010\u001a\u001a\u00020\nH\u0087\u0002¢\u0006\u0002\b\u001b\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\u00060%2\u0006\u0010\u001a\u001a\u00020\u0007H\u0087\u0002¢\u0006\u0002\b\u001c\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\b0%2\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\u0002¢\u0006\u0002\b\u001e\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\b0%2\u0006\u0010\u001a\u001a\u00020\tH\u0087\u0002¢\u0006\u0002\b\u001e\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\b0%2\u0006\u0010\u001a\u001a\u00020\nH\u0087\u0002¢\u0006\u0002\b\u001e\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\t0%2\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\u0002¢\u0006\u0002\b\u001f\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\t0%2\u0006\u0010\u001a\u001a\u00020\bH\u0087\u0002¢\u0006\u0002\b\u001f\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\t0%2\u0006\u0010\u001a\u001a\u00020\nH\u0087\u0002¢\u0006\u0002\b\u001f\u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\n0%2\u0006\u0010\u001a\u001a\u00020\u0005H\u0087\u0002¢\u0006\u0002\b \u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\n0%2\u0006\u0010\u001a\u001a\u00020\bH\u0087\u0002¢\u0006\u0002\b \u001a \u0010\u0014\u001a\u00020\u0015*\b\u0012\u0004\u0012\u00020\n0%2\u0006\u0010\u001a\u001a\u00020\tH\u0087\u0002¢\u0006\u0002\b \u001a\u0015\u0010&\u001a\u00020'*\u00020\u00052\u0006\u0010(\u001a\u00020\u0005H\u0086\u0004\u001a\u0015\u0010&\u001a\u00020'*\u00020\u00052\u0006\u0010(\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020)*\u00020\u00052\u0006\u0010(\u001a\u00020\tH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020'*\u00020\u00052\u0006\u0010(\u001a\u00020\nH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020**\u00020\u00182\u0006\u0010(\u001a\u00020\u0018H\u0086\u0004\u001a\u0015\u0010&\u001a\u00020'*\u00020\b2\u0006\u0010(\u001a\u00020\u0005H\u0086\u0004\u001a\u0015\u0010&\u001a\u00020'*\u00020\b2\u0006\u0010(\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020)*\u00020\b2\u0006\u0010(\u001a\u00020\tH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020'*\u00020\b2\u0006\u0010(\u001a\u00020\nH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020)*\u00020\t2\u0006\u0010(\u001a\u00020\u0005H\u0086\u0004\u001a\u0015\u0010&\u001a\u00020)*\u00020\t2\u0006\u0010(\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020)*\u00020\t2\u0006\u0010(\u001a\u00020\tH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020)*\u00020\t2\u0006\u0010(\u001a\u00020\nH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020'*\u00020\n2\u0006\u0010(\u001a\u00020\u0005H\u0086\u0004\u001a\u0015\u0010&\u001a\u00020'*\u00020\n2\u0006\u0010(\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020)*\u00020\n2\u0006\u0010(\u001a\u00020\tH\u0086\u0004\u001a\u0015\u0010&\u001a\u00020'*\u00020\n2\u0006\u0010(\u001a\u00020\nH\u0086\u0004\u001a\f\u0010+\u001a\u00020\u0018*\u00020*H\u0007\u001a\f\u0010+\u001a\u00020\b*\u00020'H\u0007\u001a\f\u0010+\u001a\u00020\t*\u00020)H\u0007\u001a\u0013\u0010,\u001a\u0004\u0018\u00010\u0018*\u00020*H\u0007¢\u0006\u0002\u0010-\u001a\u0013\u0010,\u001a\u0004\u0018\u00010\b*\u00020'H\u0007¢\u0006\u0002\u0010.\u001a\u0013\u0010,\u001a\u0004\u0018\u00010\t*\u00020)H\u0007¢\u0006\u0002\u0010/\u001a\f\u00100\u001a\u00020\u0018*\u00020*H\u0007\u001a\f\u00100\u001a\u00020\b*\u00020'H\u0007\u001a\f\u00100\u001a\u00020\t*\u00020)H\u0007\u001a\u0013\u00101\u001a\u0004\u0018\u00010\u0018*\u00020*H\u0007¢\u0006\u0002\u0010-\u001a\u0013\u00101\u001a\u0004\u0018\u00010\b*\u00020'H\u0007¢\u0006\u0002\u0010.\u001a\u0013\u00101\u001a\u0004\u0018\u00010\t*\u00020)H\u0007¢\u0006\u0002\u0010/\u001a\r\u00102\u001a\u00020\u0018*\u00020\u0016H\u0087\b\u001a\u0014\u00102\u001a\u00020\u0018*\u00020\u00162\u0006\u00102\u001a\u000203H\u0007\u001a\r\u00102\u001a\u00020\b*\u00020!H\u0087\b\u001a\u0014\u00102\u001a\u00020\b*\u00020!2\u0006\u00102\u001a\u000203H\u0007\u001a\r\u00102\u001a\u00020\t*\u00020#H\u0087\b\u001a\u0014\u00102\u001a\u00020\t*\u00020#2\u0006\u00102\u001a\u000203H\u0007\u001a\u0014\u00104\u001a\u0004\u0018\u00010\u0018*\u00020\u0016H\u0087\b¢\u0006\u0002\u00105\u001a\u001b\u00104\u001a\u0004\u0018\u00010\u0018*\u00020\u00162\u0006\u00102\u001a\u000203H\u0007¢\u0006\u0002\u00106\u001a\u0014\u00104\u001a\u0004\u0018\u00010\b*\u00020!H\u0087\b¢\u0006\u0002\u00107\u001a\u001b\u00104\u001a\u0004\u0018\u00010\b*\u00020!2\u0006\u00102\u001a\u000203H\u0007¢\u0006\u0002\u00108\u001a\u0014\u00104\u001a\u0004\u0018\u00010\t*\u00020#H\u0087\b¢\u0006\u0002\u00109\u001a\u001b\u00104\u001a\u0004\u0018\u00010\t*\u00020#2\u0006\u00102\u001a\u000203H\u0007¢\u0006\u0002\u0010:\u001a\n\u0010;\u001a\u00020**\u00020*\u001a\n\u0010;\u001a\u00020'*\u00020'\u001a\n\u0010;\u001a\u00020)*\u00020)\u001a\u0015\u0010<\u001a\u00020**\u00020*2\u0006\u0010<\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010<\u001a\u00020'*\u00020'2\u0006\u0010<\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010<\u001a\u00020)*\u00020)2\u0006\u0010<\u001a\u00020\tH\u0086\u0004\u001a\u0013\u0010=\u001a\u0004\u0018\u00010\u0005*\u00020\u0006H\u0000¢\u0006\u0002\u0010>\u001a\u0013\u0010=\u001a\u0004\u0018\u00010\u0005*\u00020\u0007H\u0000¢\u0006\u0002\u0010?\u001a\u0013\u0010=\u001a\u0004\u0018\u00010\u0005*\u00020\bH\u0000¢\u0006\u0002\u0010@\u001a\u0013\u0010=\u001a\u0004\u0018\u00010\u0005*\u00020\tH\u0000¢\u0006\u0002\u0010A\u001a\u0013\u0010=\u001a\u0004\u0018\u00010\u0005*\u00020\nH\u0000¢\u0006\u0002\u0010B\u001a\u0013\u0010C\u001a\u0004\u0018\u00010\b*\u00020\u0006H\u0000¢\u0006\u0002\u0010D\u001a\u0013\u0010C\u001a\u0004\u0018\u00010\b*\u00020\u0007H\u0000¢\u0006\u0002\u0010E\u001a\u0013\u0010C\u001a\u0004\u0018\u00010\b*\u00020\tH\u0000¢\u0006\u0002\u0010F\u001a\u0013\u0010G\u001a\u0004\u0018\u00010\t*\u00020\u0006H\u0000¢\u0006\u0002\u0010H\u001a\u0013\u0010G\u001a\u0004\u0018\u00010\t*\u00020\u0007H\u0000¢\u0006\u0002\u0010I\u001a\u0013\u0010J\u001a\u0004\u0018\u00010\n*\u00020\u0006H\u0000¢\u0006\u0002\u0010K\u001a\u0013\u0010J\u001a\u0004\u0018\u00010\n*\u00020\u0007H\u0000¢\u0006\u0002\u0010L\u001a\u0013\u0010J\u001a\u0004\u0018\u00010\n*\u00020\bH\u0000¢\u0006\u0002\u0010M\u001a\u0013\u0010J\u001a\u0004\u0018\u00010\n*\u00020\tH\u0000¢\u0006\u0002\u0010N\u001a\u0015\u0010O\u001a\u00020!*\u00020\u00052\u0006\u0010(\u001a\u00020\u0005H\u0086\u0004\u001a\u0015\u0010O\u001a\u00020!*\u00020\u00052\u0006\u0010(\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020#*\u00020\u00052\u0006\u0010(\u001a\u00020\tH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020!*\u00020\u00052\u0006\u0010(\u001a\u00020\nH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020\u0016*\u00020\u00182\u0006\u0010(\u001a\u00020\u0018H\u0086\u0004\u001a\u0015\u0010O\u001a\u00020!*\u00020\b2\u0006\u0010(\u001a\u00020\u0005H\u0086\u0004\u001a\u0015\u0010O\u001a\u00020!*\u00020\b2\u0006\u0010(\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020#*\u00020\b2\u0006\u0010(\u001a\u00020\tH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020!*\u00020\b2\u0006\u0010(\u001a\u00020\nH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020#*\u00020\t2\u0006\u0010(\u001a\u00020\u0005H\u0086\u0004\u001a\u0015\u0010O\u001a\u00020#*\u00020\t2\u0006\u0010(\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020#*\u00020\t2\u0006\u0010(\u001a\u00020\tH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020#*\u00020\t2\u0006\u0010(\u001a\u00020\nH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020!*\u00020\n2\u0006\u0010(\u001a\u00020\u0005H\u0086\u0004\u001a\u0015\u0010O\u001a\u00020!*\u00020\n2\u0006\u0010(\u001a\u00020\bH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020#*\u00020\n2\u0006\u0010(\u001a\u00020\tH\u0086\u0004\u001a\u0015\u0010O\u001a\u00020!*\u00020\n2\u0006\u0010(\u001a\u00020\nH\u0086\u0004¨\u0006P"}, d2 = {"coerceAtLeast", ExifInterface.GPS_DIRECTION_TRUE, "", "minimumValue", "(Ljava/lang/Comparable;Ljava/lang/Comparable;)Ljava/lang/Comparable;", "", "", "", "", "", "", "coerceAtMost", "maximumValue", "coerceIn", "(Ljava/lang/Comparable;Ljava/lang/Comparable;Ljava/lang/Comparable;)Ljava/lang/Comparable;", "range", "Lkotlin/ranges/ClosedFloatingPointRange;", "(Ljava/lang/Comparable;Lkotlin/ranges/ClosedFloatingPointRange;)Ljava/lang/Comparable;", "Lkotlin/ranges/ClosedRange;", "(Ljava/lang/Comparable;Lkotlin/ranges/ClosedRange;)Ljava/lang/Comparable;", "contains", "", "Lkotlin/ranges/CharRange;", "element", "", "(Lkotlin/ranges/CharRange;Ljava/lang/Character;)Z", "value", "byteRangeContains", "doubleRangeContains", "floatRangeContains", "intRangeContains", "longRangeContains", "shortRangeContains", "Lkotlin/ranges/IntRange;", "(Lkotlin/ranges/IntRange;Ljava/lang/Integer;)Z", "Lkotlin/ranges/LongRange;", "(Lkotlin/ranges/LongRange;Ljava/lang/Long;)Z", "Lkotlin/ranges/OpenEndRange;", "downTo", "Lkotlin/ranges/IntProgression;", "to", "Lkotlin/ranges/LongProgression;", "Lkotlin/ranges/CharProgression;", "first", "firstOrNull", "(Lkotlin/ranges/CharProgression;)Ljava/lang/Character;", "(Lkotlin/ranges/IntProgression;)Ljava/lang/Integer;", "(Lkotlin/ranges/LongProgression;)Ljava/lang/Long;", "last", "lastOrNull", "random", "Lkotlin/random/Random;", "randomOrNull", "(Lkotlin/ranges/CharRange;)Ljava/lang/Character;", "(Lkotlin/ranges/CharRange;Lkotlin/random/Random;)Ljava/lang/Character;", "(Lkotlin/ranges/IntRange;)Ljava/lang/Integer;", "(Lkotlin/ranges/IntRange;Lkotlin/random/Random;)Ljava/lang/Integer;", "(Lkotlin/ranges/LongRange;)Ljava/lang/Long;", "(Lkotlin/ranges/LongRange;Lkotlin/random/Random;)Ljava/lang/Long;", "reversed", "step", "toByteExactOrNull", "(D)Ljava/lang/Byte;", "(F)Ljava/lang/Byte;", "(I)Ljava/lang/Byte;", "(J)Ljava/lang/Byte;", "(S)Ljava/lang/Byte;", "toIntExactOrNull", "(D)Ljava/lang/Integer;", "(F)Ljava/lang/Integer;", "(J)Ljava/lang/Integer;", "toLongExactOrNull", "(D)Ljava/lang/Long;", "(F)Ljava/lang/Long;", "toShortExactOrNull", "(D)Ljava/lang/Short;", "(F)Ljava/lang/Short;", "(I)Ljava/lang/Short;", "(J)Ljava/lang/Short;", "until", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = ConstraintLayout.LayoutParams.Table.LAYOUT_EDITOR_ABSOLUTEX, xs = "kotlin/ranges/RangesKt") /* loaded from: classes3.dex */ public class RangesKt___RangesKt extends RangesKt__RangesKt { public static final byte coerceAtLeast(byte b, byte b2) { return b < b2 ? b2 : b; } public static final double coerceAtLeast(double d, double d2) { return d < d2 ? d2 : d; } public static final float coerceAtLeast(float f, float f2) { return f < f2 ? f2 : f; } public static final int coerceAtLeast(int i, int i2) { return i < i2 ? i2 : i; } public static final long coerceAtLeast(long j, long j2) { return j < j2 ? j2 : j; } public static final short coerceAtLeast(short s, short s2) { return s < s2 ? s2 : s; } public static final byte coerceAtMost(byte b, byte b2) { return b > b2 ? b2 : b; } public static final double coerceAtMost(double d, double d2) { return d > d2 ? d2 : d; } public static final float coerceAtMost(float f, float f2) { return f > f2 ? f2 : f; } public static final int coerceAtMost(int i, int i2) { return i > i2 ? i2 : i; } public static final long coerceAtMost(long j, long j2) { return j > j2 ? j2 : j; } public static final short coerceAtMost(short s, short s2) { return s > s2 ? s2 : s; } public static final int first(IntProgression intProgression) { Intrinsics.checkNotNullParameter(intProgression, ""); if (intProgression.isEmpty()) { throw new NoSuchElementException("Progression " + intProgression + " is empty."); } return intProgression.getFirst(); } public static final long first(LongProgression longProgression) { Intrinsics.checkNotNullParameter(longProgression, ""); if (longProgression.isEmpty()) { throw new NoSuchElementException("Progression " + longProgression + " is empty."); } return longProgression.getFirst(); } public static final char first(CharProgression charProgression) { Intrinsics.checkNotNullParameter(charProgression, ""); if (charProgression.isEmpty()) { throw new NoSuchElementException("Progression " + charProgression + " is empty."); } return charProgression.getFirst(); } public static final Integer firstOrNull(IntProgression intProgression) { Intrinsics.checkNotNullParameter(intProgression, ""); if (intProgression.isEmpty()) { return null; } return Integer.valueOf(intProgression.getFirst()); } public static final Long firstOrNull(LongProgression longProgression) { Intrinsics.checkNotNullParameter(longProgression, ""); if (longProgression.isEmpty()) { return null; } return Long.valueOf(longProgression.getFirst()); } public static final Character firstOrNull(CharProgression charProgression) { Intrinsics.checkNotNullParameter(charProgression, ""); if (charProgression.isEmpty()) { return null; } return Character.valueOf(charProgression.getFirst()); } public static final int last(IntProgression intProgression) { Intrinsics.checkNotNullParameter(intProgression, ""); if (intProgression.isEmpty()) { throw new NoSuchElementException("Progression " + intProgression + " is empty."); } return intProgression.getLast(); } public static final long last(LongProgression longProgression) { Intrinsics.checkNotNullParameter(longProgression, ""); if (longProgression.isEmpty()) { throw new NoSuchElementException("Progression " + longProgression + " is empty."); } return longProgression.getLast(); } public static final char last(CharProgression charProgression) { Intrinsics.checkNotNullParameter(charProgression, ""); if (charProgression.isEmpty()) { throw new NoSuchElementException("Progression " + charProgression + " is empty."); } return charProgression.getLast(); } public static final Integer lastOrNull(IntProgression intProgression) { Intrinsics.checkNotNullParameter(intProgression, ""); if (intProgression.isEmpty()) { return null; } return Integer.valueOf(intProgression.getLast()); } public static final Long lastOrNull(LongProgression longProgression) { Intrinsics.checkNotNullParameter(longProgression, ""); if (longProgression.isEmpty()) { return null; } return Long.valueOf(longProgression.getLast()); } public static final Character lastOrNull(CharProgression charProgression) { Intrinsics.checkNotNullParameter(charProgression, ""); if (charProgression.isEmpty()) { return null; } return Character.valueOf(charProgression.getLast()); } private static final int random(IntRange intRange) { Intrinsics.checkNotNullParameter(intRange, ""); return RangesKt.random(intRange, Random.INSTANCE); } private static final long random(LongRange longRange) { Intrinsics.checkNotNullParameter(longRange, ""); return RangesKt.random(longRange, Random.INSTANCE); } private static final char random(CharRange charRange) { Intrinsics.checkNotNullParameter(charRange, ""); return RangesKt.random(charRange, Random.INSTANCE); } public static final int random(IntRange intRange, Random random) { Intrinsics.checkNotNullParameter(intRange, ""); Intrinsics.checkNotNullParameter(random, "random"); try { return RandomKt.nextInt(random, intRange); } catch (IllegalArgumentException e) { throw new NoSuchElementException(e.getMessage()); } } public static final long random(LongRange longRange, Random random) { Intrinsics.checkNotNullParameter(longRange, ""); Intrinsics.checkNotNullParameter(random, "random"); try { return RandomKt.nextLong(random, longRange); } catch (IllegalArgumentException e) { throw new NoSuchElementException(e.getMessage()); } } public static final char random(CharRange charRange, Random random) { Intrinsics.checkNotNullParameter(charRange, ""); Intrinsics.checkNotNullParameter(random, "random"); try { return (char) random.nextInt(charRange.getFirst(), charRange.getLast() + 1); } catch (IllegalArgumentException e) { throw new NoSuchElementException(e.getMessage()); } } private static final Integer randomOrNull(IntRange intRange) { Intrinsics.checkNotNullParameter(intRange, ""); return RangesKt.randomOrNull(intRange, Random.INSTANCE); } private static final Long randomOrNull(LongRange longRange) { Intrinsics.checkNotNullParameter(longRange, ""); return RangesKt.randomOrNull(longRange, Random.INSTANCE); } private static final Character randomOrNull(CharRange charRange) { Intrinsics.checkNotNullParameter(charRange, ""); return RangesKt.randomOrNull(charRange, Random.INSTANCE); } public static final Integer randomOrNull(IntRange intRange, Random random) { Intrinsics.checkNotNullParameter(intRange, ""); Intrinsics.checkNotNullParameter(random, "random"); if (intRange.isEmpty()) { return null; } return Integer.valueOf(RandomKt.nextInt(random, intRange)); } public static final Long randomOrNull(LongRange longRange, Random random) { Intrinsics.checkNotNullParameter(longRange, ""); Intrinsics.checkNotNullParameter(random, "random"); if (longRange.isEmpty()) { return null; } return Long.valueOf(RandomKt.nextLong(random, longRange)); } public static final Character randomOrNull(CharRange charRange, Random random) { Intrinsics.checkNotNullParameter(charRange, ""); Intrinsics.checkNotNullParameter(random, "random"); if (charRange.isEmpty()) { return null; } return Character.valueOf((char) random.nextInt(charRange.getFirst(), charRange.getLast() + 1)); } private static final boolean contains(IntRange intRange, Integer num) { Intrinsics.checkNotNullParameter(intRange, ""); return num != null && intRange.contains(num.intValue()); } private static final boolean contains(LongRange longRange, Long l) { Intrinsics.checkNotNullParameter(longRange, ""); return l != null && longRange.contains(l.longValue()); } private static final boolean contains(CharRange charRange, Character ch) { Intrinsics.checkNotNullParameter(charRange, ""); return ch != null && charRange.contains(ch.charValue()); } public static final boolean intRangeContains(ClosedRange closedRange, byte b) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Integer.valueOf(b)); } public static final boolean longRangeContains(ClosedRange closedRange, byte b) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Long.valueOf(b)); } public static final boolean shortRangeContains(ClosedRange closedRange, byte b) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Short.valueOf(b)); } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean doubleRangeContains(ClosedRange closedRange, byte b) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Double.valueOf(b)); } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean floatRangeContains(ClosedRange closedRange, byte b) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Float.valueOf(b)); } public static final boolean intRangeContains(OpenEndRange openEndRange, byte b) { Intrinsics.checkNotNullParameter(openEndRange, ""); return openEndRange.contains(Integer.valueOf(b)); } public static final boolean longRangeContains(OpenEndRange openEndRange, byte b) { Intrinsics.checkNotNullParameter(openEndRange, ""); return openEndRange.contains(Long.valueOf(b)); } public static final boolean shortRangeContains(OpenEndRange openEndRange, byte b) { Intrinsics.checkNotNullParameter(openEndRange, ""); return openEndRange.contains(Short.valueOf(b)); } private static final boolean contains(IntRange intRange, byte b) { Intrinsics.checkNotNullParameter(intRange, ""); return RangesKt.intRangeContains((ClosedRange) intRange, b); } private static final boolean contains(LongRange longRange, byte b) { Intrinsics.checkNotNullParameter(longRange, ""); return RangesKt.longRangeContains((ClosedRange) longRange, b); } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean intRangeContains(ClosedRange closedRange, double d) { Intrinsics.checkNotNullParameter(closedRange, ""); Integer intExactOrNull = RangesKt.toIntExactOrNull(d); if (intExactOrNull != null) { return closedRange.contains(intExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean longRangeContains(ClosedRange closedRange, double d) { Intrinsics.checkNotNullParameter(closedRange, ""); Long longExactOrNull = RangesKt.toLongExactOrNull(d); if (longExactOrNull != null) { return closedRange.contains(longExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean byteRangeContains(ClosedRange closedRange, double d) { Intrinsics.checkNotNullParameter(closedRange, ""); Byte byteExactOrNull = RangesKt.toByteExactOrNull(d); if (byteExactOrNull != null) { return closedRange.contains(byteExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean shortRangeContains(ClosedRange closedRange, double d) { Intrinsics.checkNotNullParameter(closedRange, ""); Short shortExactOrNull = RangesKt.toShortExactOrNull(d); if (shortExactOrNull != null) { return closedRange.contains(shortExactOrNull); } return false; } public static final boolean floatRangeContains(ClosedRange closedRange, double d) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Float.valueOf((float) d)); } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean intRangeContains(ClosedRange closedRange, float f) { Intrinsics.checkNotNullParameter(closedRange, ""); Integer intExactOrNull = RangesKt.toIntExactOrNull(f); if (intExactOrNull != null) { return closedRange.contains(intExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean longRangeContains(ClosedRange closedRange, float f) { Intrinsics.checkNotNullParameter(closedRange, ""); Long longExactOrNull = RangesKt.toLongExactOrNull(f); if (longExactOrNull != null) { return closedRange.contains(longExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean byteRangeContains(ClosedRange closedRange, float f) { Intrinsics.checkNotNullParameter(closedRange, ""); Byte byteExactOrNull = RangesKt.toByteExactOrNull(f); if (byteExactOrNull != null) { return closedRange.contains(byteExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean shortRangeContains(ClosedRange closedRange, float f) { Intrinsics.checkNotNullParameter(closedRange, ""); Short shortExactOrNull = RangesKt.toShortExactOrNull(f); if (shortExactOrNull != null) { return closedRange.contains(shortExactOrNull); } return false; } public static final boolean doubleRangeContains(ClosedRange closedRange, float f) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Double.valueOf(f)); } public static final boolean doubleRangeContains(OpenEndRange openEndRange, float f) { Intrinsics.checkNotNullParameter(openEndRange, ""); return openEndRange.contains(Double.valueOf(f)); } public static final boolean longRangeContains(ClosedRange closedRange, int i) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Long.valueOf(i)); } public static final boolean byteRangeContains(ClosedRange closedRange, int i) { Intrinsics.checkNotNullParameter(closedRange, ""); Byte byteExactOrNull = RangesKt.toByteExactOrNull(i); if (byteExactOrNull != null) { return closedRange.contains(byteExactOrNull); } return false; } public static final boolean shortRangeContains(ClosedRange closedRange, int i) { Intrinsics.checkNotNullParameter(closedRange, ""); Short shortExactOrNull = RangesKt.toShortExactOrNull(i); if (shortExactOrNull != null) { return closedRange.contains(shortExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean doubleRangeContains(ClosedRange closedRange, int i) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Double.valueOf(i)); } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean floatRangeContains(ClosedRange closedRange, int i) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Float.valueOf(i)); } public static final boolean longRangeContains(OpenEndRange openEndRange, int i) { Intrinsics.checkNotNullParameter(openEndRange, ""); return openEndRange.contains(Long.valueOf(i)); } public static final boolean byteRangeContains(OpenEndRange openEndRange, int i) { Intrinsics.checkNotNullParameter(openEndRange, ""); Byte byteExactOrNull = RangesKt.toByteExactOrNull(i); if (byteExactOrNull != null) { return openEndRange.contains(byteExactOrNull); } return false; } public static final boolean shortRangeContains(OpenEndRange openEndRange, int i) { Intrinsics.checkNotNullParameter(openEndRange, ""); Short shortExactOrNull = RangesKt.toShortExactOrNull(i); if (shortExactOrNull != null) { return openEndRange.contains(shortExactOrNull); } return false; } private static final boolean contains(LongRange longRange, int i) { Intrinsics.checkNotNullParameter(longRange, ""); return RangesKt.longRangeContains((ClosedRange) longRange, i); } public static final boolean intRangeContains(ClosedRange closedRange, long j) { Intrinsics.checkNotNullParameter(closedRange, ""); Integer intExactOrNull = RangesKt.toIntExactOrNull(j); if (intExactOrNull != null) { return closedRange.contains(intExactOrNull); } return false; } public static final boolean byteRangeContains(ClosedRange closedRange, long j) { Intrinsics.checkNotNullParameter(closedRange, ""); Byte byteExactOrNull = RangesKt.toByteExactOrNull(j); if (byteExactOrNull != null) { return closedRange.contains(byteExactOrNull); } return false; } public static final boolean shortRangeContains(ClosedRange closedRange, long j) { Intrinsics.checkNotNullParameter(closedRange, ""); Short shortExactOrNull = RangesKt.toShortExactOrNull(j); if (shortExactOrNull != null) { return closedRange.contains(shortExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean doubleRangeContains(ClosedRange closedRange, long j) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Double.valueOf(j)); } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean floatRangeContains(ClosedRange closedRange, long j) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Float.valueOf((float) j)); } public static final boolean intRangeContains(OpenEndRange openEndRange, long j) { Intrinsics.checkNotNullParameter(openEndRange, ""); Integer intExactOrNull = RangesKt.toIntExactOrNull(j); if (intExactOrNull != null) { return openEndRange.contains(intExactOrNull); } return false; } public static final boolean byteRangeContains(OpenEndRange openEndRange, long j) { Intrinsics.checkNotNullParameter(openEndRange, ""); Byte byteExactOrNull = RangesKt.toByteExactOrNull(j); if (byteExactOrNull != null) { return openEndRange.contains(byteExactOrNull); } return false; } public static final boolean shortRangeContains(OpenEndRange openEndRange, long j) { Intrinsics.checkNotNullParameter(openEndRange, ""); Short shortExactOrNull = RangesKt.toShortExactOrNull(j); if (shortExactOrNull != null) { return openEndRange.contains(shortExactOrNull); } return false; } private static final boolean contains(IntRange intRange, long j) { Intrinsics.checkNotNullParameter(intRange, ""); return RangesKt.intRangeContains((ClosedRange) intRange, j); } public static final boolean intRangeContains(ClosedRange closedRange, short s) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Integer.valueOf(s)); } public static final boolean longRangeContains(ClosedRange closedRange, short s) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Long.valueOf(s)); } public static final boolean byteRangeContains(ClosedRange closedRange, short s) { Intrinsics.checkNotNullParameter(closedRange, ""); Byte byteExactOrNull = RangesKt.toByteExactOrNull(s); if (byteExactOrNull != null) { return closedRange.contains(byteExactOrNull); } return false; } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean doubleRangeContains(ClosedRange closedRange, short s) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Double.valueOf(s)); } @Deprecated(message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.") @DeprecatedSinceKotlin(errorSince = "1.4", hiddenSince = "1.5", warningSince = "1.3") public static final /* synthetic */ boolean floatRangeContains(ClosedRange closedRange, short s) { Intrinsics.checkNotNullParameter(closedRange, ""); return closedRange.contains(Float.valueOf(s)); } public static final boolean intRangeContains(OpenEndRange openEndRange, short s) { Intrinsics.checkNotNullParameter(openEndRange, ""); return openEndRange.contains(Integer.valueOf(s)); } public static final boolean longRangeContains(OpenEndRange openEndRange, short s) { Intrinsics.checkNotNullParameter(openEndRange, ""); return openEndRange.contains(Long.valueOf(s)); } public static final boolean byteRangeContains(OpenEndRange openEndRange, short s) { Intrinsics.checkNotNullParameter(openEndRange, ""); Byte byteExactOrNull = RangesKt.toByteExactOrNull(s); if (byteExactOrNull != null) { return openEndRange.contains(byteExactOrNull); } return false; } private static final boolean contains(IntRange intRange, short s) { Intrinsics.checkNotNullParameter(intRange, ""); return RangesKt.intRangeContains((ClosedRange) intRange, s); } private static final boolean contains(LongRange longRange, short s) { Intrinsics.checkNotNullParameter(longRange, ""); return RangesKt.longRangeContains((ClosedRange) longRange, s); } public static final IntProgression downTo(int i, byte b) { return IntProgression.INSTANCE.fromClosedRange(i, b, -1); } public static final LongProgression downTo(long j, byte b) { return LongProgression.INSTANCE.fromClosedRange(j, b, -1L); } public static final IntProgression downTo(byte b, byte b2) { return IntProgression.INSTANCE.fromClosedRange(b, b2, -1); } public static final IntProgression downTo(short s, byte b) { return IntProgression.INSTANCE.fromClosedRange(s, b, -1); } public static final CharProgression downTo(char c, char c2) { return CharProgression.INSTANCE.fromClosedRange(c, c2, -1); } public static final IntProgression downTo(int i, int i2) { return IntProgression.INSTANCE.fromClosedRange(i, i2, -1); } public static final LongProgression downTo(long j, int i) { return LongProgression.INSTANCE.fromClosedRange(j, i, -1L); } public static final IntProgression downTo(byte b, int i) { return IntProgression.INSTANCE.fromClosedRange(b, i, -1); } public static final IntProgression downTo(short s, int i) { return IntProgression.INSTANCE.fromClosedRange(s, i, -1); } public static final LongProgression downTo(int i, long j) { return LongProgression.INSTANCE.fromClosedRange(i, j, -1L); } public static final LongProgression downTo(long j, long j2) { return LongProgression.INSTANCE.fromClosedRange(j, j2, -1L); } public static final LongProgression downTo(byte b, long j) { return LongProgression.INSTANCE.fromClosedRange(b, j, -1L); } public static final LongProgression downTo(short s, long j) { return LongProgression.INSTANCE.fromClosedRange(s, j, -1L); } public static final IntProgression downTo(int i, short s) { return IntProgression.INSTANCE.fromClosedRange(i, s, -1); } public static final LongProgression downTo(long j, short s) { return LongProgression.INSTANCE.fromClosedRange(j, s, -1L); } public static final IntProgression downTo(byte b, short s) { return IntProgression.INSTANCE.fromClosedRange(b, s, -1); } public static final IntProgression downTo(short s, short s2) { return IntProgression.INSTANCE.fromClosedRange(s, s2, -1); } public static final IntProgression reversed(IntProgression intProgression) { Intrinsics.checkNotNullParameter(intProgression, ""); return IntProgression.INSTANCE.fromClosedRange(intProgression.getLast(), intProgression.getFirst(), -intProgression.getStep()); } public static final LongProgression reversed(LongProgression longProgression) { Intrinsics.checkNotNullParameter(longProgression, ""); return LongProgression.INSTANCE.fromClosedRange(longProgression.getLast(), longProgression.getFirst(), -longProgression.getStep()); } public static final CharProgression reversed(CharProgression charProgression) { Intrinsics.checkNotNullParameter(charProgression, ""); return CharProgression.INSTANCE.fromClosedRange(charProgression.getLast(), charProgression.getFirst(), -charProgression.getStep()); } public static final IntProgression step(IntProgression intProgression, int i) { Intrinsics.checkNotNullParameter(intProgression, ""); RangesKt.checkStepIsPositive(i > 0, Integer.valueOf(i)); IntProgression.Companion companion = IntProgression.INSTANCE; int first = intProgression.getFirst(); int last = intProgression.getLast(); if (intProgression.getStep() <= 0) { i = -i; } return companion.fromClosedRange(first, last, i); } public static final LongProgression step(LongProgression longProgression, long j) { Intrinsics.checkNotNullParameter(longProgression, ""); RangesKt.checkStepIsPositive(j > 0, Long.valueOf(j)); LongProgression.Companion companion = LongProgression.INSTANCE; long first = longProgression.getFirst(); long last = longProgression.getLast(); if (longProgression.getStep() <= 0) { j = -j; } return companion.fromClosedRange(first, last, j); } public static final CharProgression step(CharProgression charProgression, int i) { Intrinsics.checkNotNullParameter(charProgression, ""); RangesKt.checkStepIsPositive(i > 0, Integer.valueOf(i)); CharProgression.Companion companion = CharProgression.INSTANCE; char first = charProgression.getFirst(); char last = charProgression.getLast(); if (charProgression.getStep() <= 0) { i = -i; } return companion.fromClosedRange(first, last, i); } public static final Byte toByteExactOrNull(int i) { if (new IntRange(-128, 127).contains(i)) { return Byte.valueOf((byte) i); } return null; } public static final Byte toByteExactOrNull(long j) { if (new LongRange(-128L, 127L).contains(j)) { return Byte.valueOf((byte) j); } return null; } public static final Byte toByteExactOrNull(short s) { if (RangesKt.intRangeContains((ClosedRange) new IntRange(-128, 127), s)) { return Byte.valueOf((byte) s); } return null; } public static final Byte toByteExactOrNull(double d) { if (-128.0d > d || d > 127.0d) { return null; } return Byte.valueOf((byte) d); } public static final Byte toByteExactOrNull(float f) { if (-128.0f > f || f > 127.0f) { return null; } return Byte.valueOf((byte) f); } public static final Integer toIntExactOrNull(long j) { if (new LongRange(-2147483648L, 2147483647L).contains(j)) { return Integer.valueOf((int) j); } return null; } public static final Integer toIntExactOrNull(double d) { if (-2.147483648E9d > d || d > 2.147483647E9d) { return null; } return Integer.valueOf((int) d); } public static final Integer toIntExactOrNull(float f) { if (-2.1474836E9f > f || f > 2.1474836E9f) { return null; } return Integer.valueOf((int) f); } public static final Long toLongExactOrNull(double d) { if (-9.223372036854776E18d > d || d > 9.223372036854776E18d) { return null; } return Long.valueOf((long) d); } public static final Long toLongExactOrNull(float f) { if (-9.223372E18f > f || f > 9.223372E18f) { return null; } return Long.valueOf(f); } public static final Short toShortExactOrNull(int i) { if (new IntRange(-32768, 32767).contains(i)) { return Short.valueOf((short) i); } return null; } public static final Short toShortExactOrNull(long j) { if (new LongRange(-32768L, 32767L).contains(j)) { return Short.valueOf((short) j); } return null; } public static final Short toShortExactOrNull(double d) { if (-32768.0d > d || d > 32767.0d) { return null; } return Short.valueOf((short) d); } public static final Short toShortExactOrNull(float f) { if (-32768.0f > f || f > 32767.0f) { return null; } return Short.valueOf((short) f); } public static final IntRange until(int i, byte b) { return new IntRange(i, b - 1); } public static final LongRange until(long j, byte b) { return new LongRange(j, b - 1); } public static final IntRange until(byte b, byte b2) { return new IntRange(b, b2 - 1); } public static final IntRange until(short s, byte b) { return new IntRange(s, b - 1); } public static final CharRange until(char c, char c2) { return Intrinsics.compare((int) c2, 0) <= 0 ? CharRange.INSTANCE.getEMPTY() : new CharRange(c, (char) (c2 - 1)); } public static final IntRange until(int i, int i2) { if (i2 <= Integer.MIN_VALUE) { return IntRange.INSTANCE.getEMPTY(); } return new IntRange(i, i2 - 1); } public static final LongRange until(long j, int i) { return new LongRange(j, i - 1); } public static final IntRange until(byte b, int i) { if (i <= Integer.MIN_VALUE) { return IntRange.INSTANCE.getEMPTY(); } return new IntRange(b, i - 1); } public static final IntRange until(short s, int i) { if (i <= Integer.MIN_VALUE) { return IntRange.INSTANCE.getEMPTY(); } return new IntRange(s, i - 1); } public static final LongRange until(int i, long j) { if (j <= Long.MIN_VALUE) { return LongRange.INSTANCE.getEMPTY(); } return new LongRange(i, j - 1); } public static final LongRange until(long j, long j2) { if (j2 <= Long.MIN_VALUE) { return LongRange.INSTANCE.getEMPTY(); } return new LongRange(j, j2 - 1); } public static final LongRange until(byte b, long j) { if (j <= Long.MIN_VALUE) { return LongRange.INSTANCE.getEMPTY(); } return new LongRange(b, j - 1); } public static final LongRange until(short s, long j) { if (j <= Long.MIN_VALUE) { return LongRange.INSTANCE.getEMPTY(); } return new LongRange(s, j - 1); } public static final IntRange until(int i, short s) { return new IntRange(i, s - 1); } public static final LongRange until(long j, short s) { return new LongRange(j, s - 1); } public static final IntRange until(byte b, short s) { return new IntRange(b, s - 1); } public static final IntRange until(short s, short s2) { return new IntRange(s, s2 - 1); } public static final > T coerceAtLeast(T t, T minimumValue) { Intrinsics.checkNotNullParameter(t, ""); Intrinsics.checkNotNullParameter(minimumValue, "minimumValue"); return t.compareTo(minimumValue) < 0 ? minimumValue : t; } public static final > T coerceAtMost(T t, T maximumValue) { Intrinsics.checkNotNullParameter(t, ""); Intrinsics.checkNotNullParameter(maximumValue, "maximumValue"); return t.compareTo(maximumValue) > 0 ? maximumValue : t; } public static final > T coerceIn(T t, T t2, T t3) { Intrinsics.checkNotNullParameter(t, ""); if (t2 != null && t3 != null) { if (t2.compareTo(t3) > 0) { throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + t3 + " is less than minimum " + t2 + '.'); } if (t.compareTo(t2) < 0) { return t2; } if (t.compareTo(t3) > 0) { return t3; } } else { if (t2 != null && t.compareTo(t2) < 0) { return t2; } if (t3 != null && t.compareTo(t3) > 0) { return t3; } } return t; } public static final byte coerceIn(byte b, byte b2, byte b3) { if (b2 <= b3) { return b < b2 ? b2 : b > b3 ? b3 : b; } throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + ((int) b3) + " is less than minimum " + ((int) b2) + '.'); } public static final short coerceIn(short s, short s2, short s3) { if (s2 <= s3) { return s < s2 ? s2 : s > s3 ? s3 : s; } throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + ((int) s3) + " is less than minimum " + ((int) s2) + '.'); } public static final int coerceIn(int i, int i2, int i3) { if (i2 <= i3) { return i < i2 ? i2 : i > i3 ? i3 : i; } throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + i3 + " is less than minimum " + i2 + '.'); } public static final long coerceIn(long j, long j2, long j3) { if (j2 <= j3) { return j < j2 ? j2 : j > j3 ? j3 : j; } throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + j3 + " is less than minimum " + j2 + '.'); } public static final float coerceIn(float f, float f2, float f3) { if (f2 <= f3) { return f < f2 ? f2 : f > f3 ? f3 : f; } throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + f3 + " is less than minimum " + f2 + '.'); } public static final double coerceIn(double d, double d2, double d3) { if (d2 <= d3) { return d < d2 ? d2 : d > d3 ? d3 : d; } throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + d3 + " is less than minimum " + d2 + '.'); } public static final > T coerceIn(T t, ClosedFloatingPointRange range) { Intrinsics.checkNotNullParameter(t, ""); Intrinsics.checkNotNullParameter(range, "range"); if (range.isEmpty()) { throw new IllegalArgumentException("Cannot coerce value to an empty range: " + range + '.'); } return (!range.lessThanOrEquals(t, range.getStart()) || range.lessThanOrEquals(range.getStart(), t)) ? (!range.lessThanOrEquals(range.getEndInclusive(), t) || range.lessThanOrEquals(t, range.getEndInclusive())) ? t : range.getEndInclusive() : range.getStart(); } public static final > T coerceIn(T t, ClosedRange range) { Intrinsics.checkNotNullParameter(t, ""); Intrinsics.checkNotNullParameter(range, "range"); if (range instanceof ClosedFloatingPointRange) { return (T) RangesKt.coerceIn((Comparable) t, (ClosedFloatingPointRange) range); } if (range.isEmpty()) { throw new IllegalArgumentException("Cannot coerce value to an empty range: " + range + '.'); } return t.compareTo(range.getStart()) < 0 ? range.getStart() : t.compareTo(range.getEndInclusive()) > 0 ? range.getEndInclusive() : t; } public static final int coerceIn(int i, ClosedRange range) { Intrinsics.checkNotNullParameter(range, "range"); if (range instanceof ClosedFloatingPointRange) { return ((Number) RangesKt.coerceIn(Integer.valueOf(i), (ClosedFloatingPointRange) range)).intValue(); } if (range.isEmpty()) { throw new IllegalArgumentException("Cannot coerce value to an empty range: " + range + '.'); } return i < range.getStart().intValue() ? range.getStart().intValue() : i > range.getEndInclusive().intValue() ? range.getEndInclusive().intValue() : i; } public static final long coerceIn(long j, ClosedRange range) { Intrinsics.checkNotNullParameter(range, "range"); if (range instanceof ClosedFloatingPointRange) { return ((Number) RangesKt.coerceIn(Long.valueOf(j), (ClosedFloatingPointRange) range)).longValue(); } if (range.isEmpty()) { throw new IllegalArgumentException("Cannot coerce value to an empty range: " + range + '.'); } return j < range.getStart().longValue() ? range.getStart().longValue() : j > range.getEndInclusive().longValue() ? range.getEndInclusive().longValue() : j; } }