package z7;

import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;

/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
/* loaded from: classes.dex */
public final class a {
    private static final /* synthetic */ xm.a $ENTRIES;
    private static final /* synthetic */ a[] $VALUES;
    public static final C1057a Companion;
    private final String code;
    public static final a ALBERTA = new a("ALBERTA", 0, "AB");
    public static final a BRITISH_COLUMBIA = new a("BRITISH_COLUMBIA", 1, "BC");
    public static final a MANITOBA = new a("MANITOBA", 2, "MB");
    public static final a NEW_BRUNSWICK = new a("NEW_BRUNSWICK", 3, "NB");
    public static final a NEWFOUNDLAND_AND_LABRADOR = new a("NEWFOUNDLAND_AND_LABRADOR", 4, "NL");
    public static final a NOVA_SCOTIA = new a("NOVA_SCOTIA", 5, "NS");
    public static final a ONTARIO = new a("ONTARIO", 6, "ON");
    public static final a PRINCE_EDWARD_ISLAND = new a("PRINCE_EDWARD_ISLAND", 7, "PE");
    public static final a QUEBEC = new a("QUEBEC", 8, "QC");
    public static final a SASKATCHEWAN = new a("SASKATCHEWAN", 9, "SK");
    public static final a NORTHWEST_TERRITORIES = new a("NORTHWEST_TERRITORIES", 10, "NT");
    public static final a NUNAVUT = new a("NUNAVUT", 11, "NU");
    public static final a YUKON = new a("YUKON", 12, "YT");

    /* renamed from: z7.a$a, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static final class C1057a {
        private C1057a() {
        }

        public /* synthetic */ C1057a(k kVar) {
            this();
        }

        public final a a(String str) {
            for (a aVar : a.values()) {
                if (t.b(aVar.getCode(), str)) {
                    return aVar;
                }
            }
            return null;
        }
    }

    private static final /* synthetic */ a[] $values() {
        return new a[]{ALBERTA, BRITISH_COLUMBIA, MANITOBA, NEW_BRUNSWICK, NEWFOUNDLAND_AND_LABRADOR, NOVA_SCOTIA, ONTARIO, PRINCE_EDWARD_ISLAND, QUEBEC, SASKATCHEWAN, NORTHWEST_TERRITORIES, NUNAVUT, YUKON};
    }

    static {
        a[] $values = $values();
        $VALUES = $values;
        $ENTRIES = xm.b.a($values);
        Companion = new C1057a(null);
    }

    private a(String str, int i10, String str2) {
        this.code = str2;
    }

    public static xm.a getEntries() {
        return $ENTRIES;
    }

    public static a valueOf(String str) {
        return (a) Enum.valueOf(a.class, str);
    }

    public static a[] values() {
        return (a[]) $VALUES.clone();
    }

    public final String getCode() {
        return this.code;
    }
}
