package com.strmr.ps.data.model.tmdb;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.extractor.text.ttml.TtmlNode;
import androidx.media3.session.MediaUtils;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.gson.annotations.SerializedName;
import defpackage.cr4;
import defpackage.fi7;
import defpackage.kp6;
import defpackage.n41;
import defpackage.n89;
import defpackage.pq6;
import defpackage.vw2;
import defpackage.vx8;
import defpackage.x71;
import defpackage.y41;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000Z\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\u0006\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\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\bE\n\u0002\u0010\u000b\n\u0002\b\u0004\b\u0086\b\u0018\u00002\u00020\u0001Bç\u0001\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\t\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\n\u001a\u0004\u0018\u00010\u000b\u0012\u000e\u0010\f\u001a\n\u0012\u0004\u0012\u00020\u000e\u0018\u00010\r\u0012\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0003\u0018\u00010\r\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0011\u001a\u0004\u0018\u00010\u0003\u0012\u000e\u0010\u0012\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\r\u0012\b\u0010\u0014\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016\u0012\b\u0010\u0017\u001a\u0004\u0018\u00010\u0018\u0012\b\u0010\u0019\u001a\u0004\u0018\u00010\u001a\u0012\n\b\u0002\u0010\u001b\u001a\u0004\u0018\u00010\u001c\u0012\n\b\u0002\u0010\u001d\u001a\u0004\u0018\u00010\u001e\u0012\n\b\u0002\u0010\u001f\u001a\u0004\u0018\u00010\u0005\u0012\n\b\u0002\u0010 \u001a\u0004\u0018\u00010\u0005¢\u0006\u0004\b!\u0010\"J\u0012\u0010C\u001a\u0004\u0018\u00010\u00052\b\b\u0002\u0010D\u001a\u00020\u0005J\u0012\u0010E\u001a\u0004\u0018\u00010\u00052\b\b\u0002\u0010D\u001a\u00020\u0005J\b\u0010F\u001a\u0004\u0018\u00010\u0005J\r\u0010G\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u00102J\u0012\u0010H\u001a\u0004\u0018\u00010\u00052\b\b\u0002\u0010D\u001a\u00020\u0005J\u0012\u0010I\u001a\u0004\u0018\u00010\u00052\b\b\u0002\u0010J\u001a\u00020\u0003J\b\u0010K\u001a\u0004\u0018\u00010\u0005J\b\u0010L\u001a\u0004\u0018\u00010\u0005J\t\u0010M\u001a\u00020\u0003HÆ\u0003J\t\u0010N\u001a\u00020\u0005HÆ\u0003J\u000b\u0010O\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010P\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010Q\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010R\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u0010\u0010S\u001a\u0004\u0018\u00010\u000bHÆ\u0003¢\u0006\u0002\u0010,J\u0011\u0010T\u001a\n\u0012\u0004\u0012\u00020\u000e\u0018\u00010\rHÆ\u0003J\u0011\u0010U\u001a\n\u0012\u0004\u0012\u00020\u0003\u0018\u00010\rHÆ\u0003J\u0010\u0010V\u001a\u0004\u0018\u00010\u0003HÆ\u0003¢\u0006\u0002\u00102J\u0010\u0010W\u001a\u0004\u0018\u00010\u0003HÆ\u0003¢\u0006\u0002\u00102J\u0011\u0010X\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\rHÆ\u0003J\u000b\u0010Y\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010Z\u001a\u0004\u0018\u00010\u0016HÆ\u0003J\u000b\u0010[\u001a\u0004\u0018\u00010\u0018HÆ\u0003J\u000b\u0010\\\u001a\u0004\u0018\u00010\u001aHÆ\u0003J\u000b\u0010]\u001a\u0004\u0018\u00010\u001cHÆ\u0003J\u000b\u0010^\u001a\u0004\u0018\u00010\u001eHÆ\u0003J\u000b\u0010_\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010`\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u008c\u0002\u0010a\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u000b2\u0010\b\u0002\u0010\f\u001a\n\u0012\u0004\u0012\u00020\u000e\u0018\u00010\r2\u0010\b\u0002\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0003\u0018\u00010\r2\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u00032\u0010\b\u0002\u0010\u0012\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\r2\n\b\u0002\u0010\u0014\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00162\n\b\u0002\u0010\u0017\u001a\u0004\u0018\u00010\u00182\n\b\u0002\u0010\u0019\u001a\u0004\u0018\u00010\u001a2\n\b\u0002\u0010\u001b\u001a\u0004\u0018\u00010\u001c2\n\b\u0002\u0010\u001d\u001a\u0004\u0018\u00010\u001e2\n\b\u0002\u0010\u001f\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010 \u001a\u0004\u0018\u00010\u0005HÆ\u0001¢\u0006\u0002\u0010bJ\u0013\u0010c\u001a\u00020d2\b\u0010e\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010f\u001a\u00020\u0003HÖ\u0001J\t\u0010g\u001a\u00020\u0005HÖ\u0001R\u0016\u0010\u0002\u001a\u00020\u00038\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b#\u0010$R\u0016\u0010\u0004\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b%\u0010&R\u0018\u0010\u0006\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b'\u0010&R\u0018\u0010\u0007\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b(\u0010&R\u0018\u0010\b\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b)\u0010&R\u0018\u0010\t\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b*\u0010&R\u001a\u0010\n\u001a\u0004\u0018\u00010\u000b8\u0006X\u0087\u0004¢\u0006\n\n\u0002\u0010-\u001a\u0004\b+\u0010,R\u001e\u0010\f\u001a\n\u0012\u0004\u0012\u00020\u000e\u0018\u00010\r8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b.\u0010/R\u001e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0003\u0018\u00010\r8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b0\u0010/R\u001a\u0010\u0010\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\n\n\u0002\u00103\u001a\u0004\b1\u00102R\u001a\u0010\u0011\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\n\n\u0002\u00103\u001a\u0004\b4\u00102R\u001e\u0010\u0012\u001a\n\u0012\u0004\u0012\u00020\u0013\u0018\u00010\r8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b5\u0010/R\u0018\u0010\u0014\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b6\u0010&R\u0018\u0010\u0015\u001a\u0004\u0018\u00010\u00168\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b7\u00108R\u0018\u0010\u0017\u001a\u0004\u0018\u00010\u00188\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b9\u0010:R\u0018\u0010\u0019\u001a\u0004\u0018\u00010\u001a8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b;\u0010<R\u0018\u0010\u001b\u001a\u0004\u0018\u00010\u001c8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b=\u0010>R\u0018\u0010\u001d\u001a\u0004\u0018\u00010\u001e8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b?\u0010@R\u0018\u0010\u001f\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\bA\u0010&R\u0018\u0010 \u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\bB\u0010&¨\u0006h"}, d2 = {"Lcom/strmr/ps/data/model/tmdb/TMDBShowDetails;", "", TtmlNode.ATTR_ID, "", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "overview", "posterPath", "backdropPath", "firstAirDate", "voteAverage", "", "genres", "", "Lcom/strmr/ps/data/model/tmdb/TMDBGenre;", "episodeRunTime", "numberOfSeasons", "numberOfEpisodes", "seasons", "Lcom/strmr/ps/data/model/tmdb/TMDBSeason;", "status", "images", "Lcom/strmr/ps/data/model/tmdb/TMDBImages;", "credits", "Lcom/strmr/ps/data/model/tmdb/TMDBCredits;", "contentRatings", "Lcom/strmr/ps/data/model/tmdb/TMDBContentRatingsResponse;", "externalIds", "Lcom/strmr/ps/data/model/tmdb/TMDBExternalIds;", "videos", "Lcom/strmr/ps/data/model/tmdb/TMDBVideosResponse;", "lastAirDate", "tagline", "<init>", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Double;Ljava/util/List;Ljava/util/List;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/List;Ljava/lang/String;Lcom/strmr/ps/data/model/tmdb/TMDBImages;Lcom/strmr/ps/data/model/tmdb/TMDBCredits;Lcom/strmr/ps/data/model/tmdb/TMDBContentRatingsResponse;Lcom/strmr/ps/data/model/tmdb/TMDBExternalIds;Lcom/strmr/ps/data/model/tmdb/TMDBVideosResponse;Ljava/lang/String;Ljava/lang/String;)V", "getId", "()I", "getName", "()Ljava/lang/String;", "getOverview", "getPosterPath", "getBackdropPath", "getFirstAirDate", "getVoteAverage", "()Ljava/lang/Double;", "Ljava/lang/Double;", "getGenres", "()Ljava/util/List;", "getEpisodeRunTime", "getNumberOfSeasons", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getNumberOfEpisodes", "getSeasons", "getStatus", "getImages", "()Lcom/strmr/ps/data/model/tmdb/TMDBImages;", "getCredits", "()Lcom/strmr/ps/data/model/tmdb/TMDBCredits;", "getContentRatings", "()Lcom/strmr/ps/data/model/tmdb/TMDBContentRatingsResponse;", "getExternalIds", "()Lcom/strmr/ps/data/model/tmdb/TMDBExternalIds;", "getVideos", "()Lcom/strmr/ps/data/model/tmdb/TMDBVideosResponse;", "getLastAirDate", "getTagline", "getPosterUrl", "preferredLanguage", "getBackdropUrl", "getYear", "getRatingPercentage", "getLogoUrl", "getCastNames", "limit", "getCertification", "getTrailerKey", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "component10", "component11", "component12", "component13", "component14", "component15", "component16", "component17", "component18", "component19", "component20", "copy", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Double;Ljava/util/List;Ljava/util/List;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/List;Ljava/lang/String;Lcom/strmr/ps/data/model/tmdb/TMDBImages;Lcom/strmr/ps/data/model/tmdb/TMDBCredits;Lcom/strmr/ps/data/model/tmdb/TMDBContentRatingsResponse;Lcom/strmr/ps/data/model/tmdb/TMDBExternalIds;Lcom/strmr/ps/data/model/tmdb/TMDBVideosResponse;Ljava/lang/String;Ljava/lang/String;)Lcom/strmr/ps/data/model/tmdb/TMDBShowDetails;", "equals", "", "other", "hashCode", "toString", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final /* data */ class TMDBShowDetails {

    @SerializedName("backdrop_path")
    @pq6
    private final String backdropPath;

    @SerializedName("content_ratings")
    @pq6
    private final TMDBContentRatingsResponse contentRatings;

    @SerializedName("credits")
    @pq6
    private final TMDBCredits credits;

    @SerializedName("episode_run_time")
    @pq6
    private final List<Integer> episodeRunTime;

    @SerializedName("external_ids")
    @pq6
    private final TMDBExternalIds externalIds;

    @SerializedName("first_air_date")
    @pq6
    private final String firstAirDate;

    @SerializedName("genres")
    @pq6
    private final List<TMDBGenre> genres;

    @SerializedName(TtmlNode.ATTR_ID)
    private final int id;

    @SerializedName("images")
    @pq6
    private final TMDBImages images;

    @SerializedName("last_air_date")
    @pq6
    private final String lastAirDate;

    @SerializedName(AppMeasurementSdk.ConditionalUserProperty.NAME)
    @kp6
    private final String name;

    @SerializedName("number_of_episodes")
    @pq6
    private final Integer numberOfEpisodes;

    @SerializedName("number_of_seasons")
    @pq6
    private final Integer numberOfSeasons;

    @SerializedName("overview")
    @pq6
    private final String overview;

    @SerializedName("poster_path")
    @pq6
    private final String posterPath;

    @SerializedName("seasons")
    @pq6
    private final List<TMDBSeason> seasons;

    @SerializedName("status")
    @pq6
    private final String status;

    @SerializedName("tagline")
    @pq6
    private final String tagline;

    @SerializedName("videos")
    @pq6
    private final TMDBVideosResponse videos;

    @SerializedName("vote_average")
    @pq6
    private final Double voteAverage;

    public TMDBShowDetails(int i, @kp6 String str, @pq6 String str2, @pq6 String str3, @pq6 String str4, @pq6 String str5, @pq6 Double d, @pq6 List<TMDBGenre> list, @pq6 List<Integer> list2, @pq6 Integer num, @pq6 Integer num2, @pq6 List<TMDBSeason> list3, @pq6 String str6, @pq6 TMDBImages tMDBImages, @pq6 TMDBCredits tMDBCredits, @pq6 TMDBContentRatingsResponse tMDBContentRatingsResponse, @pq6 TMDBExternalIds tMDBExternalIds, @pq6 TMDBVideosResponse tMDBVideosResponse, @pq6 String str7, @pq6 String str8) {
        cr4.g(str, AppMeasurementSdk.ConditionalUserProperty.NAME);
        this.id = i;
        this.name = str;
        this.overview = str2;
        this.posterPath = str3;
        this.backdropPath = str4;
        this.firstAirDate = str5;
        this.voteAverage = d;
        this.genres = list;
        this.episodeRunTime = list2;
        this.numberOfSeasons = num;
        this.numberOfEpisodes = num2;
        this.seasons = list3;
        this.status = str6;
        this.images = tMDBImages;
        this.credits = tMDBCredits;
        this.contentRatings = tMDBContentRatingsResponse;
        this.externalIds = tMDBExternalIds;
        this.videos = tMDBVideosResponse;
        this.lastAirDate = str7;
        this.tagline = str8;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ TMDBShowDetails copy$default(TMDBShowDetails tMDBShowDetails, int i, String str, String str2, String str3, String str4, String str5, Double d, List list, List list2, Integer num, Integer num2, List list3, String str6, TMDBImages tMDBImages, TMDBCredits tMDBCredits, TMDBContentRatingsResponse tMDBContentRatingsResponse, TMDBExternalIds tMDBExternalIds, TMDBVideosResponse tMDBVideosResponse, String str7, String str8, int i2, Object obj) {
        String str9;
        String str10;
        int i3 = (i2 & 1) != 0 ? tMDBShowDetails.id : i;
        String str11 = (i2 & 2) != 0 ? tMDBShowDetails.name : str;
        String str12 = (i2 & 4) != 0 ? tMDBShowDetails.overview : str2;
        String str13 = (i2 & 8) != 0 ? tMDBShowDetails.posterPath : str3;
        String str14 = (i2 & 16) != 0 ? tMDBShowDetails.backdropPath : str4;
        String str15 = (i2 & 32) != 0 ? tMDBShowDetails.firstAirDate : str5;
        Double d2 = (i2 & 64) != 0 ? tMDBShowDetails.voteAverage : d;
        List list4 = (i2 & 128) != 0 ? tMDBShowDetails.genres : list;
        List list5 = (i2 & 256) != 0 ? tMDBShowDetails.episodeRunTime : list2;
        Integer num3 = (i2 & 512) != 0 ? tMDBShowDetails.numberOfSeasons : num;
        Integer num4 = (i2 & 1024) != 0 ? tMDBShowDetails.numberOfEpisodes : num2;
        List list6 = (i2 & 2048) != 0 ? tMDBShowDetails.seasons : list3;
        String str16 = (i2 & 4096) != 0 ? tMDBShowDetails.status : str6;
        TMDBImages tMDBImages2 = (i2 & 8192) != 0 ? tMDBShowDetails.images : tMDBImages;
        int i4 = i3;
        TMDBCredits tMDBCredits2 = (i2 & 16384) != 0 ? tMDBShowDetails.credits : tMDBCredits;
        TMDBContentRatingsResponse tMDBContentRatingsResponse2 = (i2 & 32768) != 0 ? tMDBShowDetails.contentRatings : tMDBContentRatingsResponse;
        TMDBExternalIds tMDBExternalIds2 = (i2 & 65536) != 0 ? tMDBShowDetails.externalIds : tMDBExternalIds;
        TMDBVideosResponse tMDBVideosResponse2 = (i2 & 131072) != 0 ? tMDBShowDetails.videos : tMDBVideosResponse;
        String str17 = (i2 & MediaUtils.TRANSACTION_SIZE_LIMIT_IN_BYTES) != 0 ? tMDBShowDetails.lastAirDate : str7;
        if ((i2 & 524288) != 0) {
            str10 = str17;
            str9 = tMDBShowDetails.tagline;
        } else {
            str9 = str8;
            str10 = str17;
        }
        return tMDBShowDetails.copy(i4, str11, str12, str13, str14, str15, d2, list4, list5, num3, num4, list6, str16, tMDBImages2, tMDBCredits2, tMDBContentRatingsResponse2, tMDBExternalIds2, tMDBVideosResponse2, str10, str9);
    }

    public static /* synthetic */ String getBackdropUrl$default(TMDBShowDetails tMDBShowDetails, String str, int i, Object obj) {
        if ((i & 1) != 0) {
            str = "en";
        }
        return tMDBShowDetails.getBackdropUrl(str);
    }

    public static /* synthetic */ String getCastNames$default(TMDBShowDetails tMDBShowDetails, int i, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            i = 10;
        }
        return tMDBShowDetails.getCastNames(i);
    }

    public static /* synthetic */ String getLogoUrl$default(TMDBShowDetails tMDBShowDetails, String str, int i, Object obj) {
        if ((i & 1) != 0) {
            str = "en";
        }
        return tMDBShowDetails.getLogoUrl(str);
    }

    public static /* synthetic */ String getPosterUrl$default(TMDBShowDetails tMDBShowDetails, String str, int i, Object obj) {
        if ((i & 1) != 0) {
            str = "en";
        }
        return tMDBShowDetails.getPosterUrl(str);
    }

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

    @pq6
    /* JADX INFO: renamed from: component10, reason: from getter */
    public final Integer getNumberOfSeasons() {
        return this.numberOfSeasons;
    }

    @pq6
    /* JADX INFO: renamed from: component11, reason: from getter */
    public final Integer getNumberOfEpisodes() {
        return this.numberOfEpisodes;
    }

    @pq6
    public final List<TMDBSeason> component12() {
        return this.seasons;
    }

    @pq6
    /* JADX INFO: renamed from: component13, reason: from getter */
    public final String getStatus() {
        return this.status;
    }

    @pq6
    /* JADX INFO: renamed from: component14, reason: from getter */
    public final TMDBImages getImages() {
        return this.images;
    }

    @pq6
    /* JADX INFO: renamed from: component15, reason: from getter */
    public final TMDBCredits getCredits() {
        return this.credits;
    }

    @pq6
    /* JADX INFO: renamed from: component16, reason: from getter */
    public final TMDBContentRatingsResponse getContentRatings() {
        return this.contentRatings;
    }

    @pq6
    /* JADX INFO: renamed from: component17, reason: from getter */
    public final TMDBExternalIds getExternalIds() {
        return this.externalIds;
    }

    @pq6
    /* JADX INFO: renamed from: component18, reason: from getter */
    public final TMDBVideosResponse getVideos() {
        return this.videos;
    }

    @pq6
    /* JADX INFO: renamed from: component19, reason: from getter */
    public final String getLastAirDate() {
        return this.lastAirDate;
    }

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

    @pq6
    /* JADX INFO: renamed from: component20, reason: from getter */
    public final String getTagline() {
        return this.tagline;
    }

    @pq6
    /* JADX INFO: renamed from: component3, reason: from getter */
    public final String getOverview() {
        return this.overview;
    }

    @pq6
    /* JADX INFO: renamed from: component4, reason: from getter */
    public final String getPosterPath() {
        return this.posterPath;
    }

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

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

    @pq6
    /* JADX INFO: renamed from: component7, reason: from getter */
    public final Double getVoteAverage() {
        return this.voteAverage;
    }

    @pq6
    public final List<TMDBGenre> component8() {
        return this.genres;
    }

    @pq6
    public final List<Integer> component9() {
        return this.episodeRunTime;
    }

    @kp6
    public final TMDBShowDetails copy(int id, @kp6 String name, @pq6 String overview, @pq6 String posterPath, @pq6 String backdropPath, @pq6 String firstAirDate, @pq6 Double voteAverage, @pq6 List<TMDBGenre> genres, @pq6 List<Integer> episodeRunTime, @pq6 Integer numberOfSeasons, @pq6 Integer numberOfEpisodes, @pq6 List<TMDBSeason> seasons, @pq6 String status, @pq6 TMDBImages images, @pq6 TMDBCredits credits, @pq6 TMDBContentRatingsResponse contentRatings, @pq6 TMDBExternalIds externalIds, @pq6 TMDBVideosResponse videos, @pq6 String lastAirDate, @pq6 String tagline) {
        cr4.g(name, AppMeasurementSdk.ConditionalUserProperty.NAME);
        return new TMDBShowDetails(id, name, overview, posterPath, backdropPath, firstAirDate, voteAverage, genres, episodeRunTime, numberOfSeasons, numberOfEpisodes, seasons, status, images, credits, contentRatings, externalIds, videos, lastAirDate, tagline);
    }

    public boolean equals(@pq6 Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof TMDBShowDetails)) {
            return false;
        }
        TMDBShowDetails tMDBShowDetails = (TMDBShowDetails) other;
        return this.id == tMDBShowDetails.id && cr4.b(this.name, tMDBShowDetails.name) && cr4.b(this.overview, tMDBShowDetails.overview) && cr4.b(this.posterPath, tMDBShowDetails.posterPath) && cr4.b(this.backdropPath, tMDBShowDetails.backdropPath) && cr4.b(this.firstAirDate, tMDBShowDetails.firstAirDate) && cr4.b(this.voteAverage, tMDBShowDetails.voteAverage) && cr4.b(this.genres, tMDBShowDetails.genres) && cr4.b(this.episodeRunTime, tMDBShowDetails.episodeRunTime) && cr4.b(this.numberOfSeasons, tMDBShowDetails.numberOfSeasons) && cr4.b(this.numberOfEpisodes, tMDBShowDetails.numberOfEpisodes) && cr4.b(this.seasons, tMDBShowDetails.seasons) && cr4.b(this.status, tMDBShowDetails.status) && cr4.b(this.images, tMDBShowDetails.images) && cr4.b(this.credits, tMDBShowDetails.credits) && cr4.b(this.contentRatings, tMDBShowDetails.contentRatings) && cr4.b(this.externalIds, tMDBShowDetails.externalIds) && cr4.b(this.videos, tMDBShowDetails.videos) && cr4.b(this.lastAirDate, tMDBShowDetails.lastAirDate) && cr4.b(this.tagline, tMDBShowDetails.tagline);
    }

    @pq6
    public final String getBackdropPath() {
        return this.backdropPath;
    }

    @pq6
    public final String getBackdropUrl(@kp6 String preferredLanguage) {
        cr4.g(preferredLanguage, "preferredLanguage");
        String preferredBackdropPath = TMDBImagesKt.getPreferredBackdropPath(this.images, preferredLanguage);
        if (preferredBackdropPath == null) {
            preferredBackdropPath = this.backdropPath;
        }
        if (preferredBackdropPath != null) {
            return "https://image.tmdb.org/t/p/original".concat(preferredBackdropPath);
        }
        return null;
    }

    @pq6
    public final String getCastNames(int limit) {
        ArrayList arrayList;
        List<TMDBCast> cast;
        TMDBCredits tMDBCredits = this.credits;
        if (tMDBCredits == null || (cast = tMDBCredits.getCast()) == null) {
            arrayList = null;
        } else {
            List listBk = y41.bk(y41.bj(new Comparator() { // from class: com.strmr.ps.data.model.tmdb.TMDBShowDetails$getCastNames$$inlined$sortedBy$1
                /* JADX WARN: Multi-variable type inference failed */
                @Override // java.util.Comparator
                public final int compare(T t, T t2) {
                    Integer order = ((TMDBCast) t).getOrder();
                    Integer numValueOf = Integer.valueOf(order != null ? order.intValue() : Integer.MAX_VALUE);
                    Integer order2 = ((TMDBCast) t2).getOrder();
                    return x71.b(numValueOf, Integer.valueOf(order2 != null ? order2.intValue() : Integer.MAX_VALUE));
                }
            }, cast), limit);
            ArrayList arrayList2 = new ArrayList();
            Iterator it = listBk.iterator();
            while (it.hasNext()) {
                String name = ((TMDBCast) it.next()).getName();
                if (name != null) {
                    arrayList2.add(name);
                }
            }
            arrayList = arrayList2;
        }
        if (arrayList == null || arrayList.isEmpty()) {
            return null;
        }
        return y41.ai(arrayList, ", ", null, null, null, 62);
    }

    @pq6
    public final String getCertification() {
        List<TMDBContentRating> results;
        Object next;
        TMDBContentRatingsResponse tMDBContentRatingsResponse = this.contentRatings;
        if (tMDBContentRatingsResponse != null && (results = tMDBContentRatingsResponse.getResults()) != null) {
            Iterator<T> it = results.iterator();
            while (true) {
                if (!it.hasNext()) {
                    next = null;
                    break;
                }
                next = it.next();
                if (cr4.b(((TMDBContentRating) next).getIso31661(), "US")) {
                    break;
                }
            }
            TMDBContentRating tMDBContentRating = (TMDBContentRating) next;
            if (tMDBContentRating != null) {
                return tMDBContentRating.getRating();
            }
        }
        return null;
    }

    @pq6
    public final TMDBContentRatingsResponse getContentRatings() {
        return this.contentRatings;
    }

    @pq6
    public final TMDBCredits getCredits() {
        return this.credits;
    }

    @pq6
    public final List<Integer> getEpisodeRunTime() {
        return this.episodeRunTime;
    }

    @pq6
    public final TMDBExternalIds getExternalIds() {
        return this.externalIds;
    }

    @pq6
    public final String getFirstAirDate() {
        return this.firstAirDate;
    }

    @pq6
    public final List<TMDBGenre> getGenres() {
        return this.genres;
    }

    public final int getId() {
        return this.id;
    }

    @pq6
    public final TMDBImages getImages() {
        return this.images;
    }

    @pq6
    public final String getLastAirDate() {
        return this.lastAirDate;
    }

    @pq6
    public final String getLogoUrl(@kp6 String preferredLanguage) {
        cr4.g(preferredLanguage, "preferredLanguage");
        return TMDBImagesKt.getPreferredLogoUrl(this.images, preferredLanguage);
    }

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

    @pq6
    public final Integer getNumberOfEpisodes() {
        return this.numberOfEpisodes;
    }

    @pq6
    public final Integer getNumberOfSeasons() {
        return this.numberOfSeasons;
    }

    @pq6
    public final String getOverview() {
        return this.overview;
    }

    @pq6
    public final String getPosterPath() {
        return this.posterPath;
    }

    @pq6
    public final String getPosterUrl(@kp6 String preferredLanguage) {
        cr4.g(preferredLanguage, "preferredLanguage");
        String preferredPosterPath = TMDBImagesKt.getPreferredPosterPath(this.images, preferredLanguage);
        if (preferredPosterPath == null) {
            preferredPosterPath = this.posterPath;
        }
        if (preferredPosterPath != null) {
            return "https://image.tmdb.org/t/p/w500".concat(preferredPosterPath);
        }
        return null;
    }

    @pq6
    public final Integer getRatingPercentage() {
        Double d = this.voteAverage;
        if (d != null) {
            return Integer.valueOf((int) (d.doubleValue() * ((double) 10)));
        }
        return null;
    }

    @pq6
    public final List<TMDBSeason> getSeasons() {
        return this.seasons;
    }

    @pq6
    public final String getStatus() {
        return this.status;
    }

    @pq6
    public final String getTagline() {
        return this.tagline;
    }

    @pq6
    public final String getTrailerKey() {
        ArrayList arrayList;
        Object next;
        Object next2;
        Object next3;
        String key;
        List<TMDBVideo> results;
        TMDBVideosResponse tMDBVideosResponse = this.videos;
        if (tMDBVideosResponse == null || (results = tMDBVideosResponse.getResults()) == null) {
            arrayList = null;
        } else {
            arrayList = new ArrayList();
            for (Object obj : results) {
                String site = ((TMDBVideo) obj).getSite();
                if (site != null && site.equalsIgnoreCase("YouTube")) {
                    arrayList.add(obj);
                }
            }
        }
        if (arrayList == null || arrayList.isEmpty()) {
            return null;
        }
        Iterator it = arrayList.iterator();
        while (true) {
            if (!it.hasNext()) {
                next = null;
                break;
            }
            next = it.next();
            TMDBVideo tMDBVideo = (TMDBVideo) next;
            String type = tMDBVideo.getType();
            if (type != null && type.equalsIgnoreCase("Trailer") && cr4.b(tMDBVideo.getOfficial(), Boolean.TRUE)) {
                break;
            }
        }
        TMDBVideo tMDBVideo2 = (TMDBVideo) next;
        if (tMDBVideo2 != null && (key = tMDBVideo2.getKey()) != null) {
            return key;
        }
        Iterator it2 = arrayList.iterator();
        while (true) {
            if (!it2.hasNext()) {
                next2 = null;
                break;
            }
            next2 = it2.next();
            String type2 = ((TMDBVideo) next2).getType();
            if (type2 != null && type2.equalsIgnoreCase("Trailer")) {
                break;
            }
        }
        TMDBVideo tMDBVideo3 = (TMDBVideo) next2;
        String key2 = tMDBVideo3 != null ? tMDBVideo3.getKey() : null;
        if (key2 == null) {
            Iterator it3 = arrayList.iterator();
            while (true) {
                if (!it3.hasNext()) {
                    next3 = null;
                    break;
                }
                next3 = it3.next();
                String type3 = ((TMDBVideo) next3).getType();
                if (type3 != null && type3.equalsIgnoreCase("Teaser")) {
                    break;
                }
            }
            TMDBVideo tMDBVideo4 = (TMDBVideo) next3;
            key2 = tMDBVideo4 != null ? tMDBVideo4.getKey() : null;
            if (key2 == null) {
                TMDBVideo tMDBVideo5 = (TMDBVideo) y41.ab(arrayList);
                if (tMDBVideo5 != null) {
                    return tMDBVideo5.getKey();
                }
                return null;
            }
        }
        return key2;
    }

    @pq6
    public final TMDBVideosResponse getVideos() {
        return this.videos;
    }

    @pq6
    public final Double getVoteAverage() {
        return this.voteAverage;
    }

    @pq6
    public final String getYear() {
        String str = this.firstAirDate;
        if (str != null) {
            return n89.bb(4, str);
        }
        return null;
    }

    public int hashCode() {
        int iB = vw2.b(Integer.hashCode(this.id) * 31, 31, this.name);
        String str = this.overview;
        int iHashCode = (iB + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.posterPath;
        int iHashCode2 = (iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
        String str3 = this.backdropPath;
        int iHashCode3 = (iHashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
        String str4 = this.firstAirDate;
        int iHashCode4 = (iHashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
        Double d = this.voteAverage;
        int iHashCode5 = (iHashCode4 + (d == null ? 0 : d.hashCode())) * 31;
        List<TMDBGenre> list = this.genres;
        int iHashCode6 = (iHashCode5 + (list == null ? 0 : list.hashCode())) * 31;
        List<Integer> list2 = this.episodeRunTime;
        int iHashCode7 = (iHashCode6 + (list2 == null ? 0 : list2.hashCode())) * 31;
        Integer num = this.numberOfSeasons;
        int iHashCode8 = (iHashCode7 + (num == null ? 0 : num.hashCode())) * 31;
        Integer num2 = this.numberOfEpisodes;
        int iHashCode9 = (iHashCode8 + (num2 == null ? 0 : num2.hashCode())) * 31;
        List<TMDBSeason> list3 = this.seasons;
        int iHashCode10 = (iHashCode9 + (list3 == null ? 0 : list3.hashCode())) * 31;
        String str5 = this.status;
        int iHashCode11 = (iHashCode10 + (str5 == null ? 0 : str5.hashCode())) * 31;
        TMDBImages tMDBImages = this.images;
        int iHashCode12 = (iHashCode11 + (tMDBImages == null ? 0 : tMDBImages.hashCode())) * 31;
        TMDBCredits tMDBCredits = this.credits;
        int iHashCode13 = (iHashCode12 + (tMDBCredits == null ? 0 : tMDBCredits.hashCode())) * 31;
        TMDBContentRatingsResponse tMDBContentRatingsResponse = this.contentRatings;
        int iHashCode14 = (iHashCode13 + (tMDBContentRatingsResponse == null ? 0 : tMDBContentRatingsResponse.hashCode())) * 31;
        TMDBExternalIds tMDBExternalIds = this.externalIds;
        int iHashCode15 = (iHashCode14 + (tMDBExternalIds == null ? 0 : tMDBExternalIds.hashCode())) * 31;
        TMDBVideosResponse tMDBVideosResponse = this.videos;
        int iHashCode16 = (iHashCode15 + (tMDBVideosResponse == null ? 0 : tMDBVideosResponse.hashCode())) * 31;
        String str6 = this.lastAirDate;
        int iHashCode17 = (iHashCode16 + (str6 == null ? 0 : str6.hashCode())) * 31;
        String str7 = this.tagline;
        return iHashCode17 + (str7 != null ? str7.hashCode() : 0);
    }

    @kp6
    public String toString() {
        int i = this.id;
        String str = this.name;
        String str2 = this.overview;
        String str3 = this.posterPath;
        String str4 = this.backdropPath;
        String str5 = this.firstAirDate;
        Double d = this.voteAverage;
        List<TMDBGenre> list = this.genres;
        List<Integer> list2 = this.episodeRunTime;
        Integer num = this.numberOfSeasons;
        Integer num2 = this.numberOfEpisodes;
        List<TMDBSeason> list3 = this.seasons;
        String str6 = this.status;
        TMDBImages tMDBImages = this.images;
        TMDBCredits tMDBCredits = this.credits;
        TMDBContentRatingsResponse tMDBContentRatingsResponse = this.contentRatings;
        TMDBExternalIds tMDBExternalIds = this.externalIds;
        TMDBVideosResponse tMDBVideosResponse = this.videos;
        String str7 = this.lastAirDate;
        String str8 = this.tagline;
        StringBuilder sbK = fi7.k("TMDBShowDetails(id=", i, ", name=", str, ", overview=");
        vw2.aa(sbK, str2, ", posterPath=", str3, ", backdropPath=");
        vw2.aa(sbK, str4, ", firstAirDate=", str5, ", voteAverage=");
        sbK.append(d);
        sbK.append(", genres=");
        sbK.append(list);
        sbK.append(", episodeRunTime=");
        sbK.append(list2);
        sbK.append(", numberOfSeasons=");
        sbK.append(num);
        sbK.append(", numberOfEpisodes=");
        sbK.append(num2);
        sbK.append(", seasons=");
        sbK.append(list3);
        sbK.append(", status=");
        sbK.append(str6);
        sbK.append(", images=");
        sbK.append(tMDBImages);
        sbK.append(", credits=");
        sbK.append(tMDBCredits);
        sbK.append(", contentRatings=");
        sbK.append(tMDBContentRatingsResponse);
        sbK.append(", externalIds=");
        sbK.append(tMDBExternalIds);
        sbK.append(", videos=");
        sbK.append(tMDBVideosResponse);
        sbK.append(", lastAirDate=");
        return n41.u(sbK, str7, ", tagline=", str8, ")");
    }

    /*  JADX ERROR: NullPointerException in pass: InitCodeVariables
        java.lang.NullPointerException: Cannot invoke "jadx.core.dex.instructions.args.SSAVar.getPhiList()" because "resultVar" is null
        	at jadx.core.dex.visitors.InitCodeVariables.collectConnectedVars(InitCodeVariables.java:119)
        	at jadx.core.dex.visitors.InitCodeVariables.setCodeVar(InitCodeVariables.java:82)
        	at jadx.core.dex.visitors.InitCodeVariables.initCodeVar(InitCodeVariables.java:74)
        	at jadx.core.dex.visitors.InitCodeVariables.initCodeVars(InitCodeVariables.java:48)
        	at jadx.core.dex.visitors.InitCodeVariables.visit(InitCodeVariables.java:29)
        */
    public /* synthetic */ TMDBShowDetails(int r23, java.lang.String r24, java.lang.String r25, java.lang.String r26, java.lang.String r27, java.lang.String r28, java.lang.Double r29, java.util.List r30, java.util.List r31, java.lang.Integer r32, java.lang.Integer r33, java.util.List r34, java.lang.String r35, com.strmr.ps.data.model.tmdb.TMDBImages r36, com.strmr.ps.data.model.tmdb.TMDBCredits r37, com.strmr.ps.data.model.tmdb.TMDBContentRatingsResponse r38, com.strmr.ps.data.model.tmdb.TMDBExternalIds r39, com.strmr.ps.data.model.tmdb.TMDBVideosResponse r40, java.lang.String r41, java.lang.String r42, int r43, defpackage.uz1 r44) {
        /*
            r22 = this;
            r0 = r43 & 2
            if (r0 == 0) goto L8
            java.lang.String r0 = ""
            r3 = r0
            goto La
        L8:
            r3 = r24
        La:
            r0 = 65536(0x10000, float:9.1835E-41)
            r0 = r43 & r0
            r1 = 0
            if (r0 == 0) goto L14
            r18 = r1
            goto L16
        L14:
            r18 = r39
        L16:
            r0 = 131072(0x20000, float:1.83671E-40)
            r0 = r43 & r0
            if (r0 == 0) goto L1f
            r19 = r1
            goto L21
        L1f:
            r19 = r40
        L21:
            r0 = 262144(0x40000, float:3.67342E-40)
            r0 = r43 & r0
            if (r0 == 0) goto L2a
            r20 = r1
            goto L2c
        L2a:
            r20 = r41
        L2c:
            r0 = 524288(0x80000, float:7.34684E-40)
            r0 = r43 & r0
            if (r0 == 0) goto L55
            r21 = r1
            r2 = r23
            r4 = r25
            r5 = r26
            r6 = r27
            r7 = r28
            r8 = r29
            r9 = r30
            r10 = r31
            r11 = r32
            r12 = r33
            r13 = r34
            r14 = r35
            r15 = r36
            r16 = r37
            r17 = r38
            r1 = r22
            goto L77
        L55:
            r21 = r42
            r1 = r22
            r2 = r23
            r4 = r25
            r5 = r26
            r6 = r27
            r7 = r28
            r8 = r29
            r9 = r30
            r10 = r31
            r11 = r32
            r12 = r33
            r13 = r34
            r14 = r35
            r15 = r36
            r16 = r37
            r17 = r38
        L77:
            r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.strmr.ps.data.model.tmdb.TMDBShowDetails.<init>(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.util.List, java.util.List, java.lang.Integer, java.lang.Integer, java.util.List, java.lang.String, com.strmr.ps.data.model.tmdb.TMDBImages, com.strmr.ps.data.model.tmdb.TMDBCredits, com.strmr.ps.data.model.tmdb.TMDBContentRatingsResponse, com.strmr.ps.data.model.tmdb.TMDBExternalIds, com.strmr.ps.data.model.tmdb.TMDBVideosResponse, java.lang.String, java.lang.String, int, uz1):void");
    }
}
