package o; import java.util.Locale; import org.bouncycastle.crypto.tls.CipherSuite; import org.threeten.bp.DateTimeException; import org.threeten.bp.temporal.UnsupportedTemporalTypeException; /* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */ /* JADX WARN: Found several "values" enum fields: [] */ /* renamed from: o.gsx, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class EnumC15528gsx implements gtK, gtJ { private static final EnumC15528gsx[] $VALUES; public static final EnumC15528gsx APRIL; public static final EnumC15528gsx AUGUST; public static final EnumC15528gsx DECEMBER; private static final EnumC15528gsx[] ENUMS; public static final EnumC15528gsx FEBRUARY; public static final gtQ FROM; public static final EnumC15528gsx JANUARY; public static final EnumC15528gsx JULY; public static final EnumC15528gsx JUNE; public static final EnumC15528gsx MARCH; public static final EnumC15528gsx MAY; public static final EnumC15528gsx NOVEMBER; public static final EnumC15528gsx OCTOBER; public static final EnumC15528gsx SEPTEMBER; private EnumC15528gsx(String str, int i) { } public static EnumC15528gsx valueOf(String str) { return (EnumC15528gsx) Enum.valueOf(EnumC15528gsx.class, str); } public static EnumC15528gsx[] values() { return (EnumC15528gsx[]) $VALUES.clone(); } static { EnumC15528gsx enumC15528gsx = new EnumC15528gsx("JANUARY", 0); JANUARY = enumC15528gsx; EnumC15528gsx enumC15528gsx2 = new EnumC15528gsx("FEBRUARY", 1); FEBRUARY = enumC15528gsx2; EnumC15528gsx enumC15528gsx3 = new EnumC15528gsx("MARCH", 2); MARCH = enumC15528gsx3; EnumC15528gsx enumC15528gsx4 = new EnumC15528gsx("APRIL", 3); APRIL = enumC15528gsx4; EnumC15528gsx enumC15528gsx5 = new EnumC15528gsx("MAY", 4); MAY = enumC15528gsx5; EnumC15528gsx enumC15528gsx6 = new EnumC15528gsx("JUNE", 5); JUNE = enumC15528gsx6; EnumC15528gsx enumC15528gsx7 = new EnumC15528gsx("JULY", 6); JULY = enumC15528gsx7; EnumC15528gsx enumC15528gsx8 = new EnumC15528gsx("AUGUST", 7); AUGUST = enumC15528gsx8; EnumC15528gsx enumC15528gsx9 = new EnumC15528gsx("SEPTEMBER", 8); SEPTEMBER = enumC15528gsx9; EnumC15528gsx enumC15528gsx10 = new EnumC15528gsx("OCTOBER", 9); OCTOBER = enumC15528gsx10; EnumC15528gsx enumC15528gsx11 = new EnumC15528gsx("NOVEMBER", 10); NOVEMBER = enumC15528gsx11; EnumC15528gsx enumC15528gsx12 = new EnumC15528gsx("DECEMBER", 11); DECEMBER = enumC15528gsx12; $VALUES = new EnumC15528gsx[]{enumC15528gsx, enumC15528gsx2, enumC15528gsx3, enumC15528gsx4, enumC15528gsx5, enumC15528gsx6, enumC15528gsx7, enumC15528gsx8, enumC15528gsx9, enumC15528gsx10, enumC15528gsx11, enumC15528gsx12}; FROM = new gtQ() { // from class: o.gsx.1 @Override // o.gtQ public final EnumC15528gsx queryFrom(gtK gtk) { return EnumC15528gsx.from(gtk); } }; ENUMS = values(); } public static EnumC15528gsx of(int i) { if (i <= 0 || i > 12) { throw new DateTimeException("Invalid value for MonthOfYear: ".concat(String.valueOf(i))); } return ENUMS[i - 1]; } public static EnumC15528gsx from(gtK gtk) { if (gtk instanceof EnumC15528gsx) { return (EnumC15528gsx) gtk; } try { if (!gsV.INSTANCE.equals(gsR.from(gtk))) { gtk = C15520gsp.from(gtk); } return of(gtk.get(EnumC15534gtD.MONTH_OF_YEAR)); } catch (DateTimeException e) { StringBuilder sb = new StringBuilder("Unable to obtain Month from TemporalAccessor: "); sb.append(gtk); sb.append(", type "); sb.append(gtk.getClass().getName()); throw new DateTimeException(sb.toString(), e); } } public final int getValue() { return ordinal() + 1; } public final String getDisplayName(EnumC15532gtB enumC15532gtB, Locale locale) { return new C15553gtn().appendText(EnumC15534gtD.MONTH_OF_YEAR, enumC15532gtB).toFormatter(locale).format(this); } @Override // o.gtK public final boolean isSupported(InterfaceC15537gtP interfaceC15537gtP) { return interfaceC15537gtP instanceof EnumC15534gtD ? interfaceC15537gtP == EnumC15534gtD.MONTH_OF_YEAR : interfaceC15537gtP != null && interfaceC15537gtP.isSupportedBy(this); } @Override // o.gtK public final gtT range(InterfaceC15537gtP interfaceC15537gtP) { if (interfaceC15537gtP == EnumC15534gtD.MONTH_OF_YEAR) { return interfaceC15537gtP.range(); } if (interfaceC15537gtP instanceof EnumC15534gtD) { throw new UnsupportedTemporalTypeException("Unsupported field: ".concat(String.valueOf(interfaceC15537gtP))); } return interfaceC15537gtP.rangeRefinedBy(this); } @Override // o.gtK public final int get(InterfaceC15537gtP interfaceC15537gtP) { if (interfaceC15537gtP == EnumC15534gtD.MONTH_OF_YEAR) { return getValue(); } return range(interfaceC15537gtP).checkValidIntValue(getLong(interfaceC15537gtP), interfaceC15537gtP); } @Override // o.gtK public final long getLong(InterfaceC15537gtP interfaceC15537gtP) { if (interfaceC15537gtP == EnumC15534gtD.MONTH_OF_YEAR) { return getValue(); } if (interfaceC15537gtP instanceof EnumC15534gtD) { throw new UnsupportedTemporalTypeException("Unsupported field: ".concat(String.valueOf(interfaceC15537gtP))); } return interfaceC15537gtP.getFrom(this); } public final EnumC15528gsx plus(long j) { return ENUMS[(ordinal() + (((int) (j % 12)) + 12)) % 12]; } public final EnumC15528gsx minus(long j) { return plus(-(j % 12)); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.gsx$5, reason: invalid class name */ /* loaded from: classes.dex */ public static /* synthetic */ class AnonymousClass5 { static final int[] $SwitchMap$org$threeten$bp$Month; static { int[] iArr = new int[EnumC15528gsx.values().length]; $SwitchMap$org$threeten$bp$Month = iArr; try { iArr[EnumC15528gsx.FEBRUARY.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.APRIL.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.JUNE.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.SEPTEMBER.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.NOVEMBER.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.JANUARY.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.MARCH.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.MAY.ordinal()] = 8; } catch (NoSuchFieldError unused8) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.JULY.ordinal()] = 9; } catch (NoSuchFieldError unused9) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.AUGUST.ordinal()] = 10; } catch (NoSuchFieldError unused10) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.OCTOBER.ordinal()] = 11; } catch (NoSuchFieldError unused11) { } try { $SwitchMap$org$threeten$bp$Month[EnumC15528gsx.DECEMBER.ordinal()] = 12; } catch (NoSuchFieldError unused12) { } } } public final int length(boolean z) { int i = AnonymousClass5.$SwitchMap$org$threeten$bp$Month[ordinal()]; return i != 1 ? (i == 2 || i == 3 || i == 4 || i == 5) ? 30 : 31 : z ? 29 : 28; } public final int minLength() { int i = AnonymousClass5.$SwitchMap$org$threeten$bp$Month[ordinal()]; if (i != 1) { return (i == 2 || i == 3 || i == 4 || i == 5) ? 30 : 31; } return 28; } public final int maxLength() { int i = AnonymousClass5.$SwitchMap$org$threeten$bp$Month[ordinal()]; if (i != 1) { return (i == 2 || i == 3 || i == 4 || i == 5) ? 30 : 31; } return 29; } public final int firstDayOfYear(boolean z) { switch (AnonymousClass5.$SwitchMap$org$threeten$bp$Month[ordinal()]) { case 1: return 32; case 2: return (z ? 1 : 0) + 91; case 3: return (z ? 1 : 0) + CipherSuite.TLS_DH_RSA_WITH_SEED_CBC_SHA; case 4: return (z ? 1 : 0) + 244; case 5: return (z ? 1 : 0) + 305; case 6: return 1; case 7: return (z ? 1 : 0) + 60; case 8: return (z ? 1 : 0) + 121; case 9: return (z ? 1 : 0) + CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA256; case 10: return (z ? 1 : 0) + 213; case 11: return (z ? 1 : 0) + 274; default: return (z ? 1 : 0) + 335; } } public final EnumC15528gsx firstMonthOfQuarter() { return ENUMS[(ordinal() / 3) * 3]; } @Override // o.gtK public final R query(gtQ gtq) { if (gtq == gtM.chronology()) { return (R) gsV.INSTANCE; } if (gtq == gtM.precision()) { return (R) gtH.MONTHS; } if (gtq == gtM.localDate() || gtq == gtM.localTime() || gtq == gtM.zone() || gtq == gtM.zoneId() || gtq == gtM.offset()) { return null; } return gtq.queryFrom(this); } @Override // o.gtJ public final InterfaceC15536gtL adjustInto(InterfaceC15536gtL interfaceC15536gtL) { if (!gsR.from(interfaceC15536gtL).equals(gsV.INSTANCE)) { throw new DateTimeException("Adjustment only supported on ISO date-time"); } return interfaceC15536gtL.with(EnumC15534gtD.MONTH_OF_YEAR, getValue()); } }