package com.sistemasolton.itranvias.home.data.local;

import androidx.room.InvalidationTracker;
import androidx.room.RoomMasterTable;
import androidx.room.RoomOpenDelegate;
import androidx.room.migration.AutoMigrationSpec;
import androidx.room.migration.Migration;
import androidx.room.util.DBUtil;
import androidx.room.util.TableInfo;
import androidx.sqlite.SQLite;
import androidx.sqlite.SQLiteConnection;
import com.sistemasolton.itranvias.home.data.local.dao.BusDao;
import com.sistemasolton.itranvias.home.data.local.dao.BusDao_Impl;
import com.sistemasolton.itranvias.home.data.local.dao.InfoDao;
import com.sistemasolton.itranvias.home.data.local.dao.InfoDao_Impl;
import com.sistemasolton.itranvias.home.data.local.dao.LineFavoriteDao;
import com.sistemasolton.itranvias.home.data.local.dao.LineFavoriteDao_Impl;
import com.sistemasolton.itranvias.home.data.local.dao.StopFavoriteDao;
import com.sistemasolton.itranvias.home.data.local.dao.StopFavoriteDao_Impl;
import com.sistemasolton.itranvias.home.data.local.dao.StopHistoryDao;
import com.sistemasolton.itranvias.home.data.local.dao.StopHistoryDao_Impl;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.reflect.KClass;

/* JADX INFO: compiled from: BusDatabase_Impl.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\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\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0010\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\b\u0010\u000f\u001a\u00020\u0010H\u0014J\b\u0010\u0011\u001a\u00020\u0012H\u0014J\b\u0010\u0013\u001a\u00020\u0014H\u0016J\"\u0010\u0015\u001a\u001c\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0017\u0012\u000e\u0012\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00170\u00180\u0016H\u0014J\u0016\u0010\u0019\u001a\u0010\u0012\f\u0012\n\u0012\u0006\b\u0001\u0012\u00020\u001b0\u00170\u001aH\u0016J*\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u001d0\u00182\u001a\u0010\u001e\u001a\u0016\u0012\f\u0012\n\u0012\u0006\b\u0001\u0012\u00020\u001b0\u0017\u0012\u0004\u0012\u00020\u001b0\u0016H\u0016J\b\u0010\u001f\u001a\u00020\u0006H\u0016J\b\u0010 \u001a\u00020\bH\u0016J\b\u0010!\u001a\u00020\nH\u0016J\b\u0010\"\u001a\u00020\fH\u0016J\b\u0010#\u001a\u00020\u000eH\u0016R\u0014\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\b0\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\t\u001a\b\u0012\u0004\u0012\u00020\n0\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\f0\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000e0\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006$"}, d2 = {"Lcom/sistemasolton/itranvias/home/data/local/BusDatabase_Impl;", "Lcom/sistemasolton/itranvias/home/data/local/BusDatabase;", "<init>", "()V", "_busDao", "Lkotlin/Lazy;", "Lcom/sistemasolton/itranvias/home/data/local/dao/BusDao;", "_stopHistoryDao", "Lcom/sistemasolton/itranvias/home/data/local/dao/StopHistoryDao;", "_stopFavoriteDao", "Lcom/sistemasolton/itranvias/home/data/local/dao/StopFavoriteDao;", "_lineFavoriteDao", "Lcom/sistemasolton/itranvias/home/data/local/dao/LineFavoriteDao;", "_infoDao", "Lcom/sistemasolton/itranvias/home/data/local/dao/InfoDao;", "createOpenDelegate", "Landroidx/room/RoomOpenDelegate;", "createInvalidationTracker", "Landroidx/room/InvalidationTracker;", "clearAllTables", "", "getRequiredTypeConverterClasses", "", "Lkotlin/reflect/KClass;", "", "getRequiredAutoMigrationSpecClasses", "", "Landroidx/room/migration/AutoMigrationSpec;", "createAutoMigrations", "Landroidx/room/migration/Migration;", "autoMigrationSpecs", "busDao", "stopHistoryDao", "stopFavoriteDao", "lineFavoriteDao", "infoDao", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class BusDatabase_Impl extends BusDatabase {
    public static final int $stable = 8;
    private final Lazy<BusDao> _busDao = LazyKt.lazy(new Function0() { // from class: com.sistemasolton.itranvias.home.data.local.BusDatabase_Impl$$ExternalSyntheticLambda0
        @Override // kotlin.jvm.functions.Function0
        public final Object invoke() {
            return BusDatabase_Impl._busDao$lambda$0(this.f$0);
        }
    });
    private final Lazy<StopHistoryDao> _stopHistoryDao = LazyKt.lazy(new Function0() { // from class: com.sistemasolton.itranvias.home.data.local.BusDatabase_Impl$$ExternalSyntheticLambda1
        @Override // kotlin.jvm.functions.Function0
        public final Object invoke() {
            return BusDatabase_Impl._stopHistoryDao$lambda$1(this.f$0);
        }
    });
    private final Lazy<StopFavoriteDao> _stopFavoriteDao = LazyKt.lazy(new Function0() { // from class: com.sistemasolton.itranvias.home.data.local.BusDatabase_Impl$$ExternalSyntheticLambda2
        @Override // kotlin.jvm.functions.Function0
        public final Object invoke() {
            return BusDatabase_Impl._stopFavoriteDao$lambda$2(this.f$0);
        }
    });
    private final Lazy<LineFavoriteDao> _lineFavoriteDao = LazyKt.lazy(new Function0() { // from class: com.sistemasolton.itranvias.home.data.local.BusDatabase_Impl$$ExternalSyntheticLambda3
        @Override // kotlin.jvm.functions.Function0
        public final Object invoke() {
            return BusDatabase_Impl._lineFavoriteDao$lambda$3(this.f$0);
        }
    });
    private final Lazy<InfoDao> _infoDao = LazyKt.lazy(new Function0() { // from class: com.sistemasolton.itranvias.home.data.local.BusDatabase_Impl$$ExternalSyntheticLambda4
        @Override // kotlin.jvm.functions.Function0
        public final Object invoke() {
            return BusDatabase_Impl._infoDao$lambda$4(this.f$0);
        }
    });

    /* JADX INFO: Access modifiers changed from: private */
    public static final BusDao_Impl _busDao$lambda$0(BusDatabase_Impl busDatabase_Impl) {
        return new BusDao_Impl(busDatabase_Impl);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final StopHistoryDao_Impl _stopHistoryDao$lambda$1(BusDatabase_Impl busDatabase_Impl) {
        return new StopHistoryDao_Impl(busDatabase_Impl);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final StopFavoriteDao_Impl _stopFavoriteDao$lambda$2(BusDatabase_Impl busDatabase_Impl) {
        return new StopFavoriteDao_Impl(busDatabase_Impl);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final LineFavoriteDao_Impl _lineFavoriteDao$lambda$3(BusDatabase_Impl busDatabase_Impl) {
        return new LineFavoriteDao_Impl(busDatabase_Impl);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final InfoDao_Impl _infoDao$lambda$4(BusDatabase_Impl busDatabase_Impl) {
        return new InfoDao_Impl(busDatabase_Impl);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // androidx.room.RoomDatabase
    public RoomOpenDelegate createOpenDelegate() {
        return new RoomOpenDelegate() { // from class: com.sistemasolton.itranvias.home.data.local.BusDatabase_Impl$createOpenDelegate$_openDelegate$1
            @Override // androidx.room.RoomOpenDelegate
            public void onCreate(SQLiteConnection connection) {
                Intrinsics.checkNotNullParameter(connection, "connection");
            }

            @Override // androidx.room.RoomOpenDelegate
            public void onPostMigrate(SQLiteConnection connection) {
                Intrinsics.checkNotNullParameter(connection, "connection");
            }

            {
                super(3, "ab9c929d39c76af6f9833c6d056764d0", "75ad154426de60cfb3bd0dc66dfe2747");
            }

            @Override // androidx.room.RoomOpenDelegate
            public void createAllTables(SQLiteConnection connection) {
                Intrinsics.checkNotNullParameter(connection, "connection");
                SQLite.execSQL(connection, "CREATE TABLE IF NOT EXISTS `bus` (`_id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)");
                SQLite.execSQL(connection, "CREATE TABLE IF NOT EXISTS `stop_history` (`stopCode` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, PRIMARY KEY(`stopCode`))");
                SQLite.execSQL(connection, "CREATE TABLE IF NOT EXISTS `stop_favorites` (`stopCode` TEXT NOT NULL, `alias` TEXT, PRIMARY KEY(`stopCode`))");
                SQLite.execSQL(connection, "CREATE TABLE IF NOT EXISTS `line_favorites` (`lineCode` TEXT NOT NULL, PRIMARY KEY(`lineCode`))");
                SQLite.execSQL(connection, "CREATE TABLE IF NOT EXISTS `info` (`id` INTEGER NOT NULL, `json` TEXT NOT NULL, PRIMARY KEY(`id`))");
                SQLite.execSQL(connection, RoomMasterTable.CREATE_QUERY);
                SQLite.execSQL(connection, "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ab9c929d39c76af6f9833c6d056764d0')");
            }

            @Override // androidx.room.RoomOpenDelegate
            public void dropAllTables(SQLiteConnection connection) {
                Intrinsics.checkNotNullParameter(connection, "connection");
                SQLite.execSQL(connection, "DROP TABLE IF EXISTS `bus`");
                SQLite.execSQL(connection, "DROP TABLE IF EXISTS `stop_history`");
                SQLite.execSQL(connection, "DROP TABLE IF EXISTS `stop_favorites`");
                SQLite.execSQL(connection, "DROP TABLE IF EXISTS `line_favorites`");
                SQLite.execSQL(connection, "DROP TABLE IF EXISTS `info`");
            }

            @Override // androidx.room.RoomOpenDelegate
            public void onOpen(SQLiteConnection connection) {
                Intrinsics.checkNotNullParameter(connection, "connection");
                this.this$0.internalInitInvalidationTracker(connection);
            }

            @Override // androidx.room.RoomOpenDelegate
            public void onPreMigrate(SQLiteConnection connection) {
                Intrinsics.checkNotNullParameter(connection, "connection");
                DBUtil.dropFtsSyncTriggers(connection);
            }

            @Override // androidx.room.RoomOpenDelegate
            public RoomOpenDelegate.ValidationResult onValidateSchema(SQLiteConnection connection) {
                Intrinsics.checkNotNullParameter(connection, "connection");
                LinkedHashMap linkedHashMap = new LinkedHashMap();
                linkedHashMap.put("_id", new TableInfo.Column("_id", "INTEGER", true, 1, null, 1));
                TableInfo tableInfo = new TableInfo("bus", linkedHashMap, new LinkedHashSet(), new LinkedHashSet());
                TableInfo tableInfo2 = TableInfo.Companion.read(connection, "bus");
                if (!tableInfo.equals(tableInfo2)) {
                    return new RoomOpenDelegate.ValidationResult(false, "bus(com.sistemasolton.itranvias.home.data.local.entity.BusEntity).\n Expected:\n" + tableInfo + "\n Found:\n" + tableInfo2);
                }
                LinkedHashMap linkedHashMap2 = new LinkedHashMap();
                linkedHashMap2.put("stopCode", new TableInfo.Column("stopCode", "TEXT", true, 1, null, 1));
                linkedHashMap2.put("timestamp", new TableInfo.Column("timestamp", "INTEGER", true, 0, null, 1));
                TableInfo tableInfo3 = new TableInfo("stop_history", linkedHashMap2, new LinkedHashSet(), new LinkedHashSet());
                TableInfo tableInfo4 = TableInfo.Companion.read(connection, "stop_history");
                if (!tableInfo3.equals(tableInfo4)) {
                    return new RoomOpenDelegate.ValidationResult(false, "stop_history(com.sistemasolton.itranvias.home.data.local.entity.StopHistoryEntity).\n Expected:\n" + tableInfo3 + "\n Found:\n" + tableInfo4);
                }
                LinkedHashMap linkedHashMap3 = new LinkedHashMap();
                linkedHashMap3.put("stopCode", new TableInfo.Column("stopCode", "TEXT", true, 1, null, 1));
                linkedHashMap3.put("alias", new TableInfo.Column("alias", "TEXT", false, 0, null, 1));
                TableInfo tableInfo5 = new TableInfo("stop_favorites", linkedHashMap3, new LinkedHashSet(), new LinkedHashSet());
                TableInfo tableInfo6 = TableInfo.Companion.read(connection, "stop_favorites");
                if (!tableInfo5.equals(tableInfo6)) {
                    return new RoomOpenDelegate.ValidationResult(false, "stop_favorites(com.sistemasolton.itranvias.home.data.local.entity.StopFavoriteEntity).\n Expected:\n" + tableInfo5 + "\n Found:\n" + tableInfo6);
                }
                LinkedHashMap linkedHashMap4 = new LinkedHashMap();
                linkedHashMap4.put("lineCode", new TableInfo.Column("lineCode", "TEXT", true, 1, null, 1));
                TableInfo tableInfo7 = new TableInfo("line_favorites", linkedHashMap4, new LinkedHashSet(), new LinkedHashSet());
                TableInfo tableInfo8 = TableInfo.Companion.read(connection, "line_favorites");
                if (!tableInfo7.equals(tableInfo8)) {
                    return new RoomOpenDelegate.ValidationResult(false, "line_favorites(com.sistemasolton.itranvias.home.data.local.entity.LineFavoriteEntity).\n Expected:\n" + tableInfo7 + "\n Found:\n" + tableInfo8);
                }
                LinkedHashMap linkedHashMap5 = new LinkedHashMap();
                linkedHashMap5.put("id", new TableInfo.Column("id", "INTEGER", true, 1, null, 1));
                linkedHashMap5.put("json", new TableInfo.Column("json", "TEXT", true, 0, null, 1));
                TableInfo tableInfo9 = new TableInfo("info", linkedHashMap5, new LinkedHashSet(), new LinkedHashSet());
                TableInfo tableInfo10 = TableInfo.Companion.read(connection, "info");
                if (!tableInfo9.equals(tableInfo10)) {
                    return new RoomOpenDelegate.ValidationResult(false, "info(com.sistemasolton.itranvias.home.data.local.entity.InfoEntity).\n Expected:\n" + tableInfo9 + "\n Found:\n" + tableInfo10);
                }
                return new RoomOpenDelegate.ValidationResult(true, null);
            }
        };
    }

    @Override // androidx.room.RoomDatabase
    protected InvalidationTracker createInvalidationTracker() {
        return new InvalidationTracker(this, new LinkedHashMap(), new LinkedHashMap(), "bus", "stop_history", "stop_favorites", "line_favorites", "info");
    }

    @Override // androidx.room.RoomDatabase
    public void clearAllTables() {
        super.performClear(false, "bus", "stop_history", "stop_favorites", "line_favorites", "info");
    }

    @Override // androidx.room.RoomDatabase
    protected Map<KClass<?>, List<KClass<?>>> getRequiredTypeConverterClasses() {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put(Reflection.getOrCreateKotlinClass(BusDao.class), BusDao_Impl.INSTANCE.getRequiredConverters());
        linkedHashMap.put(Reflection.getOrCreateKotlinClass(StopHistoryDao.class), StopHistoryDao_Impl.INSTANCE.getRequiredConverters());
        linkedHashMap.put(Reflection.getOrCreateKotlinClass(StopFavoriteDao.class), StopFavoriteDao_Impl.INSTANCE.getRequiredConverters());
        linkedHashMap.put(Reflection.getOrCreateKotlinClass(LineFavoriteDao.class), LineFavoriteDao_Impl.INSTANCE.getRequiredConverters());
        linkedHashMap.put(Reflection.getOrCreateKotlinClass(InfoDao.class), InfoDao_Impl.INSTANCE.getRequiredConverters());
        return linkedHashMap;
    }

    @Override // androidx.room.RoomDatabase
    public Set<KClass<? extends AutoMigrationSpec>> getRequiredAutoMigrationSpecClasses() {
        return new LinkedHashSet();
    }

    @Override // androidx.room.RoomDatabase
    public List<Migration> createAutoMigrations(Map<KClass<? extends AutoMigrationSpec>, ? extends AutoMigrationSpec> autoMigrationSpecs) {
        Intrinsics.checkNotNullParameter(autoMigrationSpecs, "autoMigrationSpecs");
        ArrayList arrayList = new ArrayList();
        arrayList.add(new BusDatabase_AutoMigration_2_3_Impl());
        return arrayList;
    }

    @Override // com.sistemasolton.itranvias.home.data.local.BusDatabase
    public BusDao busDao() {
        return this._busDao.getValue();
    }

    @Override // com.sistemasolton.itranvias.home.data.local.BusDatabase
    public StopHistoryDao stopHistoryDao() {
        return this._stopHistoryDao.getValue();
    }

    @Override // com.sistemasolton.itranvias.home.data.local.BusDatabase
    public StopFavoriteDao stopFavoriteDao() {
        return this._stopFavoriteDao.getValue();
    }

    @Override // com.sistemasolton.itranvias.home.data.local.BusDatabase
    public LineFavoriteDao lineFavoriteDao() {
        return this._lineFavoriteDao.getValue();
    }

    @Override // com.sistemasolton.itranvias.home.data.local.BusDatabase
    public InfoDao infoDao() {
        return this._infoDao.getValue();
    }
}