Rabbit-R1/switch port/java/sources/kotlin/time/Duration.java
2024-05-21 17:08:36 -04:00

1046 lines
70 KiB
Java
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package kotlin.time;
import androidx.exifinterface.media.ExifInterface;
import androidx.media3.exoplayer.upstream.CmcdHeadersFactory;
import kotlin.Deprecated;
import kotlin.DeprecatedSinceKotlin;
import kotlin.Metadata;
import kotlin.ReplaceWith;
import kotlin.comparisons.ComparisonsKt;
import kotlin.jvm.JvmInline;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.functions.Function4;
import kotlin.jvm.functions.Function5;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.math.MathKt;
import kotlin.ranges.LongRange;
import kotlin.ranges.RangesKt;
import kotlin.text.StringsKt;
/* compiled from: Duration.kt */
@Metadata(d1 = {"\u0000n\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0000\n\u0002\u0010\t\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u0006\n\u0002\b-\n\u0002\u0018\u0002\n\u0002\b\u0017\n\u0002\u0010\u000b\n\u0002\u0010\u0000\n\u0002\b\u001b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000e\n\u0002\b\u0012\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\b\u0087@\u0018\u0000 ¦\u00012\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0002¦\u0001B\u0011\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0004\b\u0004\u0010\u0005J\"\u0010D\u001a\u00020\u00002\u0006\u0010E\u001a\u00020\u00032\u0006\u0010F\u001a\u00020\u0003H\u0002ø\u0001\u0000¢\u0006\u0004\bG\u0010HJ\u0018\u0010I\u001a\u00020\t2\u0006\u0010J\u001a\u00020\u0000H\u0096\u0002¢\u0006\u0004\bK\u0010LJ\u001b\u0010M\u001a\u00020\u00002\u0006\u0010N\u001a\u00020\u000fH\u0086\u0002ø\u0001\u0000¢\u0006\u0004\bO\u0010PJ\u001b\u0010M\u001a\u00020\u00002\u0006\u0010N\u001a\u00020\tH\u0086\u0002ø\u0001\u0000¢\u0006\u0004\bO\u0010QJ\u0018\u0010M\u001a\u00020\u000f2\u0006\u0010J\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\bR\u0010SJ\u001a\u0010T\u001a\u00020U2\b\u0010J\u001a\u0004\u0018\u00010VHÖ\u0003¢\u0006\u0004\bW\u0010XJ\u0010\u0010Y\u001a\u00020\tHÖ\u0001¢\u0006\u0004\bZ\u0010\rJ\r\u0010[\u001a\u00020U¢\u0006\u0004\b\\\u0010]J\u000f\u0010^\u001a\u00020UH\u0002¢\u0006\u0004\b_\u0010]J\u000f\u0010`\u001a\u00020UH\u0002¢\u0006\u0004\ba\u0010]J\r\u0010b\u001a\u00020U¢\u0006\u0004\bc\u0010]J\r\u0010d\u001a\u00020U¢\u0006\u0004\be\u0010]J\r\u0010f\u001a\u00020U¢\u0006\u0004\bg\u0010]J\u0018\u0010h\u001a\u00020\u00002\u0006\u0010J\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\bi\u0010jJ\u0018\u0010k\u001a\u00020\u00002\u0006\u0010J\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\bl\u0010jJ\u001b\u0010m\u001a\u00020\u00002\u0006\u0010N\u001a\u00020\u000fH\u0086\u0002ø\u0001\u0000¢\u0006\u0004\bn\u0010PJ\u001b\u0010m\u001a\u00020\u00002\u0006\u0010N\u001a\u00020\tH\u0086\u0002ø\u0001\u0000¢\u0006\u0004\bn\u0010QJ\u009d\u0001\u0010o\u001a\u0002Hp\"\u0004\b\u0000\u0010p2u\u0010q\u001aq\u0012\u0013\u0012\u00110\u0003¢\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(u\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(v\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(w\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(x\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(y\u0012\u0004\u0012\u0002Hp0rH\u0086\\u0001\u0001\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0004\bz\u0010{J\u0088\u0001\u0010o\u001a\u0002Hp\"\u0004\b\u0000\u0010p2`\u0010q\u001a\\\u0012\u0013\u0012\u00110\u0003¢\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(v\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(w\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(x\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(y\u0012\u0004\u0012\u0002Hp0|H\u0086\\u0001\u0001\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0004\bz\u0010}Js\u0010o\u001a\u0002Hp\"\u0004\b\u0000\u0010p2K\u0010q\u001aG\u0012\u0013\u0012\u00110\u0003¢\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(w\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(x\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(y\u0012\u0004\u0012\u0002Hp0~H\u0086\\u0001\u0001\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0004\bz\u0010\u007fJ`\u0010o\u001a\u0002Hp\"\u0004\b\u0000\u0010p27\u0010q\u001a3\u0012\u0013\u0012\u00110\u0003¢\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(x\u0012\u0013\u0012\u00110\\u0006\f\bs\u0012\b\bt\u0012\u0004\b\b(y\u0012\u0004\u0012\u0002Hp0\u0080\u0001H\u0086\\u0001\u0001\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0005\bz\u0010\u0081\u0001J\u0019\u0010\u0082\u0001\u001a\u00020\u000f2\u0007\u0010\u0083\u0001\u001a\u00020=¢\u0006\u0006\b\u0084\u0001\u0010\u0085\u0001J\u0019\u0010\u0086\u0001\u001a\u00020\t2\u0007\u0010\u0083\u0001\u001a\u00020=¢\u0006\u0006\b\u0087\u0001\u0010\u0088\u0001J\u0011\u0010\u0089\u0001\u001a\u00030\u008a\u0001¢\u0006\u0006\b\u008b\u0001\u0010\u008c\u0001J\u0019\u0010\u008d\u0001\u001a\u00020\u00032\u0007\u0010\u0083\u0001\u001a\u00020=¢\u0006\u0006\b\u008e\u0001\u0010\u008f\u0001J\u0011\u0010\u0090\u0001\u001a\u00020\u0003H\u0007¢\u0006\u0005\b\u0091\u0001\u0010\u0005J\u0011\u0010\u0092\u0001\u001a\u00020\u0003H\u0007¢\u0006\u0005\b\u0093\u0001\u0010\u0005J\u0013\u0010\u0094\u0001\u001a\u00030\u008a\u0001H\u0016¢\u0006\u0006\b\u0095\u0001\u0010\u008c\u0001J%\u0010\u0094\u0001\u001a\u00030\u008a\u00012\u0007\u0010\u0083\u0001\u001a\u00020=2\t\b\u0002\u0010\u0096\u0001\u001a\u00020\\u0006\u0006\b\u0095\u0001\u0010\u0097\u0001J\u001e\u0010\u0098\u0001\u001a\u00020\u00002\u0007\u0010\u0083\u0001\u001a\u00020=H\u0000ø\u0001\u0000¢\u0006\u0006\b\u0099\u0001\u0010\u008f\u0001J\u0015\u0010\u009a\u0001\u001a\u00020\u0000H\u0086\u0002ø\u0001\u0000¢\u0006\u0005\b\u009b\u0001\u0010\u0005JK\u0010\u009c\u0001\u001a\u00030\u009d\u0001*\b0\u009e\u0001j\u0003`\u009f\u00012\u0007\u0010 \u0001\u001a\u00020\t2\u0007\u0010¡\u0001\u001a\u00020\t2\u0007\u0010¢\u0001\u001a\u00020\t2\b\u0010\u0083\u0001\u001a\u00030\u008a\u00012\u0007\u0010£\u0001\u001a\u00020UH\u0002¢\u0006\u0006\\u0001\u0010¥\u0001R\u0014\u0010\u0006\u001a\u00020\u00008Fø\u0001\u0000¢\u0006\u0006\u001a\u0004\b\u0007\u0010\u0005R\u001a\u0010\b\u001a\u00020\t8@X\u0081\u0004¢\u0006\f\u0012\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\rR\u001a\u0010\u000e\u001a\u00020\u000f8FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0010\u0010\u000b\u001a\u0004\b\u0011\u0010\u0012R\u001a\u0010\u0013\u001a\u00020\u000f8FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0014\u0010\u000b\u001a\u0004\b\u0015\u0010\u0012R\u001a\u0010\u0016\u001a\u00020\u000f8FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0017\u0010\u000b\u001a\u0004\b\u0018\u0010\u0012R\u001a\u0010\u0019\u001a\u00020\u000f8FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u001a\u0010\u000b\u001a\u0004\b\u001b\u0010\u0012R\u001a\u0010\u001c\u001a\u00020\u000f8FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u001d\u0010\u000b\u001a\u0004\b\u001e\u0010\u0012R\u001a\u0010\u001f\u001a\u00020\u000f8FX\u0087\u0004¢\u0006\f\u0012\u0004\b \u0010\u000b\u001a\u0004\b!\u0010\u0012R\u001a\u0010\"\u001a\u00020\u000f8FX\u0087\u0004¢\u0006\f\u0012\u0004\b#\u0010\u000b\u001a\u0004\b$\u0010\u0012R\u0011\u0010%\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\b&\u0010\u0005R\u0011\u0010'\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\b(\u0010\u0005R\u0011\u0010)\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\b*\u0010\u0005R\u0011\u0010+\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\b,\u0010\u0005R\u0011\u0010-\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\b.\u0010\u0005R\u0011\u0010/\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\b0\u0010\u0005R\u0011\u00101\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\b2\u0010\u0005R\u001a\u00103\u001a\u00020\t8@X\u0081\u0004¢\u0006\f\u0012\u0004\b4\u0010\u000b\u001a\u0004\b5\u0010\rR\u001a\u00106\u001a\u00020\t8@X\u0081\u0004¢\u0006\f\u0012\u0004\b7\u0010\u000b\u001a\u0004\b8\u0010\rR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u00109\u001a\u00020\t8@X\u0081\u0004¢\u0006\f\u0012\u0004\b:\u0010\u000b\u001a\u0004\b;\u0010\rR\u0014\u0010<\u001a\u00020=8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b>\u0010?R\u0015\u0010@\u001a\u00020\t8Â\u0002X\u0082\u0004¢\u0006\u0006\u001a\u0004\bA\u0010\rR\u0014\u0010B\u001a\u00020\u00038BX\u0082\u0004¢\u0006\u0006\u001a\u0004\bC\u0010\u0005\u0088\u0001\u0002\u0092\u0001\u00020\u0003\u0082\u0002\u000b\n\u0002\b!\n\u0005\b\u009920\u0001¨\u0006§\u0001"}, d2 = {"Lkotlin/time/Duration;", "", "rawValue", "", "constructor-impl", "(J)J", "absoluteValue", "getAbsoluteValue-UwyO8pc", "hoursComponent", "", "getHoursComponent$annotations", "()V", "getHoursComponent-impl", "(J)I", "inDays", "", "getInDays$annotations", "getInDays-impl", "(J)D", "inHours", "getInHours$annotations", "getInHours-impl", "inMicroseconds", "getInMicroseconds$annotations", "getInMicroseconds-impl", "inMilliseconds", "getInMilliseconds$annotations", "getInMilliseconds-impl", "inMinutes", "getInMinutes$annotations", "getInMinutes-impl", "inNanoseconds", "getInNanoseconds$annotations", "getInNanoseconds-impl", "inSeconds", "getInSeconds$annotations", "getInSeconds-impl", "inWholeDays", "getInWholeDays-impl", "inWholeHours", "getInWholeHours-impl", "inWholeMicroseconds", "getInWholeMicroseconds-impl", "inWholeMilliseconds", "getInWholeMilliseconds-impl", "inWholeMinutes", "getInWholeMinutes-impl", "inWholeNanoseconds", "getInWholeNanoseconds-impl", "inWholeSeconds", "getInWholeSeconds-impl", "minutesComponent", "getMinutesComponent$annotations", "getMinutesComponent-impl", "nanosecondsComponent", "getNanosecondsComponent$annotations", "getNanosecondsComponent-impl", "secondsComponent", "getSecondsComponent$annotations", "getSecondsComponent-impl", "storageUnit", "Lkotlin/time/DurationUnit;", "getStorageUnit-impl", "(J)Lkotlin/time/DurationUnit;", "unitDiscriminator", "getUnitDiscriminator-impl", "value", "getValue-impl", "addValuesMixedRanges", "thisMillis", "otherNanos", "addValuesMixedRanges-UwyO8pc", "(JJJ)J", "compareTo", "other", "compareTo-LRDsOJo", "(JJ)I", "div", "scale", "div-UwyO8pc", "(JD)J", "(JI)J", "div-LRDsOJo", "(JJ)D", "equals", "", "", "equals-impl", "(JLjava/lang/Object;)Z", "hashCode", "hashCode-impl", "isFinite", "isFinite-impl", "(J)Z", "isInMillis", "isInMillis-impl", "isInNanos", "isInNanos-impl", "isInfinite", "isInfinite-impl", "isNegative", "isNegative-impl", "isPositive", "isPositive-impl", "minus", "minus-LRDsOJo", "(JJ)J", "plus", "plus-LRDsOJo", "times", "times-UwyO8pc", "toComponents", ExifInterface.GPS_DIRECTION_TRUE, "action", "Lkotlin/Function5;", "Lkotlin/ParameterName;", "name", "days", "hours", "minutes", "seconds", "nanoseconds", "toComponents-impl", "(JLkotlin/jvm/functions/Function5;)Ljava/lang/Object;", "Lkotlin/Function4;", "(JLkotlin/jvm/functions/Function4;)Ljava/lang/Object;", "Lkotlin/Function3;", "(JLkotlin/jvm/functions/Function3;)Ljava/lang/Object;", "Lkotlin/Function2;", "(JLkotlin/jvm/functions/Function2;)Ljava/lang/Object;", "toDouble", "unit", "toDouble-impl", "(JLkotlin/time/DurationUnit;)D", "toInt", "toInt-impl", "(JLkotlin/time/DurationUnit;)I", "toIsoString", "", "toIsoString-impl", "(J)Ljava/lang/String;", "toLong", "toLong-impl", "(JLkotlin/time/DurationUnit;)J", "toLongMilliseconds", "toLongMilliseconds-impl", "toLongNanoseconds", "toLongNanoseconds-impl", "toString", "toString-impl", "decimals", "(JLkotlin/time/DurationUnit;I)Ljava/lang/String;", "truncateTo", "truncateTo-UwyO8pc$kotlin_stdlib", "unaryMinus", "unaryMinus-UwyO8pc", "appendFractional", "", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "whole", "fractional", "fractionalSize", "isoZeroes", "appendFractional-impl", "(JLjava/lang/StringBuilder;IIILjava/lang/String;Z)V", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
@JvmInline
/* loaded from: classes3.dex */
public final class Duration implements Comparable<Duration> {
private final long rawValue;
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final long ZERO = m7024constructorimpl(0);
private static final long INFINITE = DurationKt.access$durationOfMillis(DurationKt.MAX_MILLIS);
private static final long NEG_INFINITE = DurationKt.access$durationOfMillis(-4611686018427387903L);
/* renamed from: box-impl, reason: not valid java name */
public static final /* synthetic */ Duration m7022boximpl(long j) {
return new Duration(j);
}
/* renamed from: equals-impl, reason: not valid java name */
public static boolean m7028equalsimpl(long j, Object obj) {
return (obj instanceof Duration) && j == ((Duration) obj).getRawValue();
}
/* renamed from: equals-impl0, reason: not valid java name */
public static final boolean m7029equalsimpl0(long j, long j2) {
return j == j2;
}
public static /* synthetic */ void getHoursComponent$annotations() {
}
@Deprecated(message = "Use inWholeDays property instead or convert toDouble(DAYS) if a double value is required.", replaceWith = @ReplaceWith(expression = "toDouble(DurationUnit.DAYS)", imports = {}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.5")
public static /* synthetic */ void getInDays$annotations() {
}
@Deprecated(message = "Use inWholeHours property instead or convert toDouble(HOURS) if a double value is required.", replaceWith = @ReplaceWith(expression = "toDouble(DurationUnit.HOURS)", imports = {}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.5")
public static /* synthetic */ void getInHours$annotations() {
}
@Deprecated(message = "Use inWholeMicroseconds property instead or convert toDouble(MICROSECONDS) if a double value is required.", replaceWith = @ReplaceWith(expression = "toDouble(DurationUnit.MICROSECONDS)", imports = {}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.5")
public static /* synthetic */ void getInMicroseconds$annotations() {
}
@Deprecated(message = "Use inWholeMilliseconds property instead or convert toDouble(MILLISECONDS) if a double value is required.", replaceWith = @ReplaceWith(expression = "toDouble(DurationUnit.MILLISECONDS)", imports = {}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.5")
public static /* synthetic */ void getInMilliseconds$annotations() {
}
@Deprecated(message = "Use inWholeMinutes property instead or convert toDouble(MINUTES) if a double value is required.", replaceWith = @ReplaceWith(expression = "toDouble(DurationUnit.MINUTES)", imports = {}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.5")
public static /* synthetic */ void getInMinutes$annotations() {
}
@Deprecated(message = "Use inWholeNanoseconds property instead or convert toDouble(NANOSECONDS) if a double value is required.", replaceWith = @ReplaceWith(expression = "toDouble(DurationUnit.NANOSECONDS)", imports = {}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.5")
public static /* synthetic */ void getInNanoseconds$annotations() {
}
@Deprecated(message = "Use inWholeSeconds property instead or convert toDouble(SECONDS) if a double value is required.", replaceWith = @ReplaceWith(expression = "toDouble(DurationUnit.SECONDS)", imports = {}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.5")
public static /* synthetic */ void getInSeconds$annotations() {
}
public static /* synthetic */ void getMinutesComponent$annotations() {
}
public static /* synthetic */ void getNanosecondsComponent$annotations() {
}
public static /* synthetic */ void getSecondsComponent$annotations() {
}
/* renamed from: getUnitDiscriminator-impl, reason: not valid java name */
private static final int m7050getUnitDiscriminatorimpl(long j) {
return ((int) j) & 1;
}
/* renamed from: getValue-impl, reason: not valid java name */
private static final long m7051getValueimpl(long j) {
return j >> 1;
}
/* renamed from: hashCode-impl, reason: not valid java name */
public static int m7052hashCodeimpl(long j) {
return Long.hashCode(j);
}
/* renamed from: isInMillis-impl, reason: not valid java name */
private static final boolean m7054isInMillisimpl(long j) {
return (((int) j) & 1) == 1;
}
/* renamed from: isInNanos-impl, reason: not valid java name */
private static final boolean m7055isInNanosimpl(long j) {
return (((int) j) & 1) == 0;
}
/* renamed from: isInfinite-impl, reason: not valid java name */
public static final boolean m7056isInfiniteimpl(long j) {
return j == INFINITE || j == NEG_INFINITE;
}
/* renamed from: isNegative-impl, reason: not valid java name */
public static final boolean m7057isNegativeimpl(long j) {
return j < 0;
}
/* renamed from: isPositive-impl, reason: not valid java name */
public static final boolean m7058isPositiveimpl(long j) {
return j > 0;
}
public boolean equals(Object obj) {
return m7028equalsimpl(this.rawValue, obj);
}
public int hashCode() {
return m7052hashCodeimpl(this.rawValue);
}
/* renamed from: unbox-impl, reason: not valid java name and from getter */
public final /* synthetic */ long getRawValue() {
return this.rawValue;
}
@Override // java.lang.Comparable
public /* bridge */ /* synthetic */ int compareTo(Duration duration) {
return m7078compareToLRDsOJo(duration.getRawValue());
}
private /* synthetic */ Duration(long j) {
this.rawValue = j;
}
/* renamed from: getStorageUnit-impl, reason: not valid java name */
private static final DurationUnit m7049getStorageUnitimpl(long j) {
return m7055isInNanosimpl(j) ? DurationUnit.NANOSECONDS : DurationUnit.MILLISECONDS;
}
/* renamed from: constructor-impl, reason: not valid java name */
public static long m7024constructorimpl(long j) {
if (DurationJvmKt.getDurationAssertionsEnabled()) {
if (m7055isInNanosimpl(j)) {
if (!new LongRange(-4611686018426999999L, DurationKt.MAX_NANOS).contains(m7051getValueimpl(j))) {
throw new AssertionError(m7051getValueimpl(j) + " ns is out of nanoseconds range");
}
} else {
if (!new LongRange(-4611686018427387903L, DurationKt.MAX_MILLIS).contains(m7051getValueimpl(j))) {
throw new AssertionError(m7051getValueimpl(j) + " ms is out of milliseconds range");
}
if (new LongRange(-4611686018426L, 4611686018426L).contains(m7051getValueimpl(j))) {
throw new AssertionError(m7051getValueimpl(j) + " ms is denormalized");
}
}
}
return j;
}
/* compiled from: Duration.kt */
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u0006\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0017\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u000e\n\u0002\b\n\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J \u0010*\u001a\u00020\r2\u0006\u0010+\u001a\u00020\r2\u0006\u0010,\u001a\u00020-2\u0006\u0010.\u001a\u00020-H\u0007J\u001a\u0010\f\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\rH\u0007ø\u0001\u0000¢\u0006\u0004\b/\u0010\u0011J\u001a\u0010\f\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0012H\u0007ø\u0001\u0000¢\u0006\u0004\b/\u0010\u0014J\u001a\u0010\f\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0015H\u0007ø\u0001\u0000¢\u0006\u0004\b/\u0010\u0017J\u001a\u0010\u0018\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\rH\u0007ø\u0001\u0000¢\u0006\u0004\b0\u0010\u0011J\u001a\u0010\u0018\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0012H\u0007ø\u0001\u0000¢\u0006\u0004\b0\u0010\u0014J\u001a\u0010\u0018\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0015H\u0007ø\u0001\u0000¢\u0006\u0004\b0\u0010\u0017J\u001a\u0010\u001b\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\rH\u0007ø\u0001\u0000¢\u0006\u0004\b1\u0010\u0011J\u001a\u0010\u001b\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0012H\u0007ø\u0001\u0000¢\u0006\u0004\b1\u0010\u0014J\u001a\u0010\u001b\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0015H\u0007ø\u0001\u0000¢\u0006\u0004\b1\u0010\u0017J\u001a\u0010\u001e\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\rH\u0007ø\u0001\u0000¢\u0006\u0004\b2\u0010\u0011J\u001a\u0010\u001e\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0012H\u0007ø\u0001\u0000¢\u0006\u0004\b2\u0010\u0014J\u001a\u0010\u001e\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0015H\u0007ø\u0001\u0000¢\u0006\u0004\b2\u0010\u0017J\u001a\u0010!\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\rH\u0007ø\u0001\u0000¢\u0006\u0004\b3\u0010\u0011J\u001a\u0010!\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0012H\u0007ø\u0001\u0000¢\u0006\u0004\b3\u0010\u0014J\u001a\u0010!\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0015H\u0007ø\u0001\u0000¢\u0006\u0004\b3\u0010\u0017J\u001a\u0010$\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\rH\u0007ø\u0001\u0000¢\u0006\u0004\b4\u0010\u0011J\u001a\u0010$\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0012H\u0007ø\u0001\u0000¢\u0006\u0004\b4\u0010\u0014J\u001a\u0010$\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0015H\u0007ø\u0001\u0000¢\u0006\u0004\b4\u0010\u0017J\u0018\u00105\u001a\u00020\u00042\u0006\u0010+\u001a\u000206ø\u0001\u0000¢\u0006\u0004\b7\u00108J\u0018\u00109\u001a\u00020\u00042\u0006\u0010+\u001a\u000206ø\u0001\u0000¢\u0006\u0004\b:\u00108J\u0018\u0010;\u001a\u0004\u0018\u00010\u00042\u0006\u0010+\u001a\u000206ø\u0001\u0000¢\u0006\u0002\b<J\u0018\u0010=\u001a\u0004\u0018\u00010\u00042\u0006\u0010+\u001a\u000206ø\u0001\u0000¢\u0006\u0002\b>J\u001a\u0010'\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\rH\u0007ø\u0001\u0000¢\u0006\u0004\b?\u0010\u0011J\u001a\u0010'\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0012H\u0007ø\u0001\u0000¢\u0006\u0004\b?\u0010\u0014J\u001a\u0010'\u001a\u00020\u00042\u0006\u0010+\u001a\u00020\u0015H\u0007ø\u0001\u0000¢\u0006\u0004\b?\u0010\u0017R\u0016\u0010\u0003\u001a\u00020\u0004ø\u0001\u0000¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\u0005\u0010\u0006R\u0019\u0010\b\u001a\u00020\u0004X\u0080\u0004ø\u0001\u0000¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\t\u0010\u0006R\u0016\u0010\n\u001a\u00020\u0004ø\u0001\u0000¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\u000b\u0010\u0006R\"\u0010\f\u001a\u00020\u0004*\u00020\r8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u000e\u0010\u000f\u001a\u0004\b\u0010\u0010\u0011R\"\u0010\f\u001a\u00020\u0004*\u00020\u00128Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u000e\u0010\u0013\u001a\u0004\b\u0010\u0010\u0014R\"\u0010\f\u001a\u00020\u0004*\u00020\u00158Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u000e\u0010\u0016\u001a\u0004\b\u0010\u0010\u0017R\"\u0010\u0018\u001a\u00020\u0004*\u00020\r8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u0019\u0010\u000f\u001a\u0004\b\u001a\u0010\u0011R\"\u0010\u0018\u001a\u00020\u0004*\u00020\u00128Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u0019\u0010\u0013\u001a\u0004\b\u001a\u0010\u0014R\"\u0010\u0018\u001a\u00020\u0004*\u00020\u00158Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u0019\u0010\u0016\u001a\u0004\b\u001a\u0010\u0017R\"\u0010\u001b\u001a\u00020\u0004*\u00020\r8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u001c\u0010\u000f\u001a\u0004\b\u001d\u0010\u0011R\"\u0010\u001b\u001a\u00020\u0004*\u00020\u00128Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u001c\u0010\u0013\u001a\u0004\b\u001d\u0010\u0014R\"\u0010\u001b\u001a\u00020\u0004*\u00020\u00158Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u001c\u0010\u0016\u001a\u0004\b\u001d\u0010\u0017R\"\u0010\u001e\u001a\u00020\u0004*\u00020\r8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u001f\u0010\u000f\u001a\u0004\b \u0010\u0011R\"\u0010\u001e\u001a\u00020\u0004*\u00020\u00128Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u001f\u0010\u0013\u001a\u0004\b \u0010\u0014R\"\u0010\u001e\u001a\u00020\u0004*\u00020\u00158Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u001f\u0010\u0016\u001a\u0004\b \u0010\u0017R\"\u0010!\u001a\u00020\u0004*\u00020\r8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\"\u0010\u000f\u001a\u0004\b#\u0010\u0011R\"\u0010!\u001a\u00020\u0004*\u00020\u00128Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\"\u0010\u0013\u001a\u0004\b#\u0010\u0014R\"\u0010!\u001a\u00020\u0004*\u00020\u00158Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\"\u0010\u0016\u001a\u0004\b#\u0010\u0017R\"\u0010$\u001a\u00020\u0004*\u00020\r8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b%\u0010\u000f\u001a\u0004\b&\u0010\u0011R\"\u0010$\u001a\u00020\u0004*\u00020\u00128Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b%\u0010\u0013\u001a\u0004\b&\u0010\u0014R\"\u0010$\u001a\u00020\u0004*\u00020\u00158Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b%\u0010\u0016\u001a\u0004\b&\u0010\u0017R\"\u0010'\u001a\u00020\u0004*\u00020\r8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b(\u0010\u000f\u001a\u0004\b)\u0010\u0011R\"\u0010'\u001a\u00020\u0004*\u00020\u00128Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b(\u0010\u0013\u001a\u0004\b)\u0010\u0014R\"\u0010'\u001a\u00020\u0004*\u00020\u00158Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b(\u0010\u0016\u001a\u0004\b)\u0010\u0017\u0082\u0002\u0004\n\u0002\b!¨\u0006@"}, d2 = {"Lkotlin/time/Duration$Companion;", "", "()V", "INFINITE", "Lkotlin/time/Duration;", "getINFINITE-UwyO8pc", "()J", "J", "NEG_INFINITE", "getNEG_INFINITE-UwyO8pc$kotlin_stdlib", "ZERO", "getZERO-UwyO8pc", "days", "", "getDays-UwyO8pc$annotations", "(D)V", "getDays-UwyO8pc", "(D)J", "", "(I)V", "(I)J", "", "(J)V", "(J)J", "hours", "getHours-UwyO8pc$annotations", "getHours-UwyO8pc", "microseconds", "getMicroseconds-UwyO8pc$annotations", "getMicroseconds-UwyO8pc", "milliseconds", "getMilliseconds-UwyO8pc$annotations", "getMilliseconds-UwyO8pc", "minutes", "getMinutes-UwyO8pc$annotations", "getMinutes-UwyO8pc", "nanoseconds", "getNanoseconds-UwyO8pc$annotations", "getNanoseconds-UwyO8pc", "seconds", "getSeconds-UwyO8pc$annotations", "getSeconds-UwyO8pc", "convert", "value", "sourceUnit", "Lkotlin/time/DurationUnit;", "targetUnit", "days-UwyO8pc", "hours-UwyO8pc", "microseconds-UwyO8pc", "milliseconds-UwyO8pc", "minutes-UwyO8pc", "nanoseconds-UwyO8pc", "parse", "", "parse-UwyO8pc", "(Ljava/lang/String;)J", "parseIsoString", "parseIsoString-UwyO8pc", "parseIsoStringOrNull", "parseIsoStringOrNull-FghU774", "parseOrNull", "parseOrNull-FghU774", "seconds-UwyO8pc", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
/* renamed from: getDays-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7083getDaysUwyO8pc$annotations(double d) {
}
/* renamed from: getDays-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7084getDaysUwyO8pc$annotations(int i) {
}
/* renamed from: getDays-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7085getDaysUwyO8pc$annotations(long j) {
}
/* renamed from: getHours-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7089getHoursUwyO8pc$annotations(double d) {
}
/* renamed from: getHours-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7090getHoursUwyO8pc$annotations(int i) {
}
/* renamed from: getHours-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7091getHoursUwyO8pc$annotations(long j) {
}
/* renamed from: getMicroseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7095getMicrosecondsUwyO8pc$annotations(double d) {
}
/* renamed from: getMicroseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7096getMicrosecondsUwyO8pc$annotations(int i) {
}
/* renamed from: getMicroseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7097getMicrosecondsUwyO8pc$annotations(long j) {
}
/* renamed from: getMilliseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7101getMillisecondsUwyO8pc$annotations(double d) {
}
/* renamed from: getMilliseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7102getMillisecondsUwyO8pc$annotations(int i) {
}
/* renamed from: getMilliseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7103getMillisecondsUwyO8pc$annotations(long j) {
}
/* renamed from: getMinutes-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7107getMinutesUwyO8pc$annotations(double d) {
}
/* renamed from: getMinutes-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7108getMinutesUwyO8pc$annotations(int i) {
}
/* renamed from: getMinutes-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7109getMinutesUwyO8pc$annotations(long j) {
}
/* renamed from: getNanoseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7113getNanosecondsUwyO8pc$annotations(double d) {
}
/* renamed from: getNanoseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7114getNanosecondsUwyO8pc$annotations(int i) {
}
/* renamed from: getNanoseconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7115getNanosecondsUwyO8pc$annotations(long j) {
}
/* renamed from: getSeconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7119getSecondsUwyO8pc$annotations(double d) {
}
/* renamed from: getSeconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7120getSecondsUwyO8pc$annotations(int i) {
}
/* renamed from: getSeconds-UwyO8pc$annotations, reason: not valid java name */
public static /* synthetic */ void m7121getSecondsUwyO8pc$annotations(long j) {
}
private Companion() {
}
/* renamed from: getZERO-UwyO8pc, reason: not valid java name */
public final long m7127getZEROUwyO8pc() {
return Duration.ZERO;
}
/* renamed from: getINFINITE-UwyO8pc, reason: not valid java name */
public final long m7125getINFINITEUwyO8pc() {
return Duration.INFINITE;
}
/* renamed from: getNEG_INFINITE-UwyO8pc$kotlin_stdlib, reason: not valid java name */
public final long m7126getNEG_INFINITEUwyO8pc$kotlin_stdlib() {
return Duration.NEG_INFINITE;
}
public final double convert(double value, DurationUnit sourceUnit, DurationUnit targetUnit) {
Intrinsics.checkNotNullParameter(sourceUnit, "sourceUnit");
Intrinsics.checkNotNullParameter(targetUnit, "targetUnit");
return DurationUnitKt.convertDurationUnit(value, sourceUnit, targetUnit);
}
/* renamed from: getNanoseconds-UwyO8pc, reason: not valid java name */
private final long m7111getNanosecondsUwyO8pc(int i) {
return DurationKt.toDuration(i, DurationUnit.NANOSECONDS);
}
/* renamed from: getNanoseconds-UwyO8pc, reason: not valid java name */
private final long m7112getNanosecondsUwyO8pc(long j) {
return DurationKt.toDuration(j, DurationUnit.NANOSECONDS);
}
/* renamed from: getNanoseconds-UwyO8pc, reason: not valid java name */
private final long m7110getNanosecondsUwyO8pc(double d) {
return DurationKt.toDuration(d, DurationUnit.NANOSECONDS);
}
/* renamed from: getMicroseconds-UwyO8pc, reason: not valid java name */
private final long m7093getMicrosecondsUwyO8pc(int i) {
return DurationKt.toDuration(i, DurationUnit.MICROSECONDS);
}
/* renamed from: getMicroseconds-UwyO8pc, reason: not valid java name */
private final long m7094getMicrosecondsUwyO8pc(long j) {
return DurationKt.toDuration(j, DurationUnit.MICROSECONDS);
}
/* renamed from: getMicroseconds-UwyO8pc, reason: not valid java name */
private final long m7092getMicrosecondsUwyO8pc(double d) {
return DurationKt.toDuration(d, DurationUnit.MICROSECONDS);
}
/* renamed from: getMilliseconds-UwyO8pc, reason: not valid java name */
private final long m7099getMillisecondsUwyO8pc(int i) {
return DurationKt.toDuration(i, DurationUnit.MILLISECONDS);
}
/* renamed from: getMilliseconds-UwyO8pc, reason: not valid java name */
private final long m7100getMillisecondsUwyO8pc(long j) {
return DurationKt.toDuration(j, DurationUnit.MILLISECONDS);
}
/* renamed from: getMilliseconds-UwyO8pc, reason: not valid java name */
private final long m7098getMillisecondsUwyO8pc(double d) {
return DurationKt.toDuration(d, DurationUnit.MILLISECONDS);
}
/* renamed from: getSeconds-UwyO8pc, reason: not valid java name */
private final long m7117getSecondsUwyO8pc(int i) {
return DurationKt.toDuration(i, DurationUnit.SECONDS);
}
/* renamed from: getSeconds-UwyO8pc, reason: not valid java name */
private final long m7118getSecondsUwyO8pc(long j) {
return DurationKt.toDuration(j, DurationUnit.SECONDS);
}
/* renamed from: getSeconds-UwyO8pc, reason: not valid java name */
private final long m7116getSecondsUwyO8pc(double d) {
return DurationKt.toDuration(d, DurationUnit.SECONDS);
}
/* renamed from: getMinutes-UwyO8pc, reason: not valid java name */
private final long m7105getMinutesUwyO8pc(int i) {
return DurationKt.toDuration(i, DurationUnit.MINUTES);
}
/* renamed from: getMinutes-UwyO8pc, reason: not valid java name */
private final long m7106getMinutesUwyO8pc(long j) {
return DurationKt.toDuration(j, DurationUnit.MINUTES);
}
/* renamed from: getMinutes-UwyO8pc, reason: not valid java name */
private final long m7104getMinutesUwyO8pc(double d) {
return DurationKt.toDuration(d, DurationUnit.MINUTES);
}
/* renamed from: getHours-UwyO8pc, reason: not valid java name */
private final long m7087getHoursUwyO8pc(int i) {
return DurationKt.toDuration(i, DurationUnit.HOURS);
}
/* renamed from: getHours-UwyO8pc, reason: not valid java name */
private final long m7088getHoursUwyO8pc(long j) {
return DurationKt.toDuration(j, DurationUnit.HOURS);
}
/* renamed from: getHours-UwyO8pc, reason: not valid java name */
private final long m7086getHoursUwyO8pc(double d) {
return DurationKt.toDuration(d, DurationUnit.HOURS);
}
/* renamed from: getDays-UwyO8pc, reason: not valid java name */
private final long m7081getDaysUwyO8pc(int i) {
return DurationKt.toDuration(i, DurationUnit.DAYS);
}
/* renamed from: getDays-UwyO8pc, reason: not valid java name */
private final long m7082getDaysUwyO8pc(long j) {
return DurationKt.toDuration(j, DurationUnit.DAYS);
}
/* renamed from: getDays-UwyO8pc, reason: not valid java name */
private final long m7080getDaysUwyO8pc(double d) {
return DurationKt.toDuration(d, DurationUnit.DAYS);
}
@Deprecated(message = "Use 'Int.nanoseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: nanoseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7141nanosecondsUwyO8pc(int value) {
return DurationKt.toDuration(value, DurationUnit.NANOSECONDS);
}
@Deprecated(message = "Use 'Long.nanoseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: nanoseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7142nanosecondsUwyO8pc(long value) {
return DurationKt.toDuration(value, DurationUnit.NANOSECONDS);
}
@Deprecated(message = "Use 'Double.nanoseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.nanoseconds", imports = {"kotlin.time.Duration.Companion.nanoseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: nanoseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7140nanosecondsUwyO8pc(double value) {
return DurationKt.toDuration(value, DurationUnit.NANOSECONDS);
}
@Deprecated(message = "Use 'Int.microseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: microseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7132microsecondsUwyO8pc(int value) {
return DurationKt.toDuration(value, DurationUnit.MICROSECONDS);
}
@Deprecated(message = "Use 'Long.microseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: microseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7133microsecondsUwyO8pc(long value) {
return DurationKt.toDuration(value, DurationUnit.MICROSECONDS);
}
@Deprecated(message = "Use 'Double.microseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.microseconds", imports = {"kotlin.time.Duration.Companion.microseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: microseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7131microsecondsUwyO8pc(double value) {
return DurationKt.toDuration(value, DurationUnit.MICROSECONDS);
}
@Deprecated(message = "Use 'Int.milliseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: milliseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7135millisecondsUwyO8pc(int value) {
return DurationKt.toDuration(value, DurationUnit.MILLISECONDS);
}
@Deprecated(message = "Use 'Long.milliseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: milliseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7136millisecondsUwyO8pc(long value) {
return DurationKt.toDuration(value, DurationUnit.MILLISECONDS);
}
@Deprecated(message = "Use 'Double.milliseconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.milliseconds", imports = {"kotlin.time.Duration.Companion.milliseconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: milliseconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7134millisecondsUwyO8pc(double value) {
return DurationKt.toDuration(value, DurationUnit.MILLISECONDS);
}
@Deprecated(message = "Use 'Int.seconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: seconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7148secondsUwyO8pc(int value) {
return DurationKt.toDuration(value, DurationUnit.SECONDS);
}
@Deprecated(message = "Use 'Long.seconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: seconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7149secondsUwyO8pc(long value) {
return DurationKt.toDuration(value, DurationUnit.SECONDS);
}
@Deprecated(message = "Use 'Double.seconds' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.seconds", imports = {"kotlin.time.Duration.Companion.seconds"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: seconds-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7147secondsUwyO8pc(double value) {
return DurationKt.toDuration(value, DurationUnit.SECONDS);
}
@Deprecated(message = "Use 'Int.minutes' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: minutes-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7138minutesUwyO8pc(int value) {
return DurationKt.toDuration(value, DurationUnit.MINUTES);
}
@Deprecated(message = "Use 'Long.minutes' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: minutes-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7139minutesUwyO8pc(long value) {
return DurationKt.toDuration(value, DurationUnit.MINUTES);
}
@Deprecated(message = "Use 'Double.minutes' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.minutes", imports = {"kotlin.time.Duration.Companion.minutes"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: minutes-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7137minutesUwyO8pc(double value) {
return DurationKt.toDuration(value, DurationUnit.MINUTES);
}
@Deprecated(message = "Use 'Int.hours' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: hours-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7129hoursUwyO8pc(int value) {
return DurationKt.toDuration(value, DurationUnit.HOURS);
}
@Deprecated(message = "Use 'Long.hours' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: hours-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7130hoursUwyO8pc(long value) {
return DurationKt.toDuration(value, DurationUnit.HOURS);
}
@Deprecated(message = "Use 'Double.hours' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.hours", imports = {"kotlin.time.Duration.Companion.hours"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: hours-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7128hoursUwyO8pc(double value) {
return DurationKt.toDuration(value, DurationUnit.HOURS);
}
@Deprecated(message = "Use 'Int.days' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: days-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7123daysUwyO8pc(int value) {
return DurationKt.toDuration(value, DurationUnit.DAYS);
}
@Deprecated(message = "Use 'Long.days' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: days-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7124daysUwyO8pc(long value) {
return DurationKt.toDuration(value, DurationUnit.DAYS);
}
@Deprecated(message = "Use 'Double.days' extension property from Duration.Companion instead.", replaceWith = @ReplaceWith(expression = "value.days", imports = {"kotlin.time.Duration.Companion.days"}))
@DeprecatedSinceKotlin(errorSince = "1.8", hiddenSince = "1.9", warningSince = "1.6")
/* renamed from: days-UwyO8pc, reason: not valid java name */
public final /* synthetic */ long m7122daysUwyO8pc(double value) {
return DurationKt.toDuration(value, DurationUnit.DAYS);
}
/* renamed from: parse-UwyO8pc, reason: not valid java name */
public final long m7143parseUwyO8pc(String value) {
Intrinsics.checkNotNullParameter(value, "value");
try {
return DurationKt.access$parseDuration(value, false);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Invalid duration string format: '" + value + "'.", e);
}
}
/* renamed from: parseIsoString-UwyO8pc, reason: not valid java name */
public final long m7144parseIsoStringUwyO8pc(String value) {
Intrinsics.checkNotNullParameter(value, "value");
try {
return DurationKt.access$parseDuration(value, true);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Invalid ISO duration string format: '" + value + "'.", e);
}
}
/* renamed from: parseOrNull-FghU774, reason: not valid java name */
public final Duration m7146parseOrNullFghU774(String value) {
Intrinsics.checkNotNullParameter(value, "value");
try {
return Duration.m7022boximpl(DurationKt.access$parseDuration(value, false));
} catch (IllegalArgumentException unused) {
return null;
}
}
/* renamed from: parseIsoStringOrNull-FghU774, reason: not valid java name */
public final Duration m7145parseIsoStringOrNullFghU774(String value) {
Intrinsics.checkNotNullParameter(value, "value");
try {
return Duration.m7022boximpl(DurationKt.access$parseDuration(value, true));
} catch (IllegalArgumentException unused) {
return null;
}
}
}
/* renamed from: unaryMinus-UwyO8pc, reason: not valid java name */
public static final long m7077unaryMinusUwyO8pc(long j) {
return DurationKt.access$durationOf(-m7051getValueimpl(j), ((int) j) & 1);
}
/* renamed from: plus-LRDsOJo, reason: not valid java name */
public static final long m7060plusLRDsOJo(long j, long j2) {
if (m7056isInfiniteimpl(j)) {
if (m7053isFiniteimpl(j2) || (j2 ^ j) >= 0) {
return j;
}
throw new IllegalArgumentException("Summing infinite durations of different signs yields an undefined result.");
}
if (m7056isInfiniteimpl(j2)) {
return j2;
}
if ((((int) j) & 1) == (((int) j2) & 1)) {
long m7051getValueimpl = m7051getValueimpl(j) + m7051getValueimpl(j2);
if (m7055isInNanosimpl(j)) {
return DurationKt.access$durationOfNanosNormalized(m7051getValueimpl);
}
return DurationKt.access$durationOfMillisNormalized(m7051getValueimpl);
}
if (m7054isInMillisimpl(j)) {
return m7020addValuesMixedRangesUwyO8pc(j, m7051getValueimpl(j), m7051getValueimpl(j2));
}
return m7020addValuesMixedRangesUwyO8pc(j, m7051getValueimpl(j2), m7051getValueimpl(j));
}
/* renamed from: addValuesMixedRanges-UwyO8pc, reason: not valid java name */
private static final long m7020addValuesMixedRangesUwyO8pc(long j, long j2, long j3) {
long access$nanosToMillis = DurationKt.access$nanosToMillis(j3);
long j4 = j2 + access$nanosToMillis;
if (new LongRange(-4611686018426L, 4611686018426L).contains(j4)) {
return DurationKt.access$durationOfNanos(DurationKt.access$millisToNanos(j4) + (j3 - DurationKt.access$millisToNanos(access$nanosToMillis)));
}
return DurationKt.access$durationOfMillis(RangesKt.coerceIn(j4, -4611686018427387903L, DurationKt.MAX_MILLIS));
}
/* renamed from: minus-LRDsOJo, reason: not valid java name */
public static final long m7059minusLRDsOJo(long j, long j2) {
return m7060plusLRDsOJo(j, m7077unaryMinusUwyO8pc(j2));
}
/* renamed from: times-UwyO8pc, reason: not valid java name */
public static final long m7062timesUwyO8pc(long j, int i) {
if (m7056isInfiniteimpl(j)) {
if (i != 0) {
return i > 0 ? j : m7077unaryMinusUwyO8pc(j);
}
throw new IllegalArgumentException("Multiplying infinite duration by zero yields an undefined result.");
}
if (i == 0) {
return ZERO;
}
long m7051getValueimpl = m7051getValueimpl(j);
long j2 = i;
long j3 = m7051getValueimpl * j2;
if (!m7055isInNanosimpl(j)) {
if (j3 / j2 == m7051getValueimpl) {
return DurationKt.access$durationOfMillis(RangesKt.coerceIn(j3, new LongRange(-4611686018427387903L, DurationKt.MAX_MILLIS)));
}
return MathKt.getSign(m7051getValueimpl) * MathKt.getSign(i) > 0 ? INFINITE : NEG_INFINITE;
}
if (new LongRange(-2147483647L, 2147483647L).contains(m7051getValueimpl)) {
return DurationKt.access$durationOfNanos(j3);
}
if (j3 / j2 == m7051getValueimpl) {
return DurationKt.access$durationOfNanosNormalized(j3);
}
long access$nanosToMillis = DurationKt.access$nanosToMillis(m7051getValueimpl);
long j4 = access$nanosToMillis * j2;
long access$nanosToMillis2 = DurationKt.access$nanosToMillis((m7051getValueimpl - DurationKt.access$millisToNanos(access$nanosToMillis)) * j2) + j4;
if (j4 / j2 != access$nanosToMillis || (access$nanosToMillis2 ^ j4) < 0) {
return MathKt.getSign(m7051getValueimpl) * MathKt.getSign(i) > 0 ? INFINITE : NEG_INFINITE;
}
return DurationKt.access$durationOfMillis(RangesKt.coerceIn(access$nanosToMillis2, new LongRange(-4611686018427387903L, DurationKt.MAX_MILLIS)));
}
/* renamed from: times-UwyO8pc, reason: not valid java name */
public static final long m7061timesUwyO8pc(long j, double d) {
int roundToInt = MathKt.roundToInt(d);
if (roundToInt == d) {
return m7062timesUwyO8pc(j, roundToInt);
}
DurationUnit m7049getStorageUnitimpl = m7049getStorageUnitimpl(j);
return DurationKt.toDuration(m7067toDoubleimpl(j, m7049getStorageUnitimpl) * d, m7049getStorageUnitimpl);
}
/* renamed from: div-UwyO8pc, reason: not valid java name */
public static final long m7027divUwyO8pc(long j, int i) {
if (i == 0) {
if (m7058isPositiveimpl(j)) {
return INFINITE;
}
if (m7057isNegativeimpl(j)) {
return NEG_INFINITE;
}
throw new IllegalArgumentException("Dividing zero duration by zero yields an undefined result.");
}
if (m7055isInNanosimpl(j)) {
return DurationKt.access$durationOfNanos(m7051getValueimpl(j) / i);
}
if (m7056isInfiniteimpl(j)) {
return m7062timesUwyO8pc(j, MathKt.getSign(i));
}
long j2 = i;
long m7051getValueimpl = m7051getValueimpl(j) / j2;
if (new LongRange(-4611686018426L, 4611686018426L).contains(m7051getValueimpl)) {
return DurationKt.access$durationOfNanos(DurationKt.access$millisToNanos(m7051getValueimpl) + (DurationKt.access$millisToNanos(m7051getValueimpl(j) - (m7051getValueimpl * j2)) / j2));
}
return DurationKt.access$durationOfMillis(m7051getValueimpl);
}
/* renamed from: div-UwyO8pc, reason: not valid java name */
public static final long m7026divUwyO8pc(long j, double d) {
int roundToInt = MathKt.roundToInt(d);
if (roundToInt == d && roundToInt != 0) {
return m7027divUwyO8pc(j, roundToInt);
}
DurationUnit m7049getStorageUnitimpl = m7049getStorageUnitimpl(j);
return DurationKt.toDuration(m7067toDoubleimpl(j, m7049getStorageUnitimpl) / d, m7049getStorageUnitimpl);
}
/* renamed from: div-LRDsOJo, reason: not valid java name */
public static final double m7025divLRDsOJo(long j, long j2) {
DurationUnit durationUnit = (DurationUnit) ComparisonsKt.maxOf(m7049getStorageUnitimpl(j), m7049getStorageUnitimpl(j2));
return m7067toDoubleimpl(j, durationUnit) / m7067toDoubleimpl(j2, durationUnit);
}
/* renamed from: truncateTo-UwyO8pc$kotlin_stdlib, reason: not valid java name */
public static final long m7076truncateToUwyO8pc$kotlin_stdlib(long j, DurationUnit unit) {
Intrinsics.checkNotNullParameter(unit, "unit");
DurationUnit m7049getStorageUnitimpl = m7049getStorageUnitimpl(j);
if (unit.compareTo(m7049getStorageUnitimpl) <= 0 || m7056isInfiniteimpl(j)) {
return j;
}
return DurationKt.toDuration(m7051getValueimpl(j) - (m7051getValueimpl(j) % DurationUnitKt.convertDurationUnit(1L, unit, m7049getStorageUnitimpl)), m7049getStorageUnitimpl);
}
/* renamed from: isFinite-impl, reason: not valid java name */
public static final boolean m7053isFiniteimpl(long j) {
return !m7056isInfiniteimpl(j);
}
/* renamed from: getAbsoluteValue-UwyO8pc, reason: not valid java name */
public static final long m7030getAbsoluteValueUwyO8pc(long j) {
return m7057isNegativeimpl(j) ? m7077unaryMinusUwyO8pc(j) : j;
}
/* renamed from: compareTo-LRDsOJo, reason: not valid java name */
public int m7078compareToLRDsOJo(long j) {
return m7023compareToLRDsOJo(this.rawValue, j);
}
/* renamed from: compareTo-LRDsOJo, reason: not valid java name */
public static int m7023compareToLRDsOJo(long j, long j2) {
long j3 = j ^ j2;
if (j3 < 0 || (((int) j3) & 1) == 0) {
return Intrinsics.compare(j, j2);
}
int i = (((int) j) & 1) - (((int) j2) & 1);
return m7057isNegativeimpl(j) ? -i : i;
}
/* renamed from: toComponents-impl, reason: not valid java name */
public static final <T> T m7066toComponentsimpl(long j, Function5<? super Long, ? super Integer, ? super Integer, ? super Integer, ? super Integer, ? extends T> action) {
Intrinsics.checkNotNullParameter(action, "action");
return action.invoke(Long.valueOf(m7039getInWholeDaysimpl(j)), Integer.valueOf(m7031getHoursComponentimpl(j)), Integer.valueOf(m7046getMinutesComponentimpl(j)), Integer.valueOf(m7048getSecondsComponentimpl(j)), Integer.valueOf(m7047getNanosecondsComponentimpl(j)));
}
/* renamed from: toComponents-impl, reason: not valid java name */
public static final <T> T m7065toComponentsimpl(long j, Function4<? super Long, ? super Integer, ? super Integer, ? super Integer, ? extends T> action) {
Intrinsics.checkNotNullParameter(action, "action");
return action.invoke(Long.valueOf(m7040getInWholeHoursimpl(j)), Integer.valueOf(m7046getMinutesComponentimpl(j)), Integer.valueOf(m7048getSecondsComponentimpl(j)), Integer.valueOf(m7047getNanosecondsComponentimpl(j)));
}
/* renamed from: toComponents-impl, reason: not valid java name */
public static final <T> T m7064toComponentsimpl(long j, Function3<? super Long, ? super Integer, ? super Integer, ? extends T> action) {
Intrinsics.checkNotNullParameter(action, "action");
return action.invoke(Long.valueOf(m7043getInWholeMinutesimpl(j)), Integer.valueOf(m7048getSecondsComponentimpl(j)), Integer.valueOf(m7047getNanosecondsComponentimpl(j)));
}
/* renamed from: toComponents-impl, reason: not valid java name */
public static final <T> T m7063toComponentsimpl(long j, Function2<? super Long, ? super Integer, ? extends T> action) {
Intrinsics.checkNotNullParameter(action, "action");
return action.invoke(Long.valueOf(m7045getInWholeSecondsimpl(j)), Integer.valueOf(m7047getNanosecondsComponentimpl(j)));
}
/* renamed from: getHoursComponent-impl, reason: not valid java name */
public static final int m7031getHoursComponentimpl(long j) {
if (m7056isInfiniteimpl(j)) {
return 0;
}
return (int) (m7040getInWholeHoursimpl(j) % 24);
}
/* renamed from: getMinutesComponent-impl, reason: not valid java name */
public static final int m7046getMinutesComponentimpl(long j) {
if (m7056isInfiniteimpl(j)) {
return 0;
}
return (int) (m7043getInWholeMinutesimpl(j) % 60);
}
/* renamed from: getSecondsComponent-impl, reason: not valid java name */
public static final int m7048getSecondsComponentimpl(long j) {
if (m7056isInfiniteimpl(j)) {
return 0;
}
return (int) (m7045getInWholeSecondsimpl(j) % 60);
}
/* renamed from: getNanosecondsComponent-impl, reason: not valid java name */
public static final int m7047getNanosecondsComponentimpl(long j) {
if (m7056isInfiniteimpl(j)) {
return 0;
}
return (int) (m7054isInMillisimpl(j) ? DurationKt.access$millisToNanos(m7051getValueimpl(j) % 1000) : m7051getValueimpl(j) % 1000000000);
}
/* renamed from: toDouble-impl, reason: not valid java name */
public static final double m7067toDoubleimpl(long j, DurationUnit unit) {
Intrinsics.checkNotNullParameter(unit, "unit");
if (j == INFINITE) {
return Double.POSITIVE_INFINITY;
}
if (j == NEG_INFINITE) {
return Double.NEGATIVE_INFINITY;
}
return DurationUnitKt.convertDurationUnit(m7051getValueimpl(j), m7049getStorageUnitimpl(j), unit);
}
/* renamed from: toLong-impl, reason: not valid java name */
public static final long m7070toLongimpl(long j, DurationUnit unit) {
Intrinsics.checkNotNullParameter(unit, "unit");
if (j == INFINITE) {
return Long.MAX_VALUE;
}
if (j == NEG_INFINITE) {
return Long.MIN_VALUE;
}
return DurationUnitKt.convertDurationUnit(m7051getValueimpl(j), m7049getStorageUnitimpl(j), unit);
}
/* renamed from: toInt-impl, reason: not valid java name */
public static final int m7068toIntimpl(long j, DurationUnit unit) {
Intrinsics.checkNotNullParameter(unit, "unit");
return (int) RangesKt.coerceIn(m7070toLongimpl(j, unit), -2147483648L, 2147483647L);
}
/* renamed from: getInWholeDays-impl, reason: not valid java name */
public static final long m7039getInWholeDaysimpl(long j) {
return m7070toLongimpl(j, DurationUnit.DAYS);
}
/* renamed from: getInWholeHours-impl, reason: not valid java name */
public static final long m7040getInWholeHoursimpl(long j) {
return m7070toLongimpl(j, DurationUnit.HOURS);
}
/* renamed from: getInWholeMinutes-impl, reason: not valid java name */
public static final long m7043getInWholeMinutesimpl(long j) {
return m7070toLongimpl(j, DurationUnit.MINUTES);
}
/* renamed from: getInWholeSeconds-impl, reason: not valid java name */
public static final long m7045getInWholeSecondsimpl(long j) {
return m7070toLongimpl(j, DurationUnit.SECONDS);
}
/* renamed from: getInWholeMilliseconds-impl, reason: not valid java name */
public static final long m7042getInWholeMillisecondsimpl(long j) {
return (m7054isInMillisimpl(j) && m7053isFiniteimpl(j)) ? m7051getValueimpl(j) : m7070toLongimpl(j, DurationUnit.MILLISECONDS);
}
/* renamed from: getInWholeMicroseconds-impl, reason: not valid java name */
public static final long m7041getInWholeMicrosecondsimpl(long j) {
return m7070toLongimpl(j, DurationUnit.MICROSECONDS);
}
/* renamed from: getInWholeNanoseconds-impl, reason: not valid java name */
public static final long m7044getInWholeNanosecondsimpl(long j) {
long m7051getValueimpl = m7051getValueimpl(j);
if (m7055isInNanosimpl(j)) {
return m7051getValueimpl;
}
if (m7051getValueimpl > 9223372036854L) {
return Long.MAX_VALUE;
}
if (m7051getValueimpl < -9223372036854L) {
return Long.MIN_VALUE;
}
return DurationKt.access$millisToNanos(m7051getValueimpl);
}
public String toString() {
return m7073toStringimpl(this.rawValue);
}
/* renamed from: toString-impl, reason: not valid java name */
public static String m7073toStringimpl(long j) {
if (j == 0) {
return "0s";
}
if (j == INFINITE) {
return "Infinity";
}
if (j == NEG_INFINITE) {
return "-Infinity";
}
boolean m7057isNegativeimpl = m7057isNegativeimpl(j);
StringBuilder sb = new StringBuilder();
if (m7057isNegativeimpl) {
sb.append('-');
}
long m7030getAbsoluteValueUwyO8pc = m7030getAbsoluteValueUwyO8pc(j);
long m7039getInWholeDaysimpl = m7039getInWholeDaysimpl(m7030getAbsoluteValueUwyO8pc);
int m7031getHoursComponentimpl = m7031getHoursComponentimpl(m7030getAbsoluteValueUwyO8pc);
int m7046getMinutesComponentimpl = m7046getMinutesComponentimpl(m7030getAbsoluteValueUwyO8pc);
int m7048getSecondsComponentimpl = m7048getSecondsComponentimpl(m7030getAbsoluteValueUwyO8pc);
int m7047getNanosecondsComponentimpl = m7047getNanosecondsComponentimpl(m7030getAbsoluteValueUwyO8pc);
int i = 0;
boolean z = m7039getInWholeDaysimpl != 0;
boolean z2 = m7031getHoursComponentimpl != 0;
boolean z3 = m7046getMinutesComponentimpl != 0;
boolean z4 = (m7048getSecondsComponentimpl == 0 && m7047getNanosecondsComponentimpl == 0) ? false : true;
if (z) {
sb.append(m7039getInWholeDaysimpl).append('d');
i = 1;
}
if (z2 || (z && (z3 || z4))) {
int i2 = i + 1;
if (i > 0) {
sb.append(' ');
}
sb.append(m7031getHoursComponentimpl).append('h');
i = i2;
}
if (z3 || (z4 && (z2 || z))) {
int i3 = i + 1;
if (i > 0) {
sb.append(' ');
}
sb.append(m7046getMinutesComponentimpl).append('m');
i = i3;
}
if (z4) {
int i4 = i + 1;
if (i > 0) {
sb.append(' ');
}
if (m7048getSecondsComponentimpl != 0 || z || z2 || z3) {
m7021appendFractionalimpl(j, sb, m7048getSecondsComponentimpl, m7047getNanosecondsComponentimpl, 9, CmcdHeadersFactory.STREAMING_FORMAT_SS, false);
} else if (m7047getNanosecondsComponentimpl >= 1000000) {
m7021appendFractionalimpl(j, sb, m7047getNanosecondsComponentimpl / 1000000, m7047getNanosecondsComponentimpl % 1000000, 6, "ms", false);
} else if (m7047getNanosecondsComponentimpl >= 1000) {
m7021appendFractionalimpl(j, sb, m7047getNanosecondsComponentimpl / 1000, m7047getNanosecondsComponentimpl % 1000, 3, "us", false);
} else {
sb.append(m7047getNanosecondsComponentimpl).append("ns");
}
i = i4;
}
if (m7057isNegativeimpl && i > 1) {
sb.insert(1, '(').append(')');
}
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
/* renamed from: appendFractional-impl, reason: not valid java name */
private static final void m7021appendFractionalimpl(long j, StringBuilder sb, int i, int i2, int i3, String str, boolean z) {
sb.append(i);
if (i2 != 0) {
sb.append('.');
String padStart = StringsKt.padStart(String.valueOf(i2), i3, '0');
int i4 = -1;
int length = padStart.length() - 1;
if (length >= 0) {
while (true) {
int i5 = length - 1;
if (padStart.charAt(length) != '0') {
i4 = length;
break;
} else if (i5 < 0) {
break;
} else {
length = i5;
}
}
}
int i6 = i4 + 1;
if (!z && i6 < 3) {
Intrinsics.checkNotNullExpressionValue(sb.append((CharSequence) padStart, 0, i6), "append(...)");
} else {
Intrinsics.checkNotNullExpressionValue(sb.append((CharSequence) padStart, 0, ((i4 + 3) / 3) * 3), "append(...)");
}
}
sb.append(str);
}
/* renamed from: toString-impl$default, reason: not valid java name */
public static /* synthetic */ String m7075toStringimpl$default(long j, DurationUnit durationUnit, int i, int i2, Object obj) {
if ((i2 & 2) != 0) {
i = 0;
}
return m7074toStringimpl(j, durationUnit, i);
}
/* renamed from: toString-impl, reason: not valid java name */
public static final String m7074toStringimpl(long j, DurationUnit unit, int i) {
Intrinsics.checkNotNullParameter(unit, "unit");
if (i < 0) {
throw new IllegalArgumentException(("decimals must be not negative, but was " + i).toString());
}
double m7067toDoubleimpl = m7067toDoubleimpl(j, unit);
return Double.isInfinite(m7067toDoubleimpl) ? String.valueOf(m7067toDoubleimpl) : DurationJvmKt.formatToExactDecimals(m7067toDoubleimpl, RangesKt.coerceAtMost(i, 12)) + DurationUnitKt.shortName(unit);
}
/* renamed from: toIsoString-impl, reason: not valid java name */
public static final String m7069toIsoStringimpl(long j) {
StringBuilder sb = new StringBuilder();
if (m7057isNegativeimpl(j)) {
sb.append('-');
}
sb.append("PT");
long m7030getAbsoluteValueUwyO8pc = m7030getAbsoluteValueUwyO8pc(j);
long m7040getInWholeHoursimpl = m7040getInWholeHoursimpl(m7030getAbsoluteValueUwyO8pc);
int m7046getMinutesComponentimpl = m7046getMinutesComponentimpl(m7030getAbsoluteValueUwyO8pc);
int m7048getSecondsComponentimpl = m7048getSecondsComponentimpl(m7030getAbsoluteValueUwyO8pc);
int m7047getNanosecondsComponentimpl = m7047getNanosecondsComponentimpl(m7030getAbsoluteValueUwyO8pc);
if (m7056isInfiniteimpl(j)) {
m7040getInWholeHoursimpl = 9999999999999L;
}
boolean z = true;
boolean z2 = m7040getInWholeHoursimpl != 0;
boolean z3 = (m7048getSecondsComponentimpl == 0 && m7047getNanosecondsComponentimpl == 0) ? false : true;
if (m7046getMinutesComponentimpl == 0 && (!z3 || !z2)) {
z = false;
}
if (z2) {
sb.append(m7040getInWholeHoursimpl).append('H');
}
if (z) {
sb.append(m7046getMinutesComponentimpl).append('M');
}
if (z3 || (!z2 && !z)) {
m7021appendFractionalimpl(j, sb, m7048getSecondsComponentimpl, m7047getNanosecondsComponentimpl, 9, ExifInterface.LATITUDE_SOUTH, true);
}
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
}