package com.strmr.ps.data.model;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.extractor.text.ttml.TtmlNode;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import defpackage.bi8;
import defpackage.cr4;
import defpackage.fa1;
import defpackage.fi7;
import defpackage.ik2;
import defpackage.kp6;
import defpackage.m15;
import defpackage.n25;
import defpackage.n41;
import defpackage.pq6;
import defpackage.rs;
import defpackage.si8;
import defpackage.ta7;
import defpackage.u79;
import defpackage.uz1;
import defpackage.vw2;
import defpackage.vx8;
import defpackage.wi8;
import defpackage.x15;
import defpackage.y41;
import java.util.List;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@si8
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0010\u000b\n\u0002\b\u000f\b\u0087\b\u0018\u0000 62\u00020\u0001:\u000276BG\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0002\u0012\u000e\b\u0002\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005\u0012\u0006\u0010\b\u001a\u00020\u0002\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b\u000b\u0010\fB]\b\u0010\u0012\u0006\u0010\u000e\u001a\u00020\r\u0012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002\u0012\u000e\u0010\u0007\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\t\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\n\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\u000f¢\u0006\u0004\b\u000b\u0010\u0011J'\u0010\u001a\u001a\u00020\u00172\u0006\u0010\u0012\u001a\u00020\u00002\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0016\u001a\u00020\u0015H\u0001¢\u0006\u0004\b\u0018\u0010\u0019J\u0010\u0010\u001b\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u001b\u0010\u001cJ\u0010\u0010\u001d\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u001d\u0010\u001cJ\u0016\u0010\u001e\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005HÆ\u0003¢\u0006\u0004\b\u001e\u0010\u001fJ\u0010\u0010 \u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b \u0010\u001cJ\u0012\u0010!\u001a\u0004\u0018\u00010\u0002HÆ\u0003¢\u0006\u0004\b!\u0010\u001cJ\u0012\u0010\"\u001a\u0004\u0018\u00010\u0002HÆ\u0003¢\u0006\u0004\b\"\u0010\u001cJV\u0010#\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u00022\b\b\u0002\u0010\u0004\u001a\u00020\u00022\u000e\b\u0002\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\u00052\b\b\u0002\u0010\b\u001a\u00020\u00022\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u0002HÆ\u0001¢\u0006\u0004\b#\u0010$J\u0010\u0010%\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b%\u0010\u001cJ\u0010\u0010&\u001a\u00020\rHÖ\u0001¢\u0006\u0004\b&\u0010'J\u001a\u0010*\u001a\u00020)2\b\u0010(\u001a\u0004\u0018\u00010\u0001HÖ\u0003¢\u0006\u0004\b*\u0010+R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010,\u001a\u0004\b-\u0010\u001cR\u0017\u0010\u0004\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0004\u0010,\u001a\u0004\b.\u0010\u001cR\u001d\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\u00058\u0006¢\u0006\f\n\u0004\b\u0007\u0010/\u001a\u0004\b0\u0010\u001fR\u0017\u0010\b\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\b\u0010,\u001a\u0004\b1\u0010\u001cR\u0019\u0010\t\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\t\u0010,\u001a\u0004\b2\u0010\u001cR\u0019\u0010\n\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\n\u0010,\u001a\u0004\b3\u0010\u001cR\u0017\u00105\u001a\b\u0012\u0004\u0012\u00020\u00060\u00058F¢\u0006\u0006\u001a\u0004\b4\u0010\u001f¨\u00068"}, d2 = {"Lcom/strmr/ps/data/model/UserCollectionItem;", "", "", TtmlNode.ATTR_ID, AppMeasurementSdk.ConditionalUserProperty.NAME, "", "Lcom/strmr/ps/data/model/UserCollectionLink;", "links", "imageUrl", "focusGifUrl", "traktListUrl", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "", "seen0", "Lwi8;", "serializationConstructorMarker", "(ILjava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lwi8;)V", "self", "Lfa1;", "output", "Lbi8;", "serialDesc", "Le6a;", "write$Self$app_sideloadRelease", "(Lcom/strmr/ps/data/model/UserCollectionItem;Lfa1;Lbi8;)V", "write$Self", "component1", "()Ljava/lang/String;", "component2", "component3", "()Ljava/util/List;", "component4", "component5", "component6", "copy", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/strmr/ps/data/model/UserCollectionItem;", "toString", "hashCode", "()I", "other", "", "equals", "(Ljava/lang/Object;)Z", "Ljava/lang/String;", "getId", "getName", "Ljava/util/List;", "getLinks", "getImageUrl", "getFocusGifUrl", "getTraktListUrl", "getResolvedLinks", "resolvedLinks", "Companion", "$serializer", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final /* data */ class UserCollectionItem {

    @pq6
    private final String focusGifUrl;

    @kp6
    private final String id;

    @kp6
    private final String imageUrl;

    @kp6
    private final List<UserCollectionLink> links;

    @kp6
    private final String name;

    @pq6
    private final String traktListUrl;

    /* JADX INFO: renamed from: Companion, reason: from kotlin metadata */
    @kp6
    public static final Companion INSTANCE = new Companion(null);

    @kp6
    @m15
    private static final n25<Object>[] $childSerializers = {null, null, new rs(UserCollectionLink$$serializer.INSTANCE), null, null, null};

    @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0013\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004¢\u0006\u0004\b\u0006\u0010\u0007¨\u0006\b"}, d2 = {"Lcom/strmr/ps/data/model/UserCollectionItem$Companion;", "", "<init>", "()V", "Ln25;", "Lcom/strmr/ps/data/model/UserCollectionItem;", "serializer", "()Ln25;", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Companion {
        private Companion() {
        }

        @kp6
        public final n25<UserCollectionItem> serializer() {
            return UserCollectionItem$$serializer.INSTANCE;
        }

        public /* synthetic */ Companion(uz1 uz1Var) {
            this();
        }
    }

    public /* synthetic */ UserCollectionItem(int i, String str, String str2, List list, String str3, String str4, String str5, wi8 wi8Var) {
        if (11 != (i & 11)) {
            ta7.a(i, 11, UserCollectionItem$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        this.id = str;
        this.name = str2;
        if ((i & 4) == 0) {
            this.links = ik2.a;
        } else {
            this.links = list;
        }
        this.imageUrl = str3;
        if ((i & 16) == 0) {
            this.focusGifUrl = null;
        } else {
            this.focusGifUrl = str4;
        }
        if ((i & 32) == 0) {
            this.traktListUrl = null;
        } else {
            this.traktListUrl = str5;
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ UserCollectionItem copy$default(UserCollectionItem userCollectionItem, String str, String str2, List list, String str3, String str4, String str5, int i, Object obj) {
        if ((i & 1) != 0) {
            str = userCollectionItem.id;
        }
        if ((i & 2) != 0) {
            str2 = userCollectionItem.name;
        }
        if ((i & 4) != 0) {
            list = userCollectionItem.links;
        }
        if ((i & 8) != 0) {
            str3 = userCollectionItem.imageUrl;
        }
        if ((i & 16) != 0) {
            str4 = userCollectionItem.focusGifUrl;
        }
        if ((i & 32) != 0) {
            str5 = userCollectionItem.traktListUrl;
        }
        String str6 = str4;
        String str7 = str5;
        return userCollectionItem.copy(str, str2, list, str3, str6, str7);
    }

    @x15
    public static final /* synthetic */ void write$Self$app_sideloadRelease(UserCollectionItem self, fa1 output, bi8 serialDesc) {
        n25<Object>[] n25VarArr = $childSerializers;
        output.n(serialDesc, 0, self.id);
        output.n(serialDesc, 1, self.name);
        if (output.e(serialDesc, 2) || !cr4.b(self.links, ik2.a)) {
            output.q(serialDesc, 2, n25VarArr[2], self.links);
        }
        output.n(serialDesc, 3, self.imageUrl);
        if (output.e(serialDesc, 4) || self.focusGifUrl != null) {
            output.ae(serialDesc, 4, u79.a, self.focusGifUrl);
        }
        if (!output.e(serialDesc, 5) && self.traktListUrl == null) {
            return;
        }
        output.ae(serialDesc, 5, u79.a, self.traktListUrl);
    }

    @kp6
    /* JADX INFO: renamed from: component1, reason: from getter */
    public final String getId() {
        return this.id;
    }

    @kp6
    /* JADX INFO: renamed from: component2, reason: from getter */
    public final String getName() {
        return this.name;
    }

    @kp6
    public final List<UserCollectionLink> component3() {
        return this.links;
    }

    @kp6
    /* JADX INFO: renamed from: component4, reason: from getter */
    public final String getImageUrl() {
        return this.imageUrl;
    }

    @pq6
    /* JADX INFO: renamed from: component5, reason: from getter */
    public final String getFocusGifUrl() {
        return this.focusGifUrl;
    }

    @pq6
    /* JADX INFO: renamed from: component6, reason: from getter */
    public final String getTraktListUrl() {
        return this.traktListUrl;
    }

    @kp6
    public final UserCollectionItem copy(@kp6 String id, @kp6 String name, @kp6 List<UserCollectionLink> links, @kp6 String imageUrl, @pq6 String focusGifUrl, @pq6 String traktListUrl) {
        cr4.g(id, TtmlNode.ATTR_ID);
        cr4.g(name, AppMeasurementSdk.ConditionalUserProperty.NAME);
        cr4.g(links, "links");
        cr4.g(imageUrl, "imageUrl");
        return new UserCollectionItem(id, name, links, imageUrl, focusGifUrl, traktListUrl);
    }

    public boolean equals(@pq6 Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof UserCollectionItem)) {
            return false;
        }
        UserCollectionItem userCollectionItem = (UserCollectionItem) other;
        return cr4.b(this.id, userCollectionItem.id) && cr4.b(this.name, userCollectionItem.name) && cr4.b(this.links, userCollectionItem.links) && cr4.b(this.imageUrl, userCollectionItem.imageUrl) && cr4.b(this.focusGifUrl, userCollectionItem.focusGifUrl) && cr4.b(this.traktListUrl, userCollectionItem.traktListUrl);
    }

    @pq6
    public final String getFocusGifUrl() {
        return this.focusGifUrl;
    }

    @kp6
    public final String getId() {
        return this.id;
    }

    @kp6
    public final String getImageUrl() {
        return this.imageUrl;
    }

    @kp6
    public final List<UserCollectionLink> getLinks() {
        return this.links;
    }

    @kp6
    public final String getName() {
        return this.name;
    }

    @kp6
    public final List<UserCollectionLink> getResolvedLinks() {
        List<UserCollectionLink> listAm = this.links;
        if (listAm.isEmpty()) {
            String str = this.traktListUrl;
            listAm = str != null ? y41.am(new UserCollectionLink(str, (String) null, 2, (uz1) null)) : ik2.a;
        }
        return listAm;
    }

    @pq6
    public final String getTraktListUrl() {
        return this.traktListUrl;
    }

    public int hashCode() {
        int iB = vw2.b(fi7.d(this.links, vw2.b(this.id.hashCode() * 31, 31, this.name), 31), 31, this.imageUrl);
        String str = this.focusGifUrl;
        int iHashCode = (iB + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.traktListUrl;
        return iHashCode + (str2 != null ? str2.hashCode() : 0);
    }

    @kp6
    public String toString() {
        String str = this.id;
        String str2 = this.name;
        List<UserCollectionLink> list = this.links;
        String str3 = this.imageUrl;
        String str4 = this.focusGifUrl;
        String str5 = this.traktListUrl;
        StringBuilder sbM = fi7.m("UserCollectionItem(id=", str, ", name=", str2, ", links=");
        sbM.append(list);
        sbM.append(", imageUrl=");
        sbM.append(str3);
        sbM.append(", focusGifUrl=");
        return n41.u(sbM, str4, ", traktListUrl=", str5, ")");
    }

    public UserCollectionItem(@kp6 String str, @kp6 String str2, @kp6 List<UserCollectionLink> list, @kp6 String str3, @pq6 String str4, @pq6 String str5) {
        cr4.g(str, TtmlNode.ATTR_ID);
        cr4.g(str2, AppMeasurementSdk.ConditionalUserProperty.NAME);
        cr4.g(list, "links");
        cr4.g(str3, "imageUrl");
        this.id = str;
        this.name = str2;
        this.links = list;
        this.imageUrl = str3;
        this.focusGifUrl = str4;
        this.traktListUrl = str5;
    }

    public /* synthetic */ UserCollectionItem(String str, String str2, List list, String str3, String str4, String str5, int i, uz1 uz1Var) {
        this(str, str2, (i & 4) != 0 ? ik2.a : list, str3, (i & 16) != 0 ? null : str4, (i & 32) != 0 ? null : str5);
    }
}
